Browse Source

多公司报销(部门主任)

sangwenwei 1 year ago
parent
commit
6dce5d3730

+ 18 - 0
jeeplus-modules/jeeplus-system/src/main/java/com/jeeplus/sys/controller/UserController.java

@@ -1039,6 +1039,24 @@ public class UserController {
     }
 
     /**
+     * 判断当前用户是否是多公司报销(部门主任)
+     */
+    @ApiLog("判断当前用户是否是多公司报销(部门主任)")
+    @GetMapping("isDgsbxBmzr")
+    @ApiOperation(value = "判断当前用户是否是多公司报销(部门主任)")
+    public boolean isDgsbxBmzr(){
+        UserDTO currentUserDTO = UserUtils.getCurrentUserDTO();
+        for (RoleDTO roleDTO : currentUserDTO.getRoleDTOList()) {
+            if (ObjectUtils.isNotEmpty(roleDTO)){
+                if ("dgsbx_bmzr".equals(roleDTO.getEnName())){
+                    return true;
+                }
+            }
+        }
+        return false;
+    }
+
+    /**
      * 判断当前用户是否是总经办人员
      */
     @ApiLog("判断当前用户是否是总经办人员")