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
02fd5073
Commit
02fd5073
authored
Jul 29, 2021
by
fudahua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
会员标签同步-重命名-fix
parent
0bf77378
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
33 additions
and
2 deletions
+33
-2
QywxTagService.java
...com/gic/haoban/manage/service/service/QywxTagService.java
+7
-0
QywxTagServiceImpl.java
...aoban/manage/service/service/impl/QywxTagServiceImpl.java
+18
-0
MemberUnionidRelatedApiServiceImpl.java
.../service/out/impl/MemberUnionidRelatedApiServiceImpl.java
+2
-0
QywxTagApiServiceImpl.java
...anage/service/service/out/impl/QywxTagApiServiceImpl.java
+6
-2
No files found.
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/QywxTagService.java
View file @
02fd5073
...
...
@@ -190,5 +190,12 @@ public interface QywxTagService {
*/
public
TabQywxTagItem
getQywxTagItemById
(
String
wxEnterpriseId
,
String
id
);
/**
* 更新名称
*
* @return
*/
public
boolean
saveQywxTagOrTagItemName
(
String
id
,
String
name
,
Integer
relationType
);
}
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/impl/QywxTagServiceImpl.java
View file @
02fd5073
...
...
@@ -229,4 +229,22 @@ public class QywxTagServiceImpl implements QywxTagService {
public
TabQywxTagItem
getQywxTagItemById
(
String
wxEnterpriseId
,
String
id
)
{
return
qywxTagItemMapper
.
selectByPrimaryKey
(
id
);
}
@Override
public
boolean
saveQywxTagOrTagItemName
(
String
id
,
String
name
,
Integer
relationType
)
{
if
(
relationType
==
QywxTagRelationTypeEnum
.
TAG_GROUP
.
getType
())
{
TabQywxTag
tabQywxTag
=
new
TabQywxTag
();
tabQywxTag
.
setQywxTagId
(
id
);
tabQywxTag
.
setQywxGroupName
(
name
);
tabQywxTag
.
setUpdateTime
(
new
Date
());
qywxTagMapper
.
updateByPrimaryKeySelective
(
tabQywxTag
);
}
else
if
(
relationType
==
QywxTagRelationTypeEnum
.
TAG_ITEM
.
getType
())
{
TabQywxTagItem
tabQywxTagItem
=
new
TabQywxTagItem
();
tabQywxTagItem
.
setQywxTagItemId
(
id
);
tabQywxTagItem
.
setQywxTagName
(
name
);
tabQywxTagItem
.
setUpdateTime
(
new
Date
());
qywxTagItemMapper
.
updateByPrimaryKeySelective
(
tabQywxTagItem
);
}
return
true
;
}
}
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/MemberUnionidRelatedApiServiceImpl.java
View file @
02fd5073
...
...
@@ -1557,6 +1557,8 @@ public class MemberUnionidRelatedApiServiceImpl implements MemberUnionidRelatedA
external
.
setStatusFlag
(
1
);
externalClerkRelatedService
.
update
(
external
);
}
return
""
;
}
...
...
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/QywxTagApiServiceImpl.java
View file @
02fd5073
...
...
@@ -825,7 +825,7 @@ public class QywxTagApiServiceImpl implements QywxTagApiService {
ServiceResponse
resp
=
new
ServiceResponse
();
String
renameQywxKey
=
null
;
Long
order
=
null
;
String
relationId
=
null
;
//标签组
if
(
type
==
QywxTagRelationTypeEnum
.
TAG_GROUP
.
getType
())
{
...
...
@@ -837,6 +837,8 @@ public class QywxTagApiServiceImpl implements QywxTagApiService {
renameQywxKey
=
tabQywxTag
.
getQywxGroupKey
();
order
=
tabQywxTag
.
getOrder
();
name
=
"GIC"
+
name
;
relationId
=
tabQywxTag
.
getQywxTagId
();
}
else
if
(
type
==
QywxTagRelationTypeEnum
.
TAG_ITEM
.
getType
())
{
TabQywxTagItem
qywxTagItem
=
qywxTagService
.
getQywxTagItemById
(
wxEnterpriseId
,
id
);
if
(
null
==
qywxTagItem
)
{
...
...
@@ -845,8 +847,9 @@ public class QywxTagApiServiceImpl implements QywxTagApiService {
}
renameQywxKey
=
qywxTagItem
.
getQywxTagKey
();
order
=
qywxTagItem
.
getOrder
();
}
relationId
=
qywxTagItem
.
getQywxTagId
();
}
WxEnterpriseDTO
wxEnterpriseDTO
=
wxEnterpriseService
.
selectById
(
wxEnterpriseId
);
//名称同步回去
...
...
@@ -857,6 +860,7 @@ public class QywxTagApiServiceImpl implements QywxTagApiService {
QywxResponseDTO
responseDTO
=
qywxSuiteApiService
.
editCorpTagNameOrOrder
(
wxEnterpriseDTO
.
getCorpid
(),
config
.
getWxSuiteid
(),
qywxTagDTO
);
logger
.
info
(
"同步名称:{}"
,
JSONObject
.
toJSONString
(
responseDTO
));
if
(
responseDTO
.
getErrcode
()
!=
0
)
{
qywxTagService
.
saveQywxTagOrTagItemName
(
relationId
,
name
,
type
);
resp
.
setMessage
(
responseDTO
.
getErrmsg
());
resp
.
setCode
(
responseDTO
.
getErrcode
());
}
...
...
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