Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
haoban-manage3.0
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
haoban3.0
haoban-manage3.0
Commits
eda3e3f9
Commit
eda3e3f9
authored
Aug 12, 2021
by
fudahua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
会员标签同步-告警
parent
c3665785
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
12 deletions
+4
-12
AlertMessageDTO.java
...n/java/com/gic/haoban/manage/api/dto/AlertMessageDTO.java
+0
-8
QywxTagApiServiceImpl.java
...anage/service/service/out/impl/QywxTagApiServiceImpl.java
+4
-4
No files found.
haoban-manage3-api/src/main/java/com/gic/haoban/manage/api/dto/AlertMessageDTO.java
View file @
eda3e3f9
...
...
@@ -21,7 +21,6 @@ public class AlertMessageDTO implements Serializable {
private
String
alertTitle
;
private
Map
<
String
,
Object
>
contentMap
;
private
LinkedHashMap
<
String
,
Object
>
contentLinkMap
;
public
String
getKey
()
{
return
key
;
...
...
@@ -79,11 +78,4 @@ public class AlertMessageDTO implements Serializable {
this
.
contentMap
=
contentMap
;
}
public
LinkedHashMap
<
String
,
Object
>
getContentLinkMap
()
{
return
contentLinkMap
;
}
public
void
setContentLinkMap
(
LinkedHashMap
<
String
,
Object
>
contentLinkMap
)
{
this
.
contentLinkMap
=
contentLinkMap
;
}
}
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/QywxTagApiServiceImpl.java
View file @
eda3e3f9
...
...
@@ -847,14 +847,14 @@ public class QywxTagApiServiceImpl implements QywxTagApiService {
List
<
TabQywxTagRelation
>
qywxTagRelations
=
tagRelations
.
stream
().
filter
(
dto
->
dto
.
getRelationType
()
==
QywxTagRelationTypeEnum
.
TAG_GROUP
.
getType
()).
collect
(
Collectors
.
toList
());
for
(
TabQywxTagRelation
qywxTagRelation
:
qywxTagRelations
)
{
LinkedHash
Map
<
String
,
Object
>
map
=
checkQywxSyncByQywxTag
(
qywxTagRelation
,
wxEnterprise
,
pojo
);
Map
<
String
,
Object
>
map
=
checkQywxSyncByQywxTag
(
qywxTagRelation
,
wxEnterprise
,
pojo
);
if
(
MapUtils
.
isNotEmpty
(
map
))
{
AlertMessageDTO
messageDTO
=
new
AlertMessageDTO
();
messageDTO
.
setAlertTitle
(
"企微与好办同步标签不相同"
);
messageDTO
.
setEnterpriseId
(
qywxTagRelation
.
getEnterpriseId
());
messageDTO
.
setAlertType
(
AlertTypeEnum
.
QYWX_TAG_SYNC
.
getType
());
messageDTO
.
setWxEnterpriseId
(
wxEnterprise
.
getWxEnterpriseId
());
messageDTO
.
setContent
Link
Map
(
map
);
messageDTO
.
setContentMap
(
map
);
messageDTO
.
setTraceId
(
traceId
);
GicMQClient
clientInstance
=
GICMQClientUtil
.
getClientInstance
();
try
{
...
...
@@ -940,8 +940,8 @@ public class QywxTagApiServiceImpl implements QywxTagApiService {
//企业微信存在 gic不存在
Sets
.
SetView
<
String
>
gicUnHaves
=
Sets
.
difference
(
qywxKeysSet
,
gicQywxKeysSet
);
ret
.
put
(
"企微标签项"
,
tagItems
.
stream
().
filter
(
dto
->
dto
.
isDeleted
()
==
false
).
map
(
dto
->
dto
.
getName
()).
collect
(
Collectors
.
joining
(
"],["
,
"["
,
"]"
)));
ret
.
put
(
"gic标签项"
,
gicTagItems
.
stream
().
map
(
dto
->
dto
.
getTagItemName
()).
collect
(
Collectors
.
joining
(
"],["
,
"["
,
"]"
)));
ret
.
put
(
"
现
企微标签项"
,
tagItems
.
stream
().
filter
(
dto
->
dto
.
isDeleted
()
==
false
).
map
(
dto
->
dto
.
getName
()).
collect
(
Collectors
.
joining
(
"],["
,
"["
,
"]"
)));
ret
.
put
(
"
现
gic标签项"
,
gicTagItems
.
stream
().
map
(
dto
->
dto
.
getTagItemName
()).
collect
(
Collectors
.
joining
(
"],["
,
"["
,
"]"
)));
//企业微信缺少
if
(!
CollectionUtils
.
isEmpty
(
qywxUnHaves
))
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment