From 3e562f8cdfb45a54eca609ff35eaa9656de048fe Mon Sep 17 00:00:00 2001
From: whycxzp <perryhsu@163.com>
Date: 星期三, 16 八月 2023 15:30:17 +0800
Subject: [PATCH] 更新告警手动消除

---
 src/main/java/com/whyc/controller/WorkflowLinkController.java |   14 +++++++++-----
 1 files changed, 9 insertions(+), 5 deletions(-)

diff --git a/src/main/java/com/whyc/controller/WorkflowLinkController.java b/src/main/java/com/whyc/controller/WorkflowLinkController.java
index c493875..eb74468 100644
--- a/src/main/java/com/whyc/controller/WorkflowLinkController.java
+++ b/src/main/java/com/whyc/controller/WorkflowLinkController.java
@@ -2,8 +2,10 @@
 
 import com.whyc.dto.Response;
 import com.whyc.dto.WorkflowLinkDTO;
+import com.whyc.pojo.UserInf;
 import com.whyc.pojo.WorkflowLink;
 import com.whyc.service.WorkflowLinkService;
+import com.whyc.util.ActionUtil;
 import io.swagger.annotations.Api;
 import io.swagger.annotations.ApiOperation;
 import org.springframework.beans.factory.annotation.Autowired;
@@ -40,9 +42,10 @@
     }
 
     @GetMapping("searchTmp")
-    @ApiOperation(value = "鏌ヨ鑺傜偣(闄ゆ斁鐢佃鍒掍箣澶栫殑)")
+    @ApiOperation(value = "鏌ヨ鑺傜偣(闄ゆ斁鐢佃鍒掍箣澶栫殑)", notes = "status:0鍏ㄩ儴锛�1瀹℃壒涓紝2瀹℃壒閫氳繃锛�3椹冲洖锛泃ype:0鍏ㄩ儴锛�2浜屾鏀剧數锛�3鍛婅闅愭偅")
     public Response searchTmp(@RequestParam int type, @RequestParam int status, @RequestParam int pageNum, @RequestParam int pageSize) {
-        return service.searchTmp(type, status, pageNum, pageSize);
+        UserInf uinf = ActionUtil.getUser();
+        return service.searchTmp(uinf.getUId().intValue(), uinf.getURole(), type, status, pageNum, pageSize);
     }
 
     @GetMapping("searchLastHrById")
@@ -51,9 +54,10 @@
         return service.searchLastHrById(mid);
     }
 
-    @GetMapping("getFlowMain")
-    @ApiOperation(value = "鏌ヨ鑷繁鐢宠鐨勫伐鍗�(鍘婚櫎鏀剧數璁″垝)")
+    @GetMapping("getFlowMainByUid")
+    @ApiOperation(value = "鏌ヨ鑷繁鐢宠鐨勫伐鍗�(鍘婚櫎鏀剧數璁″垝)", notes = "status:0鍏ㄩ儴锛�1瀹℃壒涓紝2瀹℃壒閫氳繃锛�3椹冲洖锛泃ype:0鍏ㄩ儴锛�2浜屾鏀剧數锛�3鍛婅闅愭偅")
     public Response getFlowMainByUid(@RequestParam int type, @RequestParam int status, @RequestParam int pageNum, @RequestParam int pageSize) {
-        return service.getFlowMainByUid(type, status, pageNum, pageSize);
+        UserInf uinf = ActionUtil.getUser();
+        return service.getFlowMainByUid(uinf.getUId().intValue(), type, status, pageNum, pageSize);
     }
 }

--
Gitblit v1.9.1