From 160e150009b51a39fa95d9462c3798ba28d51a09 Mon Sep 17 00:00:00 2001 From: lxw <810412026@qq.com> Date: 星期二, 15 八月 2023 08:49:47 +0800 Subject: [PATCH] 审批页面修改 --- src/main/java/com/whyc/controller/WorkflowActionController.java | 21 +++++++++++++++++---- 1 files changed, 17 insertions(+), 4 deletions(-) diff --git a/src/main/java/com/whyc/controller/WorkflowActionController.java b/src/main/java/com/whyc/controller/WorkflowActionController.java index 83537f8..6713779 100644 --- a/src/main/java/com/whyc/controller/WorkflowActionController.java +++ b/src/main/java/com/whyc/controller/WorkflowActionController.java @@ -1,8 +1,10 @@ package com.whyc.controller; import com.whyc.dto.Response; +import com.whyc.pojo.UserInf; import com.whyc.pojo.WorkflowAction; import com.whyc.service.WorkflowActionService; +import com.whyc.util.ActionUtil; import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; import org.springframework.beans.factory.annotation.Autowired; @@ -34,10 +36,21 @@ return new Response().setII(1,"鏇存柊鎴愬姛"); } - @GetMapping("actionTypeList") - @ApiOperation(value = "鏌ヨ鍔ㄤ綔绫诲瀷鍒楄〃") - public Response<List<WorkflowAction>> getActionTypeList(@RequestParam Integer type,@RequestParam Integer linkType){ - List<WorkflowAction> actionTypeList = service.getActionTypeList(type,linkType); + @GetMapping("actionTypeList4Link") + @ApiOperation(value = "鏌ヨ鑺傜偣鐨勫姩浣滅被鍨嬪垪琛�") + public Response<List<WorkflowAction>> getActionTypeList4Link(@RequestParam Integer type,@RequestParam Integer linkType){ + List<WorkflowAction> actionTypeList = service.getActionTypeList4Link(type,linkType); + return new Response<List<WorkflowAction>>().set(1,actionTypeList); + } + + /** + * @see com.whyc.constant.RoleEnum 鐢ㄦ埛瑙掕壊璇存槑 + */ + @GetMapping("actionTypeList4Role") + @ApiOperation(value = "鏌ヨ鍔ㄤ綔鍒楄〃") + public Response getActionTypeList(@RequestParam Integer type,@RequestParam Integer status){ + int userRole = ActionUtil.getUser().getURole(); + List<WorkflowAction> actionTypeList = service.getActionTypeList(type,status,userRole); return new Response<List<WorkflowAction>>().set(1,actionTypeList); } } -- Gitblit v1.9.1