Commit b60c7b3e by fengshuonan

修正like查询错误

parent 9082d7e2
...@@ -301,18 +301,20 @@ public class ConstantFactory implements IConstantFactory { ...@@ -301,18 +301,20 @@ public class ConstantFactory implements IConstantFactory {
@Override @Override
public List<Long> getSubDeptId(Long deptId) { public List<Long> getSubDeptId(Long deptId) {
ArrayList<Long> deptIds = new ArrayList<>();
List<Dept> depts = this.deptMapper.likePids(deptId); if (deptId == null) {
return deptIds;
ArrayList<Long> deptids = new ArrayList<>(); } else {
List<Dept> depts = this.deptMapper.likePids(deptId);
if (depts != null && depts.size() > 0) { if (depts != null && depts.size() > 0) {
for (Dept dept : depts) { for (Dept dept : depts) {
deptids.add(dept.getDeptId()); deptIds.add(dept.getDeptId());
}
} }
}
return deptids; return deptIds;
}
} }
@Override @Override
......
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