refactor:Optimized DeptServiceImpl's deduplication method

pull/472/head
wangmingcan 2020-08-25 14:48:42 +08:00
parent acaf83af02
commit 70e7d271b2
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()!= null && deptDto.getPid().equals(dto.getId())) {
if (dto.getId().equals(deptDto.getPid())) {
flag = false;
break;
}