|
@@ -2796,12 +2796,12 @@ public class SpecificService {
|
|
|
// }
|
|
|
currentqw.groupBy("to_char(record_date,'yyyy-MM'),station_id");
|
|
|
List<TurbineInfoDay> currentList = iTurbineInfoDayService.list(currentqw);
|
|
|
- currentqw.clear();
|
|
|
- currentqw.select("station_id,max(record_date) record_date,sum(gzss) gzss,sum(llfdl) llfdl");
|
|
|
- currentqw.eq("station_id", CacheContext.wplsf.get(0).getId());
|
|
|
- currentqw.eq("to_char(record_date,'yyyy')", year);
|
|
|
- currentqw.groupBy("to_char(record_date,'yyyy-MM'),station_id");
|
|
|
- currentList.addAll(iTurbineInfoDayService.list(currentqw));
|
|
|
+// currentqw.clear();
|
|
|
+// currentqw.select("station_id,max(record_date) record_date,sum(gzss) gzss,sum(llfdl) llfdl");
|
|
|
+// currentqw.eq("station_id", CacheContext.wplsf.get(0).getId());
|
|
|
+// currentqw.eq("to_char(record_date,'yyyy')", year);
|
|
|
+// currentqw.groupBy("to_char(record_date,'yyyy-MM'),station_id");
|
|
|
+// currentList.addAll(iTurbineInfoDayService.list(currentqw));
|
|
|
|
|
|
int subYear = Integer.parseInt(year) - 1;
|
|
|
QueryWrapper<TurbineInfoDay> sameperiodqw = new QueryWrapper<>();
|
|
@@ -2820,12 +2820,12 @@ public class SpecificService {
|
|
|
sameperiodqw.eq("to_char(record_date,'yyyy')", String.valueOf(subYear));
|
|
|
sameperiodqw.groupBy("to_char(record_date,'yyyy-MM'),station_id");
|
|
|
List<TurbineInfoDay> sameperiodList = iTurbineInfoDayService.list(sameperiodqw);
|
|
|
- sameperiodqw.clear();
|
|
|
- sameperiodqw.select("station_id,max(record_date) record_date,sum(gzss) gzss,sum(llfdl) llfdl");
|
|
|
- sameperiodqw.eq("station_id", CacheContext.wplsf.get(0).getId());
|
|
|
- sameperiodqw.eq("to_char(record_date,'yyyy')", String.valueOf(subYear));
|
|
|
- sameperiodqw.groupBy("to_char(record_date,'yyyy-MM'),station_id");
|
|
|
- sameperiodList.addAll(iTurbineInfoDayService.list(sameperiodqw));
|
|
|
+// sameperiodqw.clear();
|
|
|
+// sameperiodqw.select("station_id,max(record_date) record_date,sum(gzss) gzss,sum(llfdl) llfdl");
|
|
|
+// sameperiodqw.eq("station_id", CacheContext.wplsf.get(0).getId());
|
|
|
+// sameperiodqw.eq("to_char(record_date,'yyyy')", String.valueOf(subYear));
|
|
|
+// sameperiodqw.groupBy("to_char(record_date,'yyyy-MM'),station_id");
|
|
|
+// sameperiodList.addAll(iTurbineInfoDayService.list(sameperiodqw));
|
|
|
|
|
|
//合并当月与同期数据为返回结果
|
|
|
List<SpecificTargetVo> resultList = new ArrayList<>();
|
|
@@ -2867,9 +2867,9 @@ public class SpecificService {
|
|
|
double rfdl = tqinfoday.getGzss() != null ?tqinfoday.getGzss().doubleValue() :0.0;
|
|
|
if (llfdl != 0) {
|
|
|
Double calculatedValue = DoubleUtils.keepPrecision(rfdl / llfdl * 100,2);
|
|
|
- i.setCurrent(calculatedValue);
|
|
|
+ i.setSameperiod(calculatedValue);
|
|
|
} else {
|
|
|
- i.setCurrent(0.0);
|
|
|
+ i.setSameperiod(0.0);
|
|
|
}
|
|
|
i.setCompare(i.getCurrent().compareTo(i.getSameperiod()));
|
|
|
} else {
|
|
@@ -2932,9 +2932,16 @@ public class SpecificService {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-
|
|
|
vo.setTargetList(tempList);
|
|
|
resultendList.add(vo);
|
|
|
+
|
|
|
+ SpecificTarget vo2 = new SpecificTarget();
|
|
|
+ vo2.setWpid(vo.getWpid());
|
|
|
+ vo2.setTargetList(vo.getTargetList());
|
|
|
+ vo2.setOrderNum(vo.getOrderNum()+1);
|
|
|
+ vo2.setWpname(CacheContext.cpmap.get(companys).getAname());
|
|
|
+ resultendList.add(vo2);
|
|
|
+
|
|
|
});
|
|
|
}
|
|
|
SortUtils.sort(resultendList, "orderNum", SortUtils.ASC);
|
|
@@ -3386,7 +3393,7 @@ public class SpecificService {
|
|
|
//获取年份所有当月的数据
|
|
|
QueryWrapper<TurbineInfoDay> currentqw = new QueryWrapper<>();
|
|
|
currentqw.select("station_id,max(record_date) record_date,sum(xdss) xdss,sum(llfdl) llfdl");
|
|
|
- currentqw.eq("location", "wp");
|
|
|
+// currentqw.eq("location", "wp");
|
|
|
currentqw.eq("to_char(record_date,'yyyy')", year);
|
|
|
if (type.equals("-1")) {
|
|
|
currentqw.like("station_id", "_FDC_");
|
|
@@ -3400,12 +3407,12 @@ public class SpecificService {
|
|
|
// }
|
|
|
currentqw.groupBy("to_char(record_date,'yyyy-MM'),station_id");
|
|
|
List<TurbineInfoDay> currentList = iTurbineInfoDayService.list(currentqw);
|
|
|
- currentqw.clear();
|
|
|
- currentqw.select("station_id,max(record_date) record_date,sum(xdss) xdss,sum(llfdl) llfdl");
|
|
|
-// currentqw.eq("foreign_key_id", companys + type);
|
|
|
- currentqw.eq("to_char(record_date,'yyyy')", year);
|
|
|
- currentqw.groupBy("to_char(record_date,'yyyy-MM'),station_id");
|
|
|
- currentList.addAll(iTurbineInfoDayService.list(currentqw));
|
|
|
+// currentqw.clear();
|
|
|
+// currentqw.select("station_id,max(record_date) record_date,sum(xdss) xdss,sum(llfdl) llfdl");
|
|
|
+//// currentqw.eq("foreign_key_id", companys + type);
|
|
|
+// currentqw.eq("to_char(record_date,'yyyy')", year);
|
|
|
+// currentqw.groupBy("to_char(record_date,'yyyy-MM'),station_id");
|
|
|
+// currentList.addAll(iTurbineInfoDayService.list(currentqw));
|
|
|
|
|
|
int subYear = Integer.parseInt(year) - 1;
|
|
|
QueryWrapper<TurbineInfoDay> sameperiodqw = new QueryWrapper<>();
|
|
@@ -3424,12 +3431,12 @@ public class SpecificService {
|
|
|
sameperiodqw.eq("to_char(record_date,'yyyy')", String.valueOf(subYear));
|
|
|
sameperiodqw.groupBy("to_char(record_date,'yyyy-MM'),station_id");
|
|
|
List<TurbineInfoDay> sameperiodList = iTurbineInfoDayService.list(sameperiodqw);
|
|
|
- sameperiodqw.clear();
|
|
|
- sameperiodqw.select("station_id,max(record_date) record_date,sum(xdss) xdss,sum(llfdl) llfdl");
|
|
|
-// sameperiodqw.eq("foreign_key_id", companys + type);
|
|
|
- sameperiodqw.eq("to_char(record_date,'yyyy')", String.valueOf(subYear));
|
|
|
- sameperiodqw.groupBy("to_char(record_date,'yyyy-MM'),station_id");
|
|
|
- sameperiodList.addAll(iTurbineInfoDayService.list(sameperiodqw));
|
|
|
+// sameperiodqw.clear();
|
|
|
+// sameperiodqw.select("station_id,max(record_date) record_date,sum(xdss) xdss,sum(llfdl) llfdl");
|
|
|
+//// sameperiodqw.eq("foreign_key_id", companys + type);
|
|
|
+// sameperiodqw.eq("to_char(record_date,'yyyy')", String.valueOf(subYear));
|
|
|
+// sameperiodqw.groupBy("to_char(record_date,'yyyy-MM'),station_id");
|
|
|
+// sameperiodList.addAll(iTurbineInfoDayService.list(sameperiodqw));
|
|
|
|
|
|
//合并当月与同期数据为返回结果
|
|
|
List<SpecificTargetVo> resultList = new ArrayList<>();
|
|
@@ -3449,7 +3456,15 @@ public class SpecificService {
|
|
|
// Date date = Date.from(instant);
|
|
|
// vo.setYear(DateUtils.getYear(date));
|
|
|
// vo.setMonth(DateUtils.getMonth(date));
|
|
|
- vo.setCurrent(DoubleUtils.keepPrecision(i.getLlfdl().doubleValue() != 0 ? (i.getXdss().doubleValue()) / i.getLlfdl().doubleValue() * 100 : 0, 2));
|
|
|
+// vo.setCurrent(DoubleUtils.keepPrecision(i.getLlfdl().doubleValue() != 0 ? (i.getXdss().doubleValue()) / i.getLlfdl().doubleValue() * 100 : 0, 2));
|
|
|
+ double llfdl = i.getLlfdl() != null ?i.getLlfdl().doubleValue() :0.0;
|
|
|
+ double rfdl = i.getXdss() != null ?i.getXdss().doubleValue() :0.0;
|
|
|
+ if (llfdl != 0) {
|
|
|
+ Double calculatedValue = DoubleUtils.keepPrecision(rfdl / llfdl * 100,2);
|
|
|
+ vo.setCurrent(calculatedValue);
|
|
|
+ } else {
|
|
|
+ vo.setCurrent(0.0);
|
|
|
+ }
|
|
|
resultList.add(vo);
|
|
|
});
|
|
|
resultList.stream().forEach(i -> {
|
|
@@ -3458,7 +3473,16 @@ public class SpecificService {
|
|
|
.findFirst();
|
|
|
if (optional.isPresent()) {
|
|
|
TurbineInfoDay tqinfoday = optional.get();
|
|
|
- i.setSameperiod(DoubleUtils.keepPrecision(tqinfoday.getLlfdl().doubleValue() != 0 ? (tqinfoday.getXdss().doubleValue() ) / tqinfoday.getLlfdl().doubleValue() * 100 : 0, 2));
|
|
|
+// i.setSameperiod(DoubleUtils.keepPrecision(tqinfoday.getLlfdl().doubleValue() != 0 ? (tqinfoday.getXdss().doubleValue() ) / tqinfoday.getLlfdl().doubleValue() * 100 : 0, 2));
|
|
|
+
|
|
|
+ double llfdl = tqinfoday.getLlfdl() != null ?tqinfoday.getLlfdl().doubleValue() :0.0;
|
|
|
+ double rfdl = tqinfoday.getXdss() != null ?tqinfoday.getXdss().doubleValue() :0.0;
|
|
|
+ if (llfdl != 0) {
|
|
|
+ Double calculatedValue = DoubleUtils.keepPrecision(rfdl / llfdl * 100,2);
|
|
|
+ i.setSameperiod(calculatedValue);
|
|
|
+ } else {
|
|
|
+ i.setSameperiod(0.0);
|
|
|
+ }
|
|
|
i.setCompare(i.getCurrent().compareTo(i.getSameperiod()));
|
|
|
} else {
|
|
|
i.setSameperiod(0.0);
|
|
@@ -3523,6 +3547,14 @@ public class SpecificService {
|
|
|
|
|
|
vo.setTargetList(tempList);
|
|
|
resultendList.add(vo);
|
|
|
+
|
|
|
+ SpecificTarget vo2 = new SpecificTarget();
|
|
|
+ vo2.setWpid(vo.getWpid());
|
|
|
+ vo2.setTargetList(vo.getTargetList());
|
|
|
+ vo2.setOrderNum(vo.getOrderNum()+1);
|
|
|
+ vo2.setWpname(CacheContext.cpmap.get(companys).getAname());
|
|
|
+ resultendList.add(vo2);
|
|
|
+
|
|
|
});
|
|
|
}
|
|
|
SortUtils.sort(resultendList, "orderNum", SortUtils.ASC);
|
|
@@ -3694,12 +3726,12 @@ public class SpecificService {
|
|
|
// }
|
|
|
currentqw.groupBy("to_char(record_date,'yyyy-MM'),station_id");
|
|
|
List<TurbineInfoDay> currentList = iTurbineInfoDayService.list(currentqw);
|
|
|
- currentqw.clear();
|
|
|
- currentqw.select("station_id,max(record_date) record_date,sum(xnss) xnss,sum(llfdl) llfdl");
|
|
|
-// currentqw.eq("foreign_key_id", companys + type);
|
|
|
- currentqw.eq("to_char(record_date,'yyyy')", year);
|
|
|
- currentqw.groupBy("to_char(record_date,'yyyy-MM'),station_id");
|
|
|
- currentList.addAll(iTurbineInfoDayService.list(currentqw));
|
|
|
+// currentqw.clear();
|
|
|
+// currentqw.select("station_id,max(record_date) record_date,sum(xnss) xnss,sum(llfdl) llfdl");
|
|
|
+//// currentqw.eq("foreign_key_id", companys + type);
|
|
|
+// currentqw.eq("to_char(record_date,'yyyy')", year);
|
|
|
+// currentqw.groupBy("to_char(record_date,'yyyy-MM'),station_id");
|
|
|
+// currentList.addAll(iTurbineInfoDayService.list(currentqw));
|
|
|
|
|
|
int subYear = Integer.parseInt(year) - 1;
|
|
|
QueryWrapper<TurbineInfoDay> sameperiodqw = new QueryWrapper<>();
|
|
@@ -3718,12 +3750,12 @@ public class SpecificService {
|
|
|
sameperiodqw.eq("to_char(record_date,'yyyy')", String.valueOf(subYear));
|
|
|
sameperiodqw.groupBy("to_char(record_date,'yyyy-MM'),station_id");
|
|
|
List<TurbineInfoDay> sameperiodList = iTurbineInfoDayService.list(sameperiodqw);
|
|
|
- sameperiodqw.clear();
|
|
|
- sameperiodqw.select("station_id,max(record_date) record_date,sum(xnss) xnss,sum(llfdl) llfdl");
|
|
|
-// sameperiodqw.eq("station_id", companys + type);
|
|
|
- sameperiodqw.eq("to_char(record_date,'yyyy')", String.valueOf(subYear));
|
|
|
- sameperiodqw.groupBy("to_char(record_date,'yyyy-MM'),station_id");
|
|
|
- sameperiodList.addAll(iTurbineInfoDayService.list(sameperiodqw));
|
|
|
+// sameperiodqw.clear();
|
|
|
+// sameperiodqw.select("station_id,max(record_date) record_date,sum(xnss) xnss,sum(llfdl) llfdl");
|
|
|
+//// sameperiodqw.eq("station_id", companys + type);
|
|
|
+// sameperiodqw.eq("to_char(record_date,'yyyy')", String.valueOf(subYear));
|
|
|
+// sameperiodqw.groupBy("to_char(record_date,'yyyy-MM'),station_id");
|
|
|
+// sameperiodList.addAll(iTurbineInfoDayService.list(sameperiodqw));
|
|
|
|
|
|
//合并当月与同期数据为返回结果
|
|
|
List<SpecificTargetVo> resultList = new ArrayList<>();
|
|
@@ -3743,7 +3775,16 @@ public class SpecificService {
|
|
|
// Date date = Date.from(instant);
|
|
|
// vo.setYear(DateUtils.getYear(date));
|
|
|
// vo.setMonth(DateUtils.getMonth(date));
|
|
|
- vo.setCurrent(DoubleUtils.keepPrecision(i.getLlfdl().doubleValue() != 0 ? (i.getXnss().doubleValue()) / i.getLlfdl().doubleValue() * 100 : 0, 2));
|
|
|
+// vo.setCurrent(DoubleUtils.keepPrecision(i.getLlfdl().doubleValue() != 0 ? (i.getXnss().doubleValue()) / i.getLlfdl().doubleValue() * 100 : 0, 2));
|
|
|
+ double llfdl = i.getLlfdl() != null ?i.getLlfdl().doubleValue() :0.0;
|
|
|
+ double rfdl = i.getXnss() != null ?i.getXnss().doubleValue() :0.0;
|
|
|
+ if (llfdl != 0) {
|
|
|
+ Double calculatedValue = DoubleUtils.keepPrecision(rfdl / llfdl * 100,2);
|
|
|
+ vo.setCurrent(calculatedValue);
|
|
|
+ } else {
|
|
|
+ vo.setCurrent(0.0);
|
|
|
+ }
|
|
|
+
|
|
|
resultList.add(vo);
|
|
|
});
|
|
|
resultList.stream().forEach(i -> {
|
|
@@ -3753,6 +3794,17 @@ public class SpecificService {
|
|
|
if (optional.isPresent()) {
|
|
|
TurbineInfoDay tqinfoday = optional.get();
|
|
|
i.setSameperiod(DoubleUtils.keepPrecision(tqinfoday.getLlfdl().doubleValue() != 0 ? (tqinfoday.getXnss().doubleValue() ) / tqinfoday.getLlfdl().doubleValue() * 100 : 0, 2));
|
|
|
+
|
|
|
+ double llfdl = tqinfoday.getLlfdl() != null ?tqinfoday.getLlfdl().doubleValue() :0.0;
|
|
|
+ double rfdl = tqinfoday.getXnss() != null ?tqinfoday.getXnss().doubleValue() :0.0;
|
|
|
+ if (llfdl != 0) {
|
|
|
+ Double calculatedValue = DoubleUtils.keepPrecision(rfdl / llfdl * 100,2);
|
|
|
+ i.setSameperiod(calculatedValue);
|
|
|
+ } else {
|
|
|
+ i.setSameperiod(0.0);
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
i.setCompare(i.getCurrent().compareTo(i.getSameperiod()));
|
|
|
} else {
|
|
|
i.setSameperiod(0.0);
|
|
@@ -3814,9 +3866,16 @@ public class SpecificService {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-
|
|
|
vo.setTargetList(tempList);
|
|
|
resultendList.add(vo);
|
|
|
+
|
|
|
+ SpecificTarget vo2 = new SpecificTarget();
|
|
|
+ vo2.setWpid(vo.getWpid());
|
|
|
+ vo2.setTargetList(vo.getTargetList());
|
|
|
+ vo2.setOrderNum(vo.getOrderNum()+1);
|
|
|
+ vo2.setWpname(CacheContext.cpmap.get(companys).getAname());
|
|
|
+ resultendList.add(vo2);
|
|
|
+
|
|
|
});
|
|
|
}
|
|
|
|
|
@@ -3989,12 +4048,12 @@ public class SpecificService {
|
|
|
// }
|
|
|
currentqw.groupBy("to_char(record_date,'yyyy-MM'),station_id");
|
|
|
List<TurbineInfoDay> currentList = iTurbineInfoDayService.list(currentqw);
|
|
|
- currentqw.clear();
|
|
|
- currentqw.select("station_id,max(record_date) record_date,sum(slss) slss,sum(llfdl) llfdl");
|
|
|
-// currentqw.eq("foreign_key_id", companys + type);
|
|
|
- currentqw.eq("to_char(record_date,'yyyy')", year);
|
|
|
- currentqw.groupBy("to_char(record_date,'yyyy-MM'),station_id");
|
|
|
- currentList.addAll(iTurbineInfoDayService.list(currentqw));
|
|
|
+// currentqw.clear();
|
|
|
+// currentqw.select("station_id,max(record_date) record_date,sum(slss) slss,sum(llfdl) llfdl");
|
|
|
+//// currentqw.eq("foreign_key_id", companys + type);
|
|
|
+// currentqw.eq("to_char(record_date,'yyyy')", year);
|
|
|
+// currentqw.groupBy("to_char(record_date,'yyyy-MM'),station_id");
|
|
|
+// currentList.addAll(iTurbineInfoDayService.list(currentqw));
|
|
|
|
|
|
int subYear = Integer.parseInt(year) - 1;
|
|
|
QueryWrapper<TurbineInfoDay> sameperiodqw = new QueryWrapper<>();
|
|
@@ -4013,12 +4072,12 @@ public class SpecificService {
|
|
|
sameperiodqw.eq("to_char(record_date,'yyyy')", String.valueOf(subYear));
|
|
|
sameperiodqw.groupBy("to_char(record_date,'yyyy-MM'),station_id");
|
|
|
List<TurbineInfoDay> sameperiodList = iTurbineInfoDayService.list(sameperiodqw);
|
|
|
- sameperiodqw.clear();
|
|
|
- sameperiodqw.select("station_id,max(record_date) record_date,sum(slss) slss,sum(llfdl) llfdl");
|
|
|
- sameperiodqw.eq("station_id", companys + type);
|
|
|
- sameperiodqw.eq("to_char(record_date,'yyyy')", String.valueOf(subYear));
|
|
|
- sameperiodqw.groupBy("to_char(record_date,'yyyy-MM'),station_id");
|
|
|
- sameperiodList.addAll(iTurbineInfoDayService.list(sameperiodqw));
|
|
|
+// sameperiodqw.clear();
|
|
|
+// sameperiodqw.select("station_id,max(record_date) record_date,sum(slss) slss,sum(llfdl) llfdl");
|
|
|
+// sameperiodqw.eq("station_id", companys + type);
|
|
|
+// sameperiodqw.eq("to_char(record_date,'yyyy')", String.valueOf(subYear));
|
|
|
+// sameperiodqw.groupBy("to_char(record_date,'yyyy-MM'),station_id");
|
|
|
+// sameperiodList.addAll(iTurbineInfoDayService.list(sameperiodqw));
|
|
|
|
|
|
//合并当月与同期数据为返回结果
|
|
|
List<SpecificTargetVo> resultList = new ArrayList<>();
|
|
@@ -4038,7 +4097,16 @@ public class SpecificService {
|
|
|
// Date date = Date.from(instant);
|
|
|
// vo.setYear(DateUtils.getYear(date));
|
|
|
// vo.setMonth(DateUtils.getMonth(date));
|
|
|
- vo.setCurrent(DoubleUtils.keepPrecision(i.getLlfdl().doubleValue() != 0 ? (i.getSlss().doubleValue()) / i.getLlfdl().doubleValue() * 100 : 0, 2));
|
|
|
+// vo.setCurrent(DoubleUtils.keepPrecision(i.getLlfdl().doubleValue() != 0 ? (i.getSlss().doubleValue()) / i.getLlfdl().doubleValue() * 100 : 0, 2));
|
|
|
+ double llfdl = i.getLlfdl() != null ?i.getLlfdl().doubleValue() :0.0;
|
|
|
+ double rfdl = i.getSlss() != null ?i.getSlss().doubleValue() :0.0;
|
|
|
+ if (llfdl != 0) {
|
|
|
+ Double calculatedValue = DoubleUtils.keepPrecision(rfdl / llfdl * 100,2);
|
|
|
+ vo.setCurrent(calculatedValue);
|
|
|
+ } else {
|
|
|
+ vo.setCurrent(0.0);
|
|
|
+ }
|
|
|
+
|
|
|
resultList.add(vo);
|
|
|
});
|
|
|
resultList.stream().forEach(i -> {
|
|
@@ -4047,7 +4115,17 @@ public class SpecificService {
|
|
|
.findFirst();
|
|
|
if (optional.isPresent()) {
|
|
|
TurbineInfoDay tqinfoday = optional.get();
|
|
|
- i.setSameperiod(DoubleUtils.keepPrecision(tqinfoday.getLlfdl().doubleValue() != 0 ? (tqinfoday.getSlss().doubleValue() ) / tqinfoday.getLlfdl().doubleValue() * 100 : 0, 2));
|
|
|
+// i.setSameperiod(DoubleUtils.keepPrecision(tqinfoday.getLlfdl().doubleValue() != 0 ? (tqinfoday.getSlss().doubleValue() ) / tqinfoday.getLlfdl().doubleValue() * 100 : 0, 2));
|
|
|
+
|
|
|
+ double llfdl = tqinfoday.getLlfdl() != null ?tqinfoday.getLlfdl().doubleValue() :0.0;
|
|
|
+ double rfdl = tqinfoday.getSlss() != null ?tqinfoday.getSlss().doubleValue() :0.0;
|
|
|
+ if (llfdl != 0) {
|
|
|
+ Double calculatedValue = DoubleUtils.keepPrecision(rfdl / llfdl * 100,2);
|
|
|
+ i.setSameperiod(calculatedValue);
|
|
|
+ } else {
|
|
|
+ i.setSameperiod(0.0);
|
|
|
+ }
|
|
|
+
|
|
|
i.setCompare(i.getCurrent().compareTo(i.getSameperiod()));
|
|
|
} else {
|
|
|
i.setSameperiod(0.0);
|
|
@@ -4109,9 +4187,16 @@ public class SpecificService {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-
|
|
|
vo.setTargetList(tempList);
|
|
|
resultendList.add(vo);
|
|
|
+
|
|
|
+ SpecificTarget vo2 = new SpecificTarget();
|
|
|
+ vo2.setWpid(vo.getWpid());
|
|
|
+ vo2.setTargetList(vo.getTargetList());
|
|
|
+ vo2.setOrderNum(vo.getOrderNum()+1);
|
|
|
+ vo2.setWpname(CacheContext.cpmap.get(companys).getAname());
|
|
|
+ resultendList.add(vo2);
|
|
|
+
|
|
|
});
|
|
|
}
|
|
|
SortUtils.sort(resultendList, "orderNum", SortUtils.ASC);
|