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

pull/462/head
ZhengJie 2020-08-17 14:28:04 +08:00
parent 49f3b0a53f
commit acaf83af02
1 changed files with 1 additions and 1 deletions

View File

@ -258,7 +258,7 @@ public class DeptServiceImpl implements DeptService {
for (DeptDto deptDto : list) {
boolean flag = true;
for (DeptDto dto : list) {
if (deptDto.getPid().equals(dto.getId())) {
if (deptDto.getPid()!= null && deptDto.getPid().equals(dto.getId())) {
flag = false;
break;
}