浏览代码

部门及子部门为空,添加判断

tags/v1.0.0^2
chengwang 1年前
父节点
当前提交
9c0e0d1460
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. +3
    -0
      tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/service/structure/StructureServiceImpl.java

+ 3
- 0
tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/service/structure/StructureServiceImpl.java 查看文件

@@ -106,6 +106,9 @@ public class StructureServiceImpl extends BaseServiceImpl<StructureMapper, Struc
}
//获取当前登录用户对应的部门及子部门
List<String> deptList = deptMapper.selectAllChildListById(deptId);
if(StringUtils.isEmpty(deptList) && deptList.size()<=0){
return JsonResult.error(SectionEnum.DEPT_ID_IS_NULL.getCode(),SectionEnum.DEPT_ID_IS_NULL.getMsg());
}
//根据部门列表查对应的部门路段数据列表
List<SectionDept> sectionDeptList = sectionDeptMapper.selectList(Wrappers.<SectionDept>lambdaQuery()
.eq(SectionDept::getTenantId, tenantId)

正在加载...
取消
保存