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
50174698
Commit
50174698
authored
Aug 17, 2022
by
墨竹
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:删除活码
parent
2265ada7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
1 deletions
+18
-1
HmQrcodeApiServiceImpl.java
...e/service/service/out/impl/hm/HmQrcodeApiServiceImpl.java
+18
-1
No files found.
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/hm/HmQrcodeApiServiceImpl.java
View file @
50174698
...
...
@@ -675,23 +675,40 @@ public class HmQrcodeApiServiceImpl implements HmQrcodeApiService {
WxEnterpriseQwDTO
qwDTO
=
this
.
wxEnterpriseService
.
getQwInfo
(
hmQrcodeBO
.
getWxEnterpriseId
())
;
QywxResponseDTO
qywxResponseDTO
=
qywxUserApiService
.
delContactWay
(
qwDTO
.
getThirdCorpid
(),
config
.
getWxSuiteid
(),
wxConfigId
);
int
errcode
=
qywxResponseDTO
.
getErrcode
();
//https://open.work.weixin.qq.com/devtool/query?e=41044
if
(
errcode
!=
0
)
{
if
(
errcode
==
41044
)
{
delQrcode
(
hmId
,
invokingType
,
loginDTO
,
hmQrcodeBO
);
return
ServiceResponse
.
success
();
}
GicLogRecordEvaluationContext
.
noWriteLog
();
return
ServiceResponse
.
failure
(
Convert
.
toStr
(
HaoBanErrCodeCommon
.
ERR_8
.
getCode
()),
qywxResponseDTO
.
getErrmsg
());
}
}
delQrcode
(
hmId
,
invokingType
,
loginDTO
,
hmQrcodeBO
);
return
ServiceResponse
.
success
();
}
/**
* 删除活码
* @param hmId
* @param invokingType
* @param loginDTO
* @param hmQrcodeBO
*/
private
void
delQrcode
(
Long
hmId
,
Integer
invokingType
,
WebLoginDTO
loginDTO
,
HmQrcodeBO
hmQrcodeBO
)
{
//操作日志
setLoggerContext
(
hmQrcodeBO
.
getEnterpriseId
(),
hmQrcodeBO
.
getWxEnterpriseId
(),
loginDTO
);
String
logContent
=
"【"
+
hmId
+
"-"
+
hmQrcodeBO
.
getName
()
+
"】"
;
if
(
invokingType
!=
1
)
{
logContent
=
logContent
+
"——"
+
ChannelCodeEnum
.
getNameByCode
(
invokingType
);
}
GicLogRecordEvaluationContext
.
putAttribute
(
"logContent"
,
logContent
);
hmQrcodeService
.
deleteById
(
hmId
);
HmQrcodeQDTO
hmQrcodeQDTO
=
new
HmQrcodeQDTO
();
hmQrcodeQDTO
.
setHmId
(
hmId
);
this
.
updateWelcomeRelation
(
hmQrcodeQDTO
,
WelcomeRelationStatusEnum
.
DEPRECATED
.
getCode
());
return
ServiceResponse
.
success
();
}
...
...
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