|
|
@@ -1398,7 +1398,25 @@ public class UserController {
|
|
|
UserDTO currentUserDTO = UserUtils.getCurrentUserDTO();
|
|
|
for (RoleDTO roleDTO : currentUserDTO.getRoleDTOList()) {
|
|
|
if (ObjectUtils.isNotEmpty(roleDTO)) {
|
|
|
- if ("zjbry".equals(roleDTO.getEnName()) || "zjbbx".equals(roleDTO.getEnName())) {
|
|
|
+ if ("zjbry".equals(roleDTO.getEnName()) || "zjbbx".equals(roleDTO.getEnName()) || "zsbxqxld".equals(roleDTO.getEnName())) {
|
|
|
+ return true;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 判断当前用户是否是总经办人员
|
|
|
+ */
|
|
|
+ @ApiLog("判断当前用户是否是苏州分公司智永祥部门人员")
|
|
|
+ @GetMapping("isSzZyx")
|
|
|
+ @ApiOperation(value = "判断当前用户是否是苏州分公司智永祥部门人员")
|
|
|
+ public boolean isSzZyx() {
|
|
|
+ UserDTO currentUserDTO = UserUtils.getCurrentUserDTO();
|
|
|
+ for (RoleDTO roleDTO : currentUserDTO.getRoleDTOList()) {
|
|
|
+ if (ObjectUtils.isNotEmpty(roleDTO)) {
|
|
|
+ if ("zsbxszzyx".equals(roleDTO.getEnName())) {
|
|
|
return true;
|
|
|
}
|
|
|
}
|