Commit acaf83af authored by ZhengJie's avatar ZhengJie
Browse files

[代码完善](v2.5): 部门查询优化

parent 49f3b0a5
...@@ -258,7 +258,7 @@ public class DeptServiceImpl implements DeptService { ...@@ -258,7 +258,7 @@ public class DeptServiceImpl implements DeptService {
for (DeptDto deptDto : list) { for (DeptDto deptDto : list) {
boolean flag = true; boolean flag = true;
for (DeptDto dto : list) { for (DeptDto dto : list) {
if (deptDto.getPid().equals(dto.getId())) { if (deptDto.getPid()!= null && deptDto.getPid().equals(dto.getId())) {
flag = false; flag = false;
break; break;
} }
......
Supports Markdown
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