Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
Y
yifu-mvp
Project
Project
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
fangxinjiang
yifu-mvp
Commits
97148c24
Commit
97148c24
authored
Nov 01, 2023
by
fangxinjiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化消息
parent
73abac63
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
27 additions
and
15 deletions
+27
-15
MsgInfoController.java
.../yifu/cloud/plus/v1/msg/controller/MsgInfoController.java
+1
-1
MsgInfoMapper.java
...java/com/yifu/cloud/plus/v1/msg/mapper/MsgInfoMapper.java
+3
-1
MsgInfoServiceImpl.java
...fu/cloud/plus/v1/msg/service/impl/MsgInfoServiceImpl.java
+4
-1
MsgInfoMapper.xml
.../yifu-msg-biz/src/main/resources/mapper/MsgInfoMapper.xml
+19
-12
No files found.
yifu-msg/yifu-msg-biz/src/main/java/com/yifu/cloud/plus/v1/msg/controller/MsgInfoController.java
View file @
97148c24
...
...
@@ -112,7 +112,7 @@ public class MsgInfoController {
* @Param
* @return
**/
@Operation
(
summary
=
"每
5秒 处理订单待办提醒"
,
description
=
"每5秒
处理订单待办提醒"
)
@Operation
(
summary
=
"每
10分钟 处理订单待办提醒"
,
description
=
"每10分钟
处理订单待办提醒"
)
@Inner
@PostMapping
(
"/inner/cancelHandledMsg"
)
public
void
cancelHandledMsg
()
{
...
...
yifu-msg/yifu-msg-biz/src/main/java/com/yifu/cloud/plus/v1/msg/mapper/MsgInfoMapper.java
View file @
97148c24
...
...
@@ -50,5 +50,7 @@ public interface MsgInfoMapper extends BaseMapper<MsgInfo> {
List
<
MsgInfo
>
getMsgInfo
(
@Param
(
"msgInfo"
)
MsgInfo
msgInfo
);
int
deleteHandledMsg
();
int
deleteHandledMsg
(
@Param
(
"nos"
)
List
<
String
>
nos
);
List
<
String
>
getOrderNos
();
}
yifu-msg/yifu-msg-biz/src/main/java/com/yifu/cloud/plus/v1/msg/service/impl/MsgInfoServiceImpl.java
View file @
97148c24
...
...
@@ -209,7 +209,10 @@ public class MsgInfoServiceImpl extends ServiceImpl<MsgInfoMapper, MsgInfo> impl
@Override
public
void
cancelHandledMsg
()
{
baseMapper
.
deleteHandledMsg
();
List
<
String
>
orderNos
=
baseMapper
.
getOrderNos
();
if
(
Common
.
isNotNull
(
orderNos
)){
baseMapper
.
deleteHandledMsg
(
orderNos
);
}
}
}
yifu-msg/yifu-msg-biz/src/main/resources/mapper/MsgInfoMapper.xml
View file @
97148c24
...
...
@@ -153,7 +153,15 @@
</select>
<delete
id=
"deleteHandledMsg"
>
DELETE FROM msg_info where ALERT_TYPE ='0' and ORDER_NO not in (
DELETE FROM msg_info where ALERT_TYPE ='0'
<if
test=
"nos != null and nos.size > 0"
>
and ORDER_NO not in
<foreach
item=
"items"
index=
"index"
collection=
"nos"
open=
"("
separator=
","
close=
")"
>
#{items}
</foreach>
</if>
</delete>
<select
id=
"getOrderNos"
resultType=
"java.lang.String"
>
SELECT
b1.fd_3ac901c5184274 ORDER_NO
FROM
...
...
@@ -164,6 +172,5 @@
WHERE
e.fd_fact_node_id = 'N5'
AND b1.fd_id IS NOT NULL
)
</delete>
</select>
</mapper>
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