瀏覽代碼

补扣默认读取状态

谭斌 1 年之前
父節點
當前提交
e42cabbc97
共有 1 個文件被更改,包括 6 次插入0 次删除
  1. 6 0
      sys-api-service/src/main/java/com/xy/service/MsgSysMonitorNoticeServiceImpl.java

+ 6 - 0
sys-api-service/src/main/java/com/xy/service/MsgSysMonitorNoticeServiceImpl.java

@@ -76,7 +76,13 @@ public class MsgSysMonitorNoticeServiceImpl extends ServiceImpl<MsgSysMonitorNot
         save(saveInfo);
         Long userId = save.getUserId();
         if (userId != null) {
+            String channelType = save.getChannelType();
+
             MsgUserMessageDto.Save mum = new MsgUserMessageDto.Save();
+            if ("ORDER_CUT".equals(channelType)) {
+                //补扣设置为已读
+                mum.setReadState("2");
+            }
             mum.setMsgId(saveInfo.getMsgId());
             mum.setMsgType(saveInfo.getMsgType());
             mum.setPriority(saveInfo.getPriority());