mirror of https://github.com/elunez/eladmin
refactor:Optimized DeptServiceImpl's deduplication method
parent
acaf83af02
commit
70e7d271b2
|
@ -258,7 +258,7 @@ public class DeptServiceImpl implements DeptService {
|
|||
for (DeptDto deptDto : list) {
|
||||
boolean flag = true;
|
||||
for (DeptDto dto : list) {
|
||||
if (deptDto.getPid()!= null && deptDto.getPid().equals(dto.getId())) {
|
||||
if (dto.getId().equals(deptDto.getPid())) {
|
||||
flag = false;
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue