【fix】我的部门空数据的时候报错

This commit is contained in:
zer0Black
2022-04-09 10:55:35 +08:00
parent 73eec705b5
commit 2bee6198eb
@@ -269,6 +269,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);
}