Explorar el Código

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

吕宣芝 hace 1 año
padre
commit
f9ecf4eac7
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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();