‘linchangsheng’ il y a 5 mois
Parent
commit
fd387e7658

+ 4 - 4
mall-server-api/src/main/java/com/gree/mall/manager/logic/notice/NoticeWebsitLogic.java

@@ -219,7 +219,9 @@ public class NoticeWebsitLogic {
                     .list();
             for (NoticeWebsitRecord websitRecord : list) {
 
-
+                websitRecord.setReadFlag(IsYesNoEnum.YES.getKey());
+                websitRecord.setReadTime(new Date());
+                websitRecord.updateById();
                 NoticeWebsit one = noticeWebsitService.getById(websitRecord.getNoticeWebsitId());
                 if (one != null){
                     one.setNum(noticeWebsitRecordService.lambdaQuery()
@@ -228,9 +230,7 @@ public class NoticeWebsitLogic {
                     one.updateById();
                 }
 
-                websitRecord.setReadFlag(IsYesNoEnum.YES.getKey());
-                websitRecord.setReadTime(new Date());
-                websitRecord.updateById();
+
             }
 
         }