|
@@ -77,7 +77,7 @@ public class BenchmarkingService {
|
|
|
public List<ProBasicLine> lnByPjlist(String pjids) {
|
|
|
return CacheContext.lnls.stream().filter(ln->pjids.contains(ln.getProjectId())).collect(Collectors.toList());
|
|
|
}
|
|
|
- public List<FjjxbVo> performance(String companyid, String getype, String sttype, String beginDate, String endDate, String wpids, String projectids, String lineids) {
|
|
|
+ public List<FjjxbVo> performance(String companyid, String getype, String sttype, String beginDate, String endDate, String wpids, String projectids, String lineids, String target, String sort) {
|
|
|
List<FjjxbVo> resultList = new ArrayList<>();
|
|
|
QueryWrapper<ProEconEquipmentInfoDay1> qw = new QueryWrapper<>();
|
|
|
StringBuilder sb = new StringBuilder();
|
|
@@ -177,7 +177,16 @@ public class BenchmarkingService {
|
|
|
sl.updateAndGet(v -> new Double((double) (v + vo.getSl())));
|
|
|
resultList.add(vo);
|
|
|
});
|
|
|
- SortUtils.sort(resultList,"ordernum",SortUtils.ASC);
|
|
|
+ if (StringUtils.isNotEmpty(target) && StringUtils.isNotEmpty(sort)){
|
|
|
+ if (sort.equals("1")){
|
|
|
+ SortUtils.sort(resultList,target,SortUtils.ASC);
|
|
|
+ }else {
|
|
|
+ SortUtils.sort(resultList,target,SortUtils.DESC);
|
|
|
+ }
|
|
|
+ }else {
|
|
|
+ //SortUtils.sort(resultList,"fdl",SortUtils.DESC);
|
|
|
+ SortUtils.sort(resultList,"ordernum",SortUtils.ASC);
|
|
|
+ }
|
|
|
FjjxbVo vo = new FjjxbVo();
|
|
|
vo.setId("hj");
|
|
|
vo.setName("合计");
|
|
@@ -195,7 +204,7 @@ public class BenchmarkingService {
|
|
|
return resultList;
|
|
|
}
|
|
|
|
|
|
- public List<FjjxbmxVo> performanceMX(String companyid, String getype, String sttype, String beginDate, String endDate, String wpids, String projectids, String lineids) {
|
|
|
+ public List<FjjxbmxVo> performanceMX(String companyid, String getype, String sttype, String beginDate, String endDate, String wpids, String projectids, String lineids, String target, String sort) {
|
|
|
List<FjjxbmxVo> resultList = new ArrayList<>();
|
|
|
QueryWrapper<ProEconEquipmentInfoDay1> qw = new QueryWrapper<>();
|
|
|
StringBuilder sb = new StringBuilder();
|
|
@@ -313,7 +322,17 @@ public class BenchmarkingService {
|
|
|
sl2.updateAndGet(v -> new Double((double) (v + vo.getSl2())));
|
|
|
resultList.add(vo);
|
|
|
});
|
|
|
- SortUtils.sort(resultList,"ordernum",SortUtils.ASC);
|
|
|
+ if (StringUtils.isNotEmpty(target) && StringUtils.isNotEmpty(sort)){
|
|
|
+ if (sort.equals("1")){
|
|
|
+ SortUtils.sort(resultList,target,SortUtils.ASC);
|
|
|
+ }else {
|
|
|
+ SortUtils.sort(resultList,target,SortUtils.DESC);
|
|
|
+ }
|
|
|
+ }else {
|
|
|
+ //SortUtils.sort(resultList,"fdl",SortUtils.DESC);
|
|
|
+ SortUtils.sort(resultList,"ordernum",SortUtils.ASC);
|
|
|
+ }
|
|
|
+// SortUtils.sort(resultList,"ordernum",SortUtils.ASC);
|
|
|
FjjxbmxVo vo = new FjjxbmxVo();
|
|
|
vo.setId("hj");
|
|
|
vo.setName("合计");
|