From 219cf838792ab0d50dd042d0fb8c60dd3a1e76f8 Mon Sep 17 00:00:00 2001
From: 龚焕茏 <2842157468@qq.com>
Date: 星期二, 16 七月 2024 17:56:47 +0800
Subject: [PATCH] feat:部门管理员不展示通知

---
 src/main/java/com/mindskip/xzs/domain/vo/AdminNotifyVO.java           |    9 +++++----
 src/main/java/com/mindskip/xzs/controller/admin/NotifyController.java |    4 +++-
 2 files changed, 8 insertions(+), 5 deletions(-)

diff --git a/src/main/java/com/mindskip/xzs/controller/admin/NotifyController.java b/src/main/java/com/mindskip/xzs/controller/admin/NotifyController.java
index 6506dd3..e558e4a 100644
--- a/src/main/java/com/mindskip/xzs/controller/admin/NotifyController.java
+++ b/src/main/java/com/mindskip/xzs/controller/admin/NotifyController.java
@@ -1,5 +1,6 @@
 package com.mindskip.xzs.controller.admin;
 
+import com.mindskip.xzs.base.BaseApiController;
 import com.mindskip.xzs.base.RestResponse;
 import com.mindskip.xzs.domain.Notify;
 import com.mindskip.xzs.domain.enums.NotifyRefType;
@@ -21,7 +22,7 @@
 @RestController
 @RequiredArgsConstructor
 @RequestMapping("/api/admin/notify")
-public class NotifyController {
+public class NotifyController extends BaseApiController {
 
     private final NotifyService notifyService;
 
@@ -43,6 +44,7 @@
         data.setStatus(status);
         List<Integer> ids = notifies.stream().map(Notify::getId).collect(Collectors.toList());
         data.setIds(ids);
+        data.setRole(getCurrentUser().getRole());
         return RestResponse.ok(data);
     }
 
diff --git a/src/main/java/com/mindskip/xzs/domain/vo/AdminNotifyVO.java b/src/main/java/com/mindskip/xzs/domain/vo/AdminNotifyVO.java
index 200aa81..d367e76 100644
--- a/src/main/java/com/mindskip/xzs/domain/vo/AdminNotifyVO.java
+++ b/src/main/java/com/mindskip/xzs/domain/vo/AdminNotifyVO.java
@@ -17,26 +17,27 @@
 
     /**
      * 鎵�鏈変唬鍔�
-     *
      */
     private Integer total;
 
     /**
      * 閿欓鍙嶉浠e姙
-     *
      */
     private Long feedBack;
 
     /**
      * 閮ㄩ棬璋冨姩浠e姙
-     *
      */
     private Long mobilize;
 
     /**
      * 鐘舵�佽缃�
-     *
      */
     private Long status;
 
+    /**
+     * 鐧诲綍浜鸿鑹�
+     */
+    private Integer role;
+
 }

--
Gitblit v1.8.0