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
ac09e791
Commit
ac09e791
authored
Jul 27, 2021
by
fudahua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
企业微信标签添加状态变更接口
parent
11c2e913
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
40 additions
and
0 deletions
+40
-0
QywxTagApiService.java
.../com/gic/haoban/manage/api/service/QywxTagApiService.java
+9
-0
QywxTagService.java
...com/gic/haoban/manage/service/service/QywxTagService.java
+8
-0
QywxTagServiceImpl.java
...aoban/manage/service/service/impl/QywxTagServiceImpl.java
+9
-0
QywxTagApiServiceImpl.java
...anage/service/service/out/impl/QywxTagApiServiceImpl.java
+14
-0
No files found.
haoban-manage3-api/src/main/java/com/gic/haoban/manage/api/service/QywxTagApiService.java
View file @
ac09e791
...
...
@@ -75,4 +75,13 @@ public interface QywxTagApiService {
*/
public
ServiceResponse
syncFriendTagToQywxByExternalUserId
(
String
wxEnterpriseId
,
String
enterpriseId
,
String
externalUserId
,
List
<
String
>
tagItemIds
);
/**
* 更改状态
*
* @param memberTagId
* @param wxEnterpriseId
* @param status
*/
public
void
changeQywxTagStatus
(
String
memberTagId
,
String
wxEnterpriseId
,
int
status
);
}
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/QywxTagService.java
View file @
ac09e791
...
...
@@ -165,5 +165,13 @@ public interface QywxTagService {
*/
public
List
<
TabQywxTagItem
>
listQywxTagItemByIds
(
String
wxEnterpriseId
,
List
<
String
>
ids
);
/**
* 变更状态
*
* @param id
* @param status
*/
public
void
changeTagRelationStatus
(
String
id
,
int
status
);
}
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/impl/QywxTagServiceImpl.java
View file @
ac09e791
...
...
@@ -210,4 +210,13 @@ public class QywxTagServiceImpl implements QywxTagService {
public
List
<
TabQywxTagItem
>
listQywxTagItemByIds
(
String
wxEnterpriseId
,
List
<
String
>
ids
)
{
return
qywxTagItemMapper
.
listByQywxTagItemsIds
(
wxEnterpriseId
,
ids
);
}
@Override
public
void
changeTagRelationStatus
(
String
id
,
int
status
)
{
TabQywxTagRelation
tabQywxTagRelation
=
new
TabQywxTagRelation
();
tabQywxTagRelation
.
setQywxTagRelationId
(
id
);
tabQywxTagRelation
.
setStatusFlag
(
status
);
tabQywxTagRelation
.
setUpdateTime
(
new
Date
());
qywxTagRelationMapper
.
updateByPrimaryKeySelective
(
tabQywxTagRelation
);
}
}
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/QywxTagApiServiceImpl.java
View file @
ac09e791
...
...
@@ -537,4 +537,18 @@ public class QywxTagApiServiceImpl implements QywxTagApiService {
}
return
ret
;
}
@Override
public
void
changeQywxTagStatus
(
String
memberTagId
,
String
wxEnterpriseId
,
int
status
)
{
List
<
TabQywxTagRelation
>
tagRelations
=
qywxTagService
.
listQywxTagRelationByMemberTagId
(
wxEnterpriseId
,
memberTagId
);
if
(
CollectionUtils
.
isEmpty
(
tagRelations
))
{
return
;
}
TabQywxTagRelation
tagRelation
=
tagRelations
.
stream
().
filter
(
dto
->
dto
.
getRelationType
()
==
QywxTagRelationTypeEnum
.
TAG_GROUP
.
getType
()).
findFirst
().
orElse
(
null
);
if
(
null
==
tagRelation
)
{
return
;
}
qywxTagService
.
changeTagRelationStatus
(
tagRelation
.
getQywxTagRelationId
(),
status
);
return
;
}
}
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