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
308d502b
Commit
308d502b
authored
Jul 16, 2022
by
徐高华
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
删除临时活码
parent
170b119b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
19 deletions
+18
-19
HmQrcodeTempMapper.java
...oban/manage/service/dao/mapper/hm/HmQrcodeTempMapper.java
+0
-2
HmQrcodeTempServiceImpl.java
...nage/service/service/hm/impl/HmQrcodeTempServiceImpl.java
+18
-12
HmQrcodeTempMapper.xml
...rvice/src/main/resources/mapper/hm/HmQrcodeTempMapper.xml
+0
-5
No files found.
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/dao/mapper/hm/HmQrcodeTempMapper.java
View file @
308d502b
...
...
@@ -25,8 +25,6 @@ public interface HmQrcodeTempMapper {
public
int
deleteByPrimaryKey
(
Long
id
);
public
int
deleteByRelationId
(
String
id
);
TabHmQrcodeTemp
selectByRelationId
(
String
relationId
);
/**
...
...
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/hm/impl/HmQrcodeTempServiceImpl.java
View file @
308d502b
...
...
@@ -44,26 +44,32 @@ public class HmQrcodeTempServiceImpl implements HmQrcodeTempService {
@Override
public
void
deleteQrcode
(
String
relationId
)
{
this
.
hmQrcodeTempMapper
.
deleteByRelationId
(
relationId
);
TabHmQrcodeTemp
item
=
this
.
hmQrcodeTempMapper
.
selectByRelationId
(
relationId
);
if
(
null
!=
item
&&
item
.
getStatusFlag
()
==
1
)
{
this
.
del
(
item
);
}
}
@Override
public
void
deleteForTimer
()
{
List
<
TabHmQrcodeTemp
>
list
=
this
.
hmQrcodeTempMapper
.
listAll
();
String
suiteId
=
config
.
getWxSuiteid
();
if
(
CollectionUtils
.
isEmpty
(
list
))
{
for
(
TabHmQrcodeTemp
item
:
list
)
{
try
{
String
corpid
=
item
.
getCorpid
();
String
configId
=
item
.
getWxConfigId
();
QywxResponseDTO
resp
=
this
.
qywxUserApiService
.
delContactWay
(
corpid
,
suiteId
,
configId
);
log
.
info
(
"删除临时活码={}{},返回={}"
,
configId
,
corpid
,
JSON
.
toJSONString
(
resp
));
this
.
hmQrcodeTempMapper
.
deleteByPrimaryKey
(
item
.
getId
());
}
catch
(
Exception
e
)
{
log
.
info
(
"删除临时活码异常={}"
,
e
);
}
this
.
del
(
item
);
}
}
}
private
void
del
(
TabHmQrcodeTemp
item
)
{
try
{
String
suiteId
=
config
.
getWxSuiteid
();
String
corpid
=
item
.
getCorpid
();
String
configId
=
item
.
getWxConfigId
();
QywxResponseDTO
resp
=
this
.
qywxUserApiService
.
delContactWay
(
corpid
,
suiteId
,
configId
);
log
.
info
(
"删除临时活码={}{},返回={}"
,
configId
,
corpid
,
JSON
.
toJSONString
(
resp
));
this
.
hmQrcodeTempMapper
.
deleteByPrimaryKey
(
item
.
getId
());
}
catch
(
Exception
e
)
{
log
.
info
(
"删除临时活码异常={}"
,
e
);
}
}
}
haoban-manage3-service/src/main/resources/mapper/hm/HmQrcodeTempMapper.xml
View file @
308d502b
...
...
@@ -49,11 +49,6 @@
UPDATE tab_haoban_hm_qrcode_temp SET status_flag = 0 , update_time=now() WHERE id = #{id} and status_flag=1
</update>
<update
id=
"deleteByRelationId"
parameterType=
"long"
>
UPDATE tab_haoban_hm_qrcode_temp SET status_flag = 0 , update_time=now() WHERE relation_id = #{relationId} and status_flag=1
</update>
<!-- ============ 查询============= -->
<select
id=
"selectByRelationId"
parameterType=
"String"
resultMap=
"result-map-tabHaobanHmQrcodeTemp"
>
...
...
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