我的部门空数据的时候报错

pull/3201/head
zhangdaiscott 2021-11-06 19:02:53 +08:00
parent 3f4b40ea74
commit 42e0a938da
1 changed files with 3 additions and 0 deletions

View File

@ -288,6 +288,9 @@ public class SysDepartServiceImpl extends ServiceImpl<SysDepartMapper, SysDepart
public List<String> getMySubDepIdsByDepId(String departIds) {
//根据部门id获取所负责部门
String[] codeArr = this.getMyDeptParentOrgCode(departIds);
if(codeArr==null || codeArr.length==0){
return null;
}
return this.baseMapper.getSubDepIdsByOrgCodes(codeArr);
}