From abe07eef3dfc2c15b40ed6740da2c39e5eeb21ef Mon Sep 17 00:00:00 2001 From: lijiaqi Date: Thu, 8 Aug 2024 15:23:18 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=BB=E9=99=A4=E9=A2=84=E7=AE=97=E5=B7=A5?= =?UTF-8?q?=E4=BD=9C=E6=B5=81=E6=9C=8D=E5=8A=A1=E4=B8=AD=E6=9C=AA=E4=BD=BF?= =?UTF-8?q?=E7=94=A8=E7=9A=84=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 移除了 BudgetWorkFlowService 类中有关角色检查的无用代码,该检查原本用于验证用户是否具有“维修上报”角色。由于当前流程不再需要此角色检查,因此删除了相关代码以简化实现。 --- .../oa/workFlow/engine/service/impl/BudgetWorkFlowService.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/com/ydool/oa/workFlow/engine/service/impl/BudgetWorkFlowService.java b/src/main/java/com/ydool/oa/workFlow/engine/service/impl/BudgetWorkFlowService.java index 3c4598c..1b73d66 100644 --- a/src/main/java/com/ydool/oa/workFlow/engine/service/impl/BudgetWorkFlowService.java +++ b/src/main/java/com/ydool/oa/workFlow/engine/service/impl/BudgetWorkFlowService.java @@ -69,6 +69,7 @@ public class BudgetWorkFlowService implements IWorkFlowType { public AjaxResult first(WorkFlow workFlow) { //是否维修上报角色 User user = userService.getById(workFlow.getUserId()); + // List roles = roleService.listByIds(Arrays.asList(user.getRoles().split(","))); // List roleNames = roles.stream().map(Role::getName).collect(Collectors.toList()); // if (!roleNames.contains("维修上报")) throw new ResultException("您不是维修上报人员");