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
b4a9e650
Commit
b4a9e650
authored
Jun 22, 2021
by
fudahua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
企业微信标签同步
parent
dd5044a1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
QywxTagApiServiceImpl.java
...anage/service/service/out/impl/QywxTagApiServiceImpl.java
+5
-5
No files found.
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/QywxTagApiServiceImpl.java
View file @
b4a9e650
...
@@ -242,7 +242,7 @@ public class QywxTagApiServiceImpl implements QywxTagApiService {
...
@@ -242,7 +242,7 @@ public class QywxTagApiServiceImpl implements QywxTagApiService {
logger
.
info
(
"没有关联,无需操作:{}"
,
JSONObject
.
toJSONString
(
tagList
));
logger
.
info
(
"没有关联,无需操作:{}"
,
JSONObject
.
toJSONString
(
tagList
));
return
;
return
;
}
}
List
<
TabQywxTagRelation
>
relations
=
qywxTagService
.
listQywxTagRelationBy
Member
TagId
(
wxEnterpriseDto
.
getWxEnterpriseId
(),
qywxTagItem
.
getQywxTagId
());
List
<
TabQywxTagRelation
>
relations
=
qywxTagService
.
listQywxTagRelationBy
Qywx
TagId
(
wxEnterpriseDto
.
getWxEnterpriseId
(),
qywxTagItem
.
getQywxTagId
());
if
(
CollectionUtils
.
isEmpty
(
relations
))
{
if
(
CollectionUtils
.
isEmpty
(
relations
))
{
logger
.
info
(
"直接删除标签项"
);
logger
.
info
(
"直接删除标签项"
);
qywxTagService
.
delQywxTagItemById
(
wxEnterpriseDto
.
getWxEnterpriseId
(),
qywxTagItem
.
getQywxTagItemId
());
qywxTagService
.
delQywxTagItemById
(
wxEnterpriseDto
.
getWxEnterpriseId
(),
qywxTagItem
.
getQywxTagItemId
());
...
@@ -291,7 +291,7 @@ public class QywxTagApiServiceImpl implements QywxTagApiService {
...
@@ -291,7 +291,7 @@ public class QywxTagApiServiceImpl implements QywxTagApiService {
logger
.
info
(
"没有关联,无需操作"
);
logger
.
info
(
"没有关联,无需操作"
);
return
;
return
;
}
}
List
<
TabQywxTagRelation
>
relations
=
qywxTagService
.
listQywxTagRelationBy
Member
TagId
(
wxEnterpriseDto
.
getWxEnterpriseId
(),
qywxTagItem
.
getQywxTagId
());
List
<
TabQywxTagRelation
>
relations
=
qywxTagService
.
listQywxTagRelationBy
Qywx
TagId
(
wxEnterpriseDto
.
getWxEnterpriseId
(),
qywxTagItem
.
getQywxTagId
());
if
(
CollectionUtils
.
isEmpty
(
relations
))
{
if
(
CollectionUtils
.
isEmpty
(
relations
))
{
logger
.
info
(
"直接删除标签项"
);
logger
.
info
(
"直接删除标签项"
);
qywxTagService
.
delQywxTagItemById
(
wxEnterpriseDto
.
getWxEnterpriseId
(),
qywxTagItem
.
getQywxTagItemId
());
qywxTagService
.
delQywxTagItemById
(
wxEnterpriseDto
.
getWxEnterpriseId
(),
qywxTagItem
.
getQywxTagItemId
());
...
@@ -330,14 +330,14 @@ public class QywxTagApiServiceImpl implements QywxTagApiService {
...
@@ -330,14 +330,14 @@ public class QywxTagApiServiceImpl implements QywxTagApiService {
},
dto
->
dto
));
},
dto
->
dto
));
QywxTagInfoDTO
qywxTagInfoDTO
=
new
QywxTagInfoDTO
();
QywxTagInfoDTO
qywxTagInfoDTO
=
new
QywxTagInfoDTO
();
qywxTagInfoDTO
.
set
QywxGroupKey
(
memberTagId
);
qywxTagInfoDTO
.
set
MemberTagId
(
memberTagId
);
qywxTagInfoDTO
.
setQywxGroupName
(
qywxGroupKey
.
getQywxGroupName
());
qywxTagInfoDTO
.
setQywxGroupName
(
qywxGroupKey
.
getQywxGroupName
());
qywxTagInfoDTO
.
setWxEnterpriseId
(
qywxGroupKey
.
getWxEnterpriseId
());
qywxTagInfoDTO
.
setWxEnterpriseId
(
qywxGroupKey
.
getWxEnterpriseId
());
List
<
QywxTagItemDTO
>
items
=
tabQywxTagItems
.
stream
().
map
(
item
->
{
List
<
QywxTagItemDTO
>
items
=
tabQywxTagItems
.
stream
().
map
(
item
->
{
TabQywxTagRelation
relation
=
relationMap
.
get
(
item
.
getQywxTagItemId
());
TabQywxTagRelation
relation
=
relationMap
.
get
(
item
.
getQywxTagItemId
());
QywxTagItemDTO
mid
=
new
QywxTagItemDTO
();
QywxTagItemDTO
mid
=
new
QywxTagItemDTO
();
mid
.
set
QywxTagKey
(
relation
.
getTagItemId
());
mid
.
set
MemberTagItemId
(
relation
.
getTagItemId
());
mid
.
setQywxTagName
(
item
.
getQywxTagName
());
mid
.
setQywxTagName
(
item
.
getQywxTagName
());
return
mid
;
return
mid
;
}).
collect
(
Collectors
.
toList
());
}).
collect
(
Collectors
.
toList
());
...
@@ -421,7 +421,7 @@ public class QywxTagApiServiceImpl implements QywxTagApiService {
...
@@ -421,7 +421,7 @@ public class QywxTagApiServiceImpl implements QywxTagApiService {
logger
.
info
(
"没有关联,无需操作"
);
logger
.
info
(
"没有关联,无需操作"
);
return
;
return
;
}
}
List
<
TabQywxTagRelation
>
relations
=
qywxTagService
.
listQywxTagRelationBy
Member
TagId
(
wxEnterpriseDto
.
getWxEnterpriseId
(),
qywxTagItem
.
getQywxTagId
());
List
<
TabQywxTagRelation
>
relations
=
qywxTagService
.
listQywxTagRelationBy
Qywx
TagId
(
wxEnterpriseDto
.
getWxEnterpriseId
(),
qywxTagItem
.
getQywxTagId
());
if
(
CollectionUtils
.
isEmpty
(
relations
))
{
if
(
CollectionUtils
.
isEmpty
(
relations
))
{
logger
.
info
(
"直接删除标签项"
);
logger
.
info
(
"直接删除标签项"
);
qywxTagService
.
delQywxTagItemById
(
wxEnterpriseDto
.
getWxEnterpriseId
(),
qywxTagItem
.
getQywxTagItemId
());
qywxTagService
.
delQywxTagItemById
(
wxEnterpriseDto
.
getWxEnterpriseId
(),
qywxTagItem
.
getQywxTagItemId
());
...
...
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