소스 검색

数字中台-权限公共类判断

吕宣芝 1 년 전
부모
커밋
f9ecf4eac7
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/main/java/com/sooka/sponest/data/utils/DeptLevelUtil.java

+ 1 - 1
src/main/java/com/sooka/sponest/data/utils/DeptLevelUtil.java

@@ -24,7 +24,7 @@ public class DeptLevelUtil {
     private RemoteDeptService remoteDeptService;
 
     public List<Map<String,Object>> getDeptLevel(List<Map<String,Object>> list,String deptId) {
-        if (StringUtils.isEmpty(deptId)){
+        if (StringUtils.isEmpty(deptId)||"null".equals(deptId)){
             deptId = SecurityUtils.getLoginUser().getSysUser().getDeptId().toString();
         }
         List<SysDept> sysDeptList = remoteDeptService.selectChildrenCountyOrVillagesDeptListByDeptId(deptId).getData();