Browse Source

Merge remote-tracking branch 'origin/eitc-erm' into eitc-erm

zhangjiansheng 3 months ago
parent
commit
1d38e139f4

+ 2 - 2
eitc-common/src/main/java/com/eitc/common/handler/MyMetaObjectHandler.java

@@ -81,9 +81,9 @@ public class MyMetaObjectHandler implements MetaObjectHandler {
81
         String username = "";
81
         String username = "";
82
         try {
82
         try {
83
             try {
83
             try {
84
-                username = SecurityUtils.getUsername();
84
+                username = SecurityUtils.getLoginUser().getUser().getNickName();
85
             } catch (ServiceException e) {
85
             } catch (ServiceException e) {
86
-                log.error("获取用户失败{}", e.getMessage());
86
+                log.error("获取PC用户失败{}", e.getMessage());
87
                 username = JWTUtil.getAppPhoneNumber();
87
                 username = JWTUtil.getAppPhoneNumber();
88
             }
88
             }
89
         } catch (Exception e) {
89
         } catch (Exception e) {

+ 1 - 1
eitc-patient-pc/src/main/java/com/eitc/patient/controller/NoticeManageController.java

@@ -89,7 +89,7 @@ public class NoticeManageController extends BaseController {
89
         if (Objects.equals(noticeManage.getPublishStatus(), NoticeManagePublishStatusEnum.PUBLISH.getCode())) {
89
         if (Objects.equals(noticeManage.getPublishStatus(), NoticeManagePublishStatusEnum.PUBLISH.getCode())) {
90
             return AjaxResult.error("请先撤回");
90
             return AjaxResult.error("请先撤回");
91
         }
91
         }
92
-        noticeManage.setDisplayStatus(noticeManageService.checkDisplayStatus(noticeManage));
92
+        entry.setDisplayStatus(noticeManageService.checkDisplayStatus(entry));
93
         return toAjax(noticeManageService.updateById(entry));
93
         return toAjax(noticeManageService.updateById(entry));
94
     }
94
     }
95
 
95