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
6023f3b4
Commit
6023f3b4
authored
Jun 17, 2022
by
墨竹
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:代码优化
parent
5c4ab7ba
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
QywxTagApiServiceImpl.java
...anage/service/service/out/impl/QywxTagApiServiceImpl.java
+7
-5
No files found.
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/QywxTagApiServiceImpl.java
View file @
6023f3b4
...
...
@@ -278,8 +278,12 @@ public class QywxTagApiServiceImpl implements QywxTagApiService {
return
;
}
QywxTagRelationTypeEnum
relationTypeEnum
=
QywxTagRelationTypeEnum
.
getByTagType
(
callbackDTO
.
getTagType
());
if
(
relationTypeEnum
==
null
)
{
logger
.
error
(
"未找到对应关系,{}"
,
callbackDTO
.
getTagType
());
return
;
}
//标签组
if
(
relationTypeEnum
.
getTagType
()
==
QywxTagRelationTypeEnum
.
TAG_GROUP
.
getTagType
(
))
{
if
(
Objects
.
equals
(
relationTypeEnum
.
getTagType
(),
QywxTagRelationTypeEnum
.
TAG_GROUP
.
getTagType
()
))
{
logger
.
info
(
"新增标签组无需操作:{}"
,
callbackDTO
.
getTagId
());
List
<
String
>
ids
=
new
ArrayList
<>();
ids
.
add
(
callbackDTO
.
getTagId
());
...
...
@@ -292,7 +296,7 @@ public class QywxTagApiServiceImpl implements QywxTagApiService {
//保存标签项
qywxTagService
.
saveQywxTagByQywxGroupKey
(
wxEnterpriseDto
.
getWxEnterpriseId
(),
qywxTagGroupDTO
);
//标签项
}
else
if
(
relationTypeEnum
.
getTagType
()
==
QywxTagRelationTypeEnum
.
TAG_ITEM
.
getTagType
(
))
{
}
else
if
(
Objects
.
equals
(
relationTypeEnum
.
getTagType
(),
QywxTagRelationTypeEnum
.
TAG_ITEM
.
getTagType
()
))
{
//查找对应的标签组 如果标签组关联了
List
<
String
>
ids
=
new
ArrayList
<>();
ids
.
add
(
callbackDTO
.
getTagId
());
...
...
@@ -306,10 +310,8 @@ public class QywxTagApiServiceImpl implements QywxTagApiService {
return
;
}
QywxTagGroupDTO
qywxTagGroupDTO
=
tagDetail
.
getTagGroup
().
get
(
0
);
//保存标签项
qywxTagService
.
saveQywxTagByQywxGroupKey
(
wxEnterpriseDto
.
getWxEnterpriseId
(),
qywxTagGroupDTO
);
}
}
...
...
@@ -799,7 +801,7 @@ public class QywxTagApiServiceImpl implements QywxTagApiService {
for
(
TabQywxTagRelation
qywxTagRelation
:
qywxTagRelations
)
{
Map
<
String
,
Object
>
map
=
checkQywxSyncByQywxTag
(
qywxTagRelation
,
wxEnterprise
,
pojo
);
if
(
MapUtils
.
isNotEmpty
(
map
))
{
logger
.
error
(
"企微与好办同步标签不相同:{}"
,
JSON
.
toJSONString
(
map
));
logger
.
error
(
"企微与好办同步标签不相同:{}"
,
JSON
.
toJSONString
(
map
));
}
}
}
catch
(
Exception
e
)
{
...
...
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