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
16dd71f0
Commit
16dd71f0
authored
Nov 01, 2023
by
fangxinjiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化消息
parent
54d887a6
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
27 additions
and
16 deletions
+27
-16
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
-2
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 @
16dd71f0
...
...
@@ -113,7 +113,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 @
16dd71f0
...
...
@@ -51,7 +51,9 @@ 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
();
int
insertMsg
(
@Param
(
"vo"
)
EkpInsertMsgVo
vo
);
}
yifu-msg/yifu-msg-biz/src/main/java/com/yifu/cloud/plus/v1/msg/service/impl/MsgInfoServiceImpl.java
View file @
16dd71f0
...
...
@@ -210,7 +210,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
);
}
}
@Override
...
...
@@ -223,5 +226,4 @@ public class MsgInfoServiceImpl extends ServiceImpl<MsgInfoMapper, MsgInfo> impl
}
}
}
yifu-msg/yifu-msg-biz/src/main/resources/mapper/MsgInfoMapper.xml
View file @
16dd71f0
...
...
@@ -153,19 +153,26 @@
</select>
<delete
id=
"deleteHandledMsg"
>
DELETE FROM msg_info where ALERT_TYPE ='0' and ORDER_NO not in (
SELECT
b1.fd_3ac901c5184274 ORDER_NO
FROM
lbpm_workitem a
LEFT JOIN lbpm_node e ON e.fd_id = a.fd_node_id
LEFT JOIN lbpm_process p ON p.fd_id = e.fd_process_id
LEFT JOIN ekp_ea33075576149bb8a4f5 b1 ON p.fd_model_id = b1.fd_id
WHERE
e.fd_fact_node_id = 'N5'
AND b1.fd_id IS NOT NULL
)
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
lbpm_workitem a
LEFT JOIN lbpm_node e ON e.fd_id = a.fd_node_id
LEFT JOIN lbpm_process p ON p.fd_id = e.fd_process_id
LEFT JOIN ekp_ea33075576149bb8a4f5 b1 ON p.fd_model_id = b1.fd_id
WHERE
e.fd_fact_node_id = 'N5'
AND b1.fd_id IS NOT NULL
</select>
<insert
id=
"insertMsg"
>
insert into msg_info (ID,URL,ORDER_ID,ALERT_USER,DOMAIN_NAME,CREATE_TIME,ALERT_TYPE,ORDER_NO)
...
...
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