|
@@ -366,6 +366,7 @@ public class BenchmarkingService {
|
|
|
|
|
|
list.stream().forEach(i -> {
|
|
|
FjjxbVo vo = new FjjxbVo();
|
|
|
+ FjjxbVo vo2 = new FjjxbVo();
|
|
|
if (sttype.equals("1")) {
|
|
|
vo.setId(i.getStationId());
|
|
|
vo.setName(CacheContext.wpmap.get(i.getStationId().trim()).getAname());
|
|
@@ -412,12 +413,18 @@ public class BenchmarkingService {
|
|
|
vo.setId(i.getTurbineId());
|
|
|
vo.setName(CacheContext.wtmap.get(i.getTurbineId().trim()).getAname());
|
|
|
vo.setOrdernum(CacheContext.wtmap.get(i.getTurbineId().trim()).getOrderNum());
|
|
|
+ vo2.setId(i.getTurbineId());
|
|
|
+ vo2.setName(CacheContext.wtmap.get(i.getTurbineId().trim()).getAname());
|
|
|
+ vo2.setOrdernum(CacheContext.wtmap.get(i.getTurbineId().trim()).getOrderNum());
|
|
|
}
|
|
|
vo.setSjfdl(BigDecimalUtils.divide(BigDecimal.valueOf(i.getRfdl()), new BigDecimal(1), 2).doubleValue());
|
|
|
vo.setLlfdl(BigDecimalUtils.divide(BigDecimal.valueOf(i.getLlfdl()), new BigDecimal(1), 2).doubleValue());
|
|
|
+ vo2.setSjfdl(BigDecimalUtils.divide(BigDecimal.valueOf(i.getRfdl() / 1000), new BigDecimal(1), 2).doubleValue());
|
|
|
+ vo2.setLlfdl(BigDecimalUtils.divide(BigDecimal.valueOf(i.getLlfdl() / 1000), new BigDecimal(1), 2).doubleValue());
|
|
|
|
|
|
if (sttype.isEmpty()) {
|
|
|
vo.setSpeed(BigDecimalUtils.divide(BigDecimal.valueOf(i.getPjfs()), new BigDecimal(1), 2).doubleValue());
|
|
|
+ vo2.setSpeed(BigDecimalUtils.divide(BigDecimal.valueOf(i.getPjfs()), new BigDecimal(1), 2).doubleValue());
|
|
|
}
|
|
|
vo.setFjhjx(BigDecimalUtils.divide(BigDecimal.valueOf(i.getFjhjxss()), new BigDecimal(1), 2).doubleValue());
|
|
|
vo.setJhjx(BigDecimalUtils.divide(BigDecimal.valueOf(i.getJhjxss()), new BigDecimal(1), 2).doubleValue());
|
|
@@ -428,6 +435,14 @@ public class BenchmarkingService {
|
|
|
vo.setFnlly(vo.getLlfdl() != 0 ? DoubleUtils.keepPrecision(vo.getSjfdl() / vo.getLlfdl() * 100, 2) : 0);
|
|
|
vo.setPoint(DoubleUtils.keepPrecision(vo.getLlfdl() * 1.1, 2));
|
|
|
|
|
|
+ vo2.setFjhjx(BigDecimalUtils.divide(BigDecimal.valueOf(i.getFjhjxss() / 1000), new BigDecimal(1), 2).doubleValue());
|
|
|
+ vo2.setJhjx(BigDecimalUtils.divide(BigDecimal.valueOf(i.getJhjxss() / 1000), new BigDecimal(1), 2).doubleValue());
|
|
|
+ vo2.setXd(BigDecimalUtils.divide(BigDecimal.valueOf(i.getXdss() / 1000), new BigDecimal(1), 2).doubleValue());
|
|
|
+ vo2.setSl(BigDecimalUtils.divide(BigDecimal.valueOf(i.getSlss() / 1000), new BigDecimal(1), 2).doubleValue());
|
|
|
+ vo2.setXn(BigDecimalUtils.divide(BigDecimal.valueOf(i.getXnss() / 1000), new BigDecimal(1), 2).doubleValue());
|
|
|
+ vo2.setFnlly(vo.getLlfdl() != 0 ? DoubleUtils.keepPrecision(vo.getSjfdl() / vo.getLlfdl() * 100, 2) : 0);
|
|
|
+ vo2.setPoint(DoubleUtils.keepPrecision(vo.getLlfdl() * 1.1, 2));
|
|
|
+
|
|
|
llfdl.updateAndGet(v -> (double) (v + vo.getLlfdl()));
|
|
|
sjfdl.updateAndGet(v -> (double) (v + vo.getSjfdl()));
|
|
|
pjfs.updateAndGet(v -> (double) (v + vo.getSpeed()));
|
|
@@ -436,7 +451,7 @@ public class BenchmarkingService {
|
|
|
xd.updateAndGet(v -> (double) (v + vo.getXd()));
|
|
|
xn.updateAndGet(v -> (double) (v + vo.getXn()));
|
|
|
sl.updateAndGet(v -> (double) (v + vo.getSl()));
|
|
|
- resultList.add(vo);
|
|
|
+ resultList.add(vo2);
|
|
|
});
|
|
|
if (StringUtils.isNotEmpty(target) && StringUtils.isNotEmpty(sort)) {
|
|
|
if (sort.equals("1")) {
|
|
@@ -451,14 +466,14 @@ public class BenchmarkingService {
|
|
|
FjjxbVo vo = new FjjxbVo();
|
|
|
vo.setId("hj");
|
|
|
vo.setName("合计");
|
|
|
- vo.setSjfdl(DoubleUtils.keepPrecision(sjfdl.get()/1000, 2));
|
|
|
- vo.setLlfdl(DoubleUtils.keepPrecision(llfdl.get()/1000, 2));
|
|
|
+ vo.setSjfdl(DoubleUtils.keepPrecision(sjfdl.get() / 1000, 2));
|
|
|
+ vo.setLlfdl(DoubleUtils.keepPrecision(llfdl.get() / 1000, 2));
|
|
|
vo.setSpeed(list.size() != 0 ? DoubleUtils.keepPrecision(pjfs.get() / list.size(), 2) : 0.0);
|
|
|
- vo.setJhjx(DoubleUtils.keepPrecision(wh.get()/1000, 2));
|
|
|
- vo.setFjhjx(DoubleUtils.keepPrecision(gz.get()/1000, 2));
|
|
|
- vo.setXd(DoubleUtils.keepPrecision(xd.get()/1000, 2));
|
|
|
- vo.setXn(DoubleUtils.keepPrecision(xn.get()/1000, 2));
|
|
|
- vo.setSl(DoubleUtils.keepPrecision(sl.get()/1000, 2));
|
|
|
+ vo.setJhjx(DoubleUtils.keepPrecision(wh.get() / 1000, 2));
|
|
|
+ vo.setFjhjx(DoubleUtils.keepPrecision(gz.get() / 1000, 2));
|
|
|
+ vo.setXd(DoubleUtils.keepPrecision(xd.get() / 1000, 2));
|
|
|
+ vo.setXn(DoubleUtils.keepPrecision(xn.get() / 1000, 2));
|
|
|
+ vo.setSl(DoubleUtils.keepPrecision(sl.get() / 1000, 2));
|
|
|
vo.setFnlly(vo.getLlfdl() != 0 ? DoubleUtils.keepPrecision(vo.getSjfdl() / vo.getLlfdl() * 100, 2) : 0.0);
|
|
|
vo.setPoint(DoubleUtils.keepPrecision(vo.getLlfdl() * 1.1, 2));
|
|
|
resultList.add(vo);
|