Browse Source

modify:

1. 增加阶段跳转改造情况列表;
tags/24082602^0
WendyYang 2 months ago
parent
commit
8659693653
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      hz-pm-api/src/main/java/com/hz/pm/api/user/manage/MhUnitManage.java

+ 2
- 1
hz-pm-api/src/main/java/com/hz/pm/api/user/manage/MhUnitManage.java View File

@@ -107,12 +107,13 @@ public class MhUnitManage {
String parentName = StrUtil.blankToDefault(parent.getShortName(), parent.getName());
String unitName = StrUtil.blankToDefault(unit.getShortName(), unit.getName());
unit.setShortName(parentName + unitName);
unit.setName(unit.getShortName());
}
}
return unit;
}).collect(Collectors.toList());
Function<MhUnitTreeDTO, Integer> function = w -> w.getType().getStrip().getCode();
nodes.sort(Comparator.comparing(MhUnitTreeDTO::getShortName)
nodes.sort(Comparator.comparing(MhUnitTreeDTO::getName)
.thenComparing(function, Comparator.reverseOrder()));
return nodes;
}


Loading…
Cancel
Save