Commit 42e0a938 by zhangdaiscott

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

parent 3f4b40ea
...@@ -288,6 +288,9 @@ public class SysDepartServiceImpl extends ServiceImpl<SysDepartMapper, SysDepart ...@@ -288,6 +288,9 @@ public class SysDepartServiceImpl extends ServiceImpl<SysDepartMapper, SysDepart
public List<String> getMySubDepIdsByDepId(String departIds) { public List<String> getMySubDepIdsByDepId(String departIds) {
//根据部门id获取所负责部门 //根据部门id获取所负责部门
String[] codeArr = this.getMyDeptParentOrgCode(departIds); String[] codeArr = this.getMyDeptParentOrgCode(departIds);
if(codeArr==null || codeArr.length==0){
return null;
}
return this.baseMapper.getSubDepIdsByOrgCodes(codeArr); return this.baseMapper.getSubDepIdsByOrgCodes(codeArr);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment