|
|
@@ -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);
|
|
|
});
|
|
|
@@ -979,7 +981,7 @@ public class IotRdDailyReportServiceImpl implements IotRdDailyReportService {
|
|
|
tempTotalMixSand = tempTotalMixSand.add(actualValue);
|
|
|
if (cumulativeMixSandPair.containsKey("cumulativeMixSand")) {
|
|
|
BigDecimal tempMixSand = cumulativeMixSandPair.get("cumulativeMixSand");
|
|
|
- cumulativeMixSandPair.put("cumulativeMixSand", tempTotalMixSand.add(tempMixSand));
|
|
|
+ cumulativeMixSandPair.put("cumulativeMixSand", actualValue.add(tempMixSand));
|
|
|
} else {
|
|
|
cumulativeMixSandPair.put("cumulativeMixSand", tempTotalMixSand);
|
|
|
}
|
|
|
@@ -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);
|
|
|
}
|
|
|
@@ -1505,7 +1507,7 @@ public class IotRdDailyReportServiceImpl implements IotRdDailyReportService {
|
|
|
tempTotalMixSand = tempTotalMixSand.add(actualValue);
|
|
|
if (cumulativeMixSandPair.containsKey(detailDeptId)) {
|
|
|
BigDecimal tempMixSand = cumulativeMixSandPair.get(detailDeptId);
|
|
|
- cumulativeMixSandPair.put(detailDeptId, tempTotalMixSand.add(tempMixSand));
|
|
|
+ cumulativeMixSandPair.put(detailDeptId, actualValue.add(tempMixSand));
|
|
|
} else {
|
|
|
cumulativeMixSandPair.put(detailDeptId, tempTotalMixSand);
|
|
|
}
|
|
|
@@ -1518,7 +1520,7 @@ public class IotRdDailyReportServiceImpl implements IotRdDailyReportService {
|
|
|
}
|
|
|
|
|
|
// 项目部数据
|
|
|
- projectDeptPair.forEach((projectDeptId, dept) -> {
|
|
|
+ /* projectDeptPair.forEach((projectDeptId, dept) -> {
|
|
|
IotRdDailyReportStatisticsRespVO statistics = new IotRdDailyReportStatisticsRespVO();
|
|
|
statistics.setTeamId(projectDeptId);
|
|
|
statistics.setProjectDeptName(dept.getName());
|
|
|
@@ -1537,7 +1539,7 @@ public class IotRdDailyReportServiceImpl implements IotRdDailyReportService {
|
|
|
statistics.setCumulativePumpTrips(cumulativePumpTripsPair.get(projectDeptId));
|
|
|
statistics.setTotalDailyFuel(cumulativeFuelsPair.get(projectDeptId));
|
|
|
result.add(statistics);
|
|
|
- });
|
|
|
+ }); */
|
|
|
|
|
|
// 队伍数据 生成返回的数据列表集合
|
|
|
teamDeptPair.forEach((teamDeptId, dept) -> {
|
|
|
@@ -1776,7 +1778,7 @@ public class IotRdDailyReportServiceImpl implements IotRdDailyReportService {
|
|
|
tempTotalMixSand = tempTotalMixSand.add(actualValue);
|
|
|
if (dateMixSandPair.containsKey(reportDateStr)) {
|
|
|
BigDecimal tempMixSand = dateMixSandPair.get(reportDateStr);
|
|
|
- dateMixSandPair.put(reportDateStr, tempTotalMixSand.add(tempMixSand));
|
|
|
+ dateMixSandPair.put(reportDateStr, actualValue.add(tempMixSand));
|
|
|
} else {
|
|
|
dateMixSandPair.put(reportDateStr, tempTotalMixSand);
|
|
|
}
|