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
288a9cf2
Commit
288a9cf2
authored
Jul 30, 2021
by
fudahua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
会员标签同步-删除标签
parent
824e5770
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
2 deletions
+9
-2
QywxTagServiceImpl.java
...aoban/manage/service/service/impl/QywxTagServiceImpl.java
+5
-0
QywxTagApiServiceImpl.java
...anage/service/service/out/impl/QywxTagApiServiceImpl.java
+4
-2
No files found.
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/impl/QywxTagServiceImpl.java
View file @
288a9cf2
...
...
@@ -3,6 +3,7 @@ package com.gic.haoban.manage.service.service.impl;
import
com.gic.commons.util.ToolUtil
;
import
com.gic.haoban.manage.api.dto.QywxTagInfoDTO
;
import
com.gic.haoban.manage.api.dto.QywxTagItemDTO
;
import
com.gic.haoban.manage.api.enums.QywxTagRelationSyncFlagEnum
;
import
com.gic.haoban.manage.api.enums.QywxTagRelationTypeEnum
;
import
com.gic.haoban.manage.service.dao.mapper.QywxTagItemMapper
;
import
com.gic.haoban.manage.service.dao.mapper.QywxTagMapper
;
...
...
@@ -250,6 +251,10 @@ public class QywxTagServiceImpl implements QywxTagService {
@Override
public
boolean
changeRelationSyncFlagByMemberTagId
(
String
wxEnterpriseId
,
String
memberTagId
,
Integer
syncFlag
)
{
if
(
syncFlag
==
QywxTagRelationSyncFlagEnum
.
DEL
.
getType
()
||
syncFlag
==
QywxTagRelationSyncFlagEnum
.
FAIL
.
getType
())
{
this
.
closeSync
(
wxEnterpriseId
,
memberTagId
);
return
true
;
}
qywxTagRelationMapper
.
changeRelationSyncFlag
(
wxEnterpriseId
,
memberTagId
,
syncFlag
);
return
true
;
}
...
...
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/QywxTagApiServiceImpl.java
View file @
288a9cf2
...
...
@@ -334,7 +334,8 @@ public class QywxTagApiServiceImpl implements QywxTagApiService {
TabQywxTagRelation
relation
=
relations
.
stream
().
findFirst
().
get
();
logger
.
info
(
"删除标签组 关闭同步:{}"
,
relation
.
getMemberTagId
());
//删除同步 关闭同步
this
.
closeSync
(
wxEnterpriseDto
.
getWxEnterpriseId
(),
relation
.
getMemberTagId
());
qywxTagService
.
closeSync
(
wxEnterpriseDto
.
getWxEnterpriseId
(),
relation
.
getMemberTagId
());
qywxTagService
.
delQywxTag
(
callbackDTO
.
getTagId
(),
wxEnterpriseDto
.
getWxEnterpriseId
());
//标签项
}
else
if
(
relationTypeEnum
.
getTagType
()
==
QywxTagRelationTypeEnum
.
TAG_ITEM
.
getTagType
())
{
...
...
@@ -346,7 +347,8 @@ public class QywxTagApiServiceImpl implements QywxTagApiService {
}
logger
.
info
(
"删除标签 关闭同步:{}"
,
qywxTagRelation
.
getMemberTagId
());
//删除同步 关闭同步
this
.
closeSync
(
wxEnterpriseDto
.
getWxEnterpriseId
(),
qywxTagRelation
.
getMemberTagId
());
qywxTagService
.
closeSync
(
wxEnterpriseDto
.
getWxEnterpriseId
(),
qywxTagRelation
.
getMemberTagId
());
qywxTagService
.
delQywxTagItemById
(
wxEnterpriseDto
.
getWxEnterpriseId
(),
qywxTagRelation
.
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