‘linchangsheng’ 6 달 전
부모
커밋
fd387e7658
1개의 변경된 파일4개의 추가작업 그리고 4개의 파일을 삭제
  1. 4 4
      mall-server-api/src/main/java/com/gree/mall/manager/logic/notice/NoticeWebsitLogic.java

+ 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();
+
             }
 
         }