|
@@ -29,7 +29,7 @@ public class SysOrgVO {
|
|
|
private Integer type;
|
|
private Integer type;
|
|
|
private String shortName;
|
|
private String shortName;
|
|
|
private String treeShowPath;
|
|
private String treeShowPath;
|
|
|
- private Integer sort;
|
|
|
|
|
|
|
+ private Integer sort=0;
|
|
|
@JsonSerialize(using = ToStringSerializer.class)
|
|
@JsonSerialize(using = ToStringSerializer.class)
|
|
|
private Long treeShowParentId;
|
|
private Long treeShowParentId;
|
|
|
private List<SysOrgVO> children = new ArrayList<SysOrgVO>();
|
|
private List<SysOrgVO> children = new ArrayList<SysOrgVO>();
|
|
@@ -37,7 +37,7 @@ public class SysOrgVO {
|
|
|
|
|
|
|
|
public List<SysOrgVO> getChildren() {
|
|
public List<SysOrgVO> getChildren() {
|
|
|
if(children.size() > 0) {
|
|
if(children.size() > 0) {
|
|
|
- children.stream().sorted(Comparator.comparing(SysOrgVO::getSort).reversed()).collect(Collectors.toList());
|
|
|
|
|
|
|
+ children.sort(Comparator.comparing(SysOrgVO::getSort).reversed());
|
|
|
}
|
|
}
|
|
|
return children;
|
|
return children;
|
|
|
}
|
|
}
|