|
|
@@ -634,7 +634,7 @@ public class IotRdDailyReportServiceImpl implements IotRdDailyReportService {
|
|
|
tempTotalMixSand = tempTotalMixSand.add(actualValue);
|
|
|
if (mixSandPair.containsKey(report.getTaskId())) {
|
|
|
BigDecimal tempMixSand = mixSandPair.get(report.getTaskId());
|
|
|
- mixSandPair.put(report.getTaskId(), tempTotalMixSand.add(tempMixSand));
|
|
|
+ mixSandPair.put(report.getTaskId(), actualValue.add(tempMixSand));
|
|
|
} else {
|
|
|
mixSandPair.put(report.getTaskId(), tempTotalMixSand);
|
|
|
}
|
|
|
@@ -738,20 +738,22 @@ public class IotRdDailyReportServiceImpl implements IotRdDailyReportService {
|
|
|
item.setWorkload(cumulativeWorkingLayersPair.get(taskId));
|
|
|
items.add(item);
|
|
|
}
|
|
|
- if (pumpTripsPair.containsKey(taskId)) {
|
|
|
+ if (pumpTripsPair.containsKey(taskId) || mixSandPair.containsKey(taskId)) {
|
|
|
// 主压裂车 当日泵车台次
|
|
|
IotRdDailyReportStatisticsItemVO item = new IotRdDailyReportStatisticsItemVO();
|
|
|
item.setUnit("台次");
|
|
|
- item.setWorkload(pumpTripsPair.get(taskId));
|
|
|
+ BigDecimal tempPumpTrip = pumpTripsPair.get(taskId);
|
|
|
+ BigDecimal tempMixSand = mixSandPair.get(taskId);
|
|
|
+ item.setWorkload((ObjUtil.isEmpty(tempPumpTrip)?BigDecimal.ZERO:tempPumpTrip).add(ObjUtil.isEmpty(tempMixSand)?BigDecimal.ZERO:tempMixSand));
|
|
|
items.add(item);
|
|
|
}
|
|
|
- if (mixSandPair.containsKey(taskId)) {
|
|
|
+ /* if (mixSandPair.containsKey(taskId)) {
|
|
|
// 当日仪表/混砂 台次
|
|
|
IotRdDailyReportStatisticsItemVO item = new IotRdDailyReportStatisticsItemVO();
|
|
|
item.setUnit("台次");
|
|
|
item.setWorkload(mixSandPair.get(taskId));
|
|
|
items.add(item);
|
|
|
- }
|
|
|
+ } */
|
|
|
uniqueReport.setItems(items);
|
|
|
result.add(uniqueReport);
|
|
|
});
|
|
|
@@ -1268,7 +1270,7 @@ public class IotRdDailyReportServiceImpl implements IotRdDailyReportService {
|
|
|
tempTotalMixSand = tempTotalMixSand.add(actualValue);
|
|
|
if (cumulativeMixSandPair.containsKey(projectDeptId)) {
|
|
|
BigDecimal tempMixSand = cumulativeMixSandPair.get(projectDeptId);
|
|
|
- cumulativeMixSandPair.put(projectDeptId, tempTotalMixSand.add(tempMixSand));
|
|
|
+ cumulativeMixSandPair.put(projectDeptId, actualValue.add(tempMixSand));
|
|
|
} else {
|
|
|
cumulativeMixSandPair.put(projectDeptId, tempTotalMixSand);
|
|
|
}
|