Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
training-project
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hqzhdj
training-project
Commits
cd0de071
Commit
cd0de071
authored
Mar 19, 2025
by
阳浪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
消息优化
parent
884a20eb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
9 deletions
+10
-9
cloud-training-project-service/src/main/java/com/yizhi/training/application/controller/TpCommentReplyController.java
+5
-4
cloud-training-project-service/src/main/java/com/yizhi/training/application/util/TrainingEvenSendMessage.java
+5
-5
No files found.
cloud-training-project-service/src/main/java/com/yizhi/training/application/controller/TpCommentReplyController.java
View file @
cd0de071
...
...
@@ -53,13 +53,14 @@ public class TpCommentReplyController {
public
Page
<
TpCommentReply
>
replyList
(
@RequestParam
(
"commmentId"
)
Long
commmentId
,
@RequestParam
(
"pageNo"
)
Integer
pageNo
,
@RequestParam
(
"pageSize"
)
Integer
pageSize
,
@RequestParam
(
"type"
)
Integer
type
){
Page
<
TpCommentReply
>
page
=
new
Page
<
TpCommentReply
>(
pageNo
,
pageSize
);
TpCommentReply
reply
=
new
TpCommentReply
();
if
(
1
==
type
)
{
reply
.
setState
(
0
);
}
RequestContext
requestContext
=
ContextHolder
.
get
();
reply
.
setTpCommentId
(
commmentId
);
reply
.
setAuditStatus
(
"0"
);
EntityWrapper
<
TpCommentReply
>
wrapper
=
new
EntityWrapper
<
TpCommentReply
>(
reply
);
iTpCommentReplyService
.
selectPage
(
page
,
wrapper
);
if
(
1
==
type
)
{
wrapper
.
and
(
"(state={0} or create_by_id={1})"
,
0
,
requestContext
.
getAccountId
());
}
iTpCommentReplyService
.
selectPage
(
page
,
wrapper
);
String
fullName
;
String
name
;
for
(
TpCommentReply
listCommentVo
:
page
.
getRecords
())
{
...
...
cloud-training-project-service/src/main/java/com/yizhi/training/application/util/TrainingEvenSendMessage.java
View file @
cd0de071
...
...
@@ -66,7 +66,7 @@ public class TrainingEvenSendMessage {
vo
.
setRequestContext
(
requestContext
);
try
{
//临时取消触发功能
publicSendMessageClient
.
processBizEvent
(
new
EventWrapper
<
MessageRemindVo
>(
null
,
vo
)
);
publicSendMessageClient
.
processBizEvent
(
vo
);
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
logger
.
error
(
"发送消息失败====================="
,
e
);
...
...
@@ -108,13 +108,13 @@ public class TrainingEvenSendMessage {
}
if
(
remindVo
.
getHasDeleted
())
{
vo
.
setHasDeleted
(
remindVo
.
getHasDeleted
());
publicSendMessageClient
.
processBizEvent
(
new
EventWrapper
<
MessageRemindVo
>(
null
,
vo
)
);
publicSendMessageClient
.
processBizEvent
(
vo
);
logger
.
info
(
"发送删除消息成功!!"
);
}
else
{
if
(
remindVo
.
getVisibleRangeUpdate
())
{
vo
.
setVisibleRangeUpdate
(
remindVo
.
getVisibleRangeUpdate
());
vo
.
setVisibleRange
(
trainingProject
.
getVisibleRange
());
publicSendMessageClient
.
processBizEvent
(
new
EventWrapper
<
MessageRemindVo
>(
null
,
vo
)
);
publicSendMessageClient
.
processBizEvent
(
vo
);
logger
.
info
(
"发送计划同步可见范围消息成功!!"
);
return
;
}
...
...
@@ -123,7 +123,7 @@ public class TrainingEvenSendMessage {
//1 为消息业务可发送状态 0 则不行
vo
.
setTaskStatus
(
trainingProject
.
getStatus
().
equals
(
ProjectConstant
.
PROJECT_STATUS_ENABLE
)
?
1
:
0
);
vo
.
setTaskStatusUpdate
(
remindVo
.
getTaskStatusUpdate
());
publicSendMessageClient
.
processBizEvent
(
new
EventWrapper
<
MessageRemindVo
>(
null
,
vo
)
);
publicSendMessageClient
.
processBizEvent
(
vo
);
logger
.
info
(
"发送修改业务状态消息成功====================="
);
return
;
}
...
...
@@ -158,7 +158,7 @@ public class TrainingEvenSendMessage {
}
try
{
publicSendMessageClient
.
processBizEvent
(
new
EventWrapper
<
MessageRemindVo
>(
null
,
vo
)
);
publicSendMessageClient
.
processBizEvent
(
vo
);
logger
.
info
(
"发送消息成功====================="
);
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
...
...
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