From 22a11e5c224544cdb79fc81121d0ab9323ba3196 Mon Sep 17 00:00:00 2001
From: k94314517 <8417338+k94314517@user.noreply.gitee.com>
Date: 星期三, 11 九月 2024 17:39:37 +0800
Subject: [PATCH] 代码初始化

---
 server/system_service/src/main/java/com/doumee/service/system/impl/NoticesServiceImpl.java |   15 ++++++++-------
 1 files changed, 8 insertions(+), 7 deletions(-)

diff --git a/server/system_service/src/main/java/com/doumee/service/system/impl/NoticesServiceImpl.java b/server/system_service/src/main/java/com/doumee/service/system/impl/NoticesServiceImpl.java
index c7c5d13..15af0a6 100644
--- a/server/system_service/src/main/java/com/doumee/service/system/impl/NoticesServiceImpl.java
+++ b/server/system_service/src/main/java/com/doumee/service/system/impl/NoticesServiceImpl.java
@@ -203,14 +203,15 @@
         if(Objects.isNull(notices)){
             throw new BusinessException(ResponseStatus.DATA_EMPTY);
         }
-        if(Constants.equalsInteger(notices.getSendacopy(),Constants.ONE)){
-            if(Constants.equalsInteger(Constants.ZERO,notices.getReaded())){
-                noticesMapper.update(null,new UpdateWrapper<Notices>().lambda()
-                        .set(Notices::getReaded,Constants.ONE).eq(Notices::getId,noticesId));
-            }
-        }else{
-            throw new BusinessException(ResponseStatus.NOT_ALLOWED.getCode(),"闈炴妱閫佹暟鎹�,鏃犳硶杩涜鏍囪");
+        if(Constants.equalsInteger(Constants.ZERO,notices.getReaded())){
+            noticesMapper.update(null,new UpdateWrapper<Notices>().lambda()
+                    .set(Notices::getReaded,Constants.ONE).eq(Notices::getId,noticesId));
         }
+//        if(Constants.equalsInteger(notices.getSendacopy(),Constants.ONE)){
+//
+//        }else{
+//            throw new BusinessException(ResponseStatus.NOT_ALLOWED.getCode(),"闈炴妱閫佹暟鎹�,鏃犳硶杩涜鏍囪");
+//        }
     }
 
     /**

--
Gitblit v1.9.3