mirror of https://github.com/elunez/eladmin
[代码完善](v2.5): 部门查询优化
parent
49f3b0a53f
commit
acaf83af02
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue