From dc10a8c759208b83b0717c3aba0fb8b9899ca782 Mon Sep 17 00:00:00 2001 From: zhangsiqi <2825463979@qq.com> Date: Sat, 20 Jul 2024 11:02:49 +0800 Subject: [PATCH] =?UTF-8?q?[feat]BOM=E4=BF=A1=E6=81=AF:=20=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0BOM=E6=96=87=E4=BB=B6=E6=94=B9=E4=B8=BA=E5=8F=AA?= =?UTF-8?q?=E6=9C=89=E5=B7=A5=E7=A8=8B=E5=91=98=E8=83=BD=E5=A4=9F=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0bom=E5=88=97=E8=A1=A8=EF=BC=8C=E5=B7=A5=E7=A8=8B?= =?UTF-8?q?=E9=83=A8=E9=97=A8=E7=BB=8F=E7=90=86=E3=80=81=E4=B8=BB=E7=AE=A1?= =?UTF-8?q?=E3=80=81=E7=A0=94=E5=8F=91=E6=80=BB=E7=9B=91=E6=94=B9=E4=B8=BA?= =?UTF-8?q?=E5=8F=AA=E6=9C=89=E5=AE=A1=E6=A0=B8=E6=9D=83=E9=99=90=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ruoyi/erp/service/impl/ErpBomServiceImpl.java | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/ruoyi-admin/src/main/java/com/ruoyi/erp/service/impl/ErpBomServiceImpl.java b/ruoyi-admin/src/main/java/com/ruoyi/erp/service/impl/ErpBomServiceImpl.java index 09ad985e..237a2573 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/erp/service/impl/ErpBomServiceImpl.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/erp/service/impl/ErpBomServiceImpl.java @@ -750,14 +750,15 @@ private ISysAttachService attachService; private void buildAuthority(SysUser user, Map variables) { Set roleKeys = roleService.selectRoleKeys(user.getUserId()); // 角色不同审核人不同 - if(roleKeys.contains("yfzjRole") || roleKeys.contains("admin")){ - variables.put("authority",4); - }else if(roleKeys.contains("gczgRole")){ - variables.put("authority",3); - }else if(roleKeys.contains("gcjlRole")){ - variables.put("authority",2); - }else if(roleKeys.contains("gcwyRole")){ + if(roleKeys.contains("gcwyRole")){ variables.put("authority",1); } +// else if(roleKeys.contains("gczgRole")){ +// variables.put("authority",3); +// }else if(roleKeys.contains("gcjlRole")){ +// variables.put("authority",2); +// } +// if(roleKeys.contains("yfzjRole") || roleKeys.contains("admin")){ +// variables.put("authority",4); } }