1.pmsBug修改
This commit is contained in:
@@ -110,4 +110,6 @@ public class RStatOrgVO implements Serializable {
|
||||
@ApiModelProperty(name = "dataType",value = "数据类型(01:主网测点 02:配网测点)")
|
||||
private String dataType;
|
||||
|
||||
}
|
||||
private Integer sort;
|
||||
|
||||
}
|
||||
|
||||
@@ -30,10 +30,7 @@ import org.apache.commons.lang.StringUtils;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.text.DecimalFormat;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.*;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
/**
|
||||
@@ -126,7 +123,8 @@ public class StatisticsOfTransientIndicatorssServiceImpl implements StatisticsOf
|
||||
Map<String, DeptDTO> deptDTOMap = deptDTOList.stream().collect(Collectors.toMap(DeptDTO::getCode, DeptDTO -> DeptDTO));
|
||||
return result.stream().peek(vo -> {
|
||||
vo.setOrgName(deptDTOMap.get(vo.getOrgNo()).getName());
|
||||
}).collect(Collectors.toList());
|
||||
vo.setSort(deptDTOMap.get(vo.getOrgNo()).getSort());
|
||||
}).sorted(Comparator.comparing(RStatOrgVO::getSort)).collect(Collectors.toList());
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user