部门精简信息列表按sort排序修复

This commit is contained in:
gaoqr
2025-07-10 11:17:52 +08:00
parent 45d39328b5
commit c8e2755242
@@ -372,7 +372,7 @@ public class DeptServiceImpl implements DeptService {
.collect(Collectors.toMap(DeptDO::getId, deptDO -> deptDO));
Map<Long, Boolean> topLevelCache = new HashMap<>();
Set<DeptDO> resultSet = new HashSet<>();
Set<DeptDO> resultSet = new LinkedHashSet<>();
for (DeptDO deptDO : deptDOS) {
if (isParentDeptTopLevel(deptDO, deptMap, topLevelCache)) {