Commit cd0de071 by 阳浪

消息优化

parent 884a20eb
...@@ -53,12 +53,13 @@ public class TpCommentReplyController { ...@@ -53,12 +53,13 @@ public class TpCommentReplyController {
public Page<TpCommentReply> replyList(@RequestParam("commmentId")Long commmentId, @RequestParam("pageNo")Integer pageNo, @RequestParam("pageSize")Integer pageSize, @RequestParam("type")Integer type){ 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); Page<TpCommentReply> page = new Page<TpCommentReply>(pageNo, pageSize);
TpCommentReply reply = new TpCommentReply(); TpCommentReply reply = new TpCommentReply();
if (1==type) { RequestContext requestContext = ContextHolder.get();
reply.setState(0);
}
reply.setTpCommentId(commmentId); reply.setTpCommentId(commmentId);
reply.setAuditStatus("0"); reply.setAuditStatus("0");
EntityWrapper<TpCommentReply> wrapper = new EntityWrapper<TpCommentReply>(reply); EntityWrapper<TpCommentReply> wrapper = new EntityWrapper<TpCommentReply>(reply);
if (1==type) {
wrapper.and("(state={0} or create_by_id={1})", 0, requestContext.getAccountId());
}
iTpCommentReplyService.selectPage(page, wrapper); iTpCommentReplyService.selectPage(page, wrapper);
String fullName; String fullName;
String name; String name;
......
...@@ -66,7 +66,7 @@ public class TrainingEvenSendMessage { ...@@ -66,7 +66,7 @@ public class TrainingEvenSendMessage {
vo.setRequestContext(requestContext); vo.setRequestContext(requestContext);
try { try {
//临时取消触发功能 //临时取消触发功能
publicSendMessageClient.processBizEvent( new EventWrapper<MessageRemindVo>(null, vo)); publicSendMessageClient.processBizEvent(vo);
} catch (Exception e) { } catch (Exception e) {
e.printStackTrace(); e.printStackTrace();
logger.error("发送消息失败=====================", e); logger.error("发送消息失败=====================", e);
...@@ -108,13 +108,13 @@ public class TrainingEvenSendMessage { ...@@ -108,13 +108,13 @@ public class TrainingEvenSendMessage {
} }
if (remindVo.getHasDeleted()) { if (remindVo.getHasDeleted()) {
vo.setHasDeleted(remindVo.getHasDeleted()); vo.setHasDeleted(remindVo.getHasDeleted());
publicSendMessageClient.processBizEvent( new EventWrapper<MessageRemindVo>(null, vo)); publicSendMessageClient.processBizEvent(vo);
logger.info("发送删除消息成功!!"); logger.info("发送删除消息成功!!");
} else { } else {
if (remindVo.getVisibleRangeUpdate()) { if (remindVo.getVisibleRangeUpdate()) {
vo.setVisibleRangeUpdate(remindVo.getVisibleRangeUpdate()); vo.setVisibleRangeUpdate(remindVo.getVisibleRangeUpdate());
vo.setVisibleRange(trainingProject.getVisibleRange()); vo.setVisibleRange(trainingProject.getVisibleRange());
publicSendMessageClient.processBizEvent( new EventWrapper<MessageRemindVo>(null, vo)); publicSendMessageClient.processBizEvent(vo);
logger.info("发送计划同步可见范围消息成功!!"); logger.info("发送计划同步可见范围消息成功!!");
return; return;
} }
...@@ -123,7 +123,7 @@ public class TrainingEvenSendMessage { ...@@ -123,7 +123,7 @@ public class TrainingEvenSendMessage {
//1 为消息业务可发送状态 0 则不行 //1 为消息业务可发送状态 0 则不行
vo.setTaskStatus(trainingProject.getStatus().equals(ProjectConstant.PROJECT_STATUS_ENABLE) ? 1 : 0); vo.setTaskStatus(trainingProject.getStatus().equals(ProjectConstant.PROJECT_STATUS_ENABLE) ? 1 : 0);
vo.setTaskStatusUpdate(remindVo.getTaskStatusUpdate()); vo.setTaskStatusUpdate(remindVo.getTaskStatusUpdate());
publicSendMessageClient.processBizEvent( new EventWrapper<MessageRemindVo>(null, vo)); publicSendMessageClient.processBizEvent(vo);
logger.info("发送修改业务状态消息成功====================="); logger.info("发送修改业务状态消息成功=====================");
return; return;
} }
...@@ -158,7 +158,7 @@ public class TrainingEvenSendMessage { ...@@ -158,7 +158,7 @@ public class TrainingEvenSendMessage {
} }
try { try {
publicSendMessageClient.processBizEvent( new EventWrapper<MessageRemindVo>(null, vo)); publicSendMessageClient.processBizEvent(vo);
logger.info("发送消息成功====================="); logger.info("发送消息成功=====================");
} catch (Exception e) { } catch (Exception e) {
e.printStackTrace(); e.printStackTrace();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment