|
|
@@ -1517,6 +1517,13 @@ public class IotRdDailyReportController {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ // 施工完成的井累计计数 1
|
|
|
+ if (finishedTaskIds.contains(report.getTaskId())) {
|
|
|
+ groupCumulativeWorkingWellPair.put(uniqueKey, new BigDecimal("1"));
|
|
|
+ } else {
|
|
|
+ groupCumulativeWorkingWellPair.put(uniqueKey, BigDecimal.ZERO);
|
|
|
+ }
|
|
|
+
|
|
|
// 设置每个任务的工作量数据 单位相同的工作量值作合并处理
|
|
|
List<IotTaskAttrModelProperty> taskAttrs = report.getExtProperty();
|
|
|
// 暂存不同单位的工作量属性值
|
|
|
@@ -1600,21 +1607,7 @@ public class IotRdDailyReportController {
|
|
|
groupWaterVolumePair.put(uniqueKey, tempTotalWaterVolume);
|
|
|
}
|
|
|
}
|
|
|
- /* if ("井数".equals(unit)) {
|
|
|
- tempTotalCumulativeWorkingWell = tempTotalCumulativeWorkingWell.add(actualValue);
|
|
|
- if (groupCumulativeWorkingWellPair.containsKey(uniqueKey)) {
|
|
|
- BigDecimal tempWorkingWell = groupCumulativeWorkingWellPair.get(uniqueKey);
|
|
|
- groupCumulativeWorkingWellPair.put(uniqueKey, tempTotalCumulativeWorkingWell.add(tempWorkingWell));
|
|
|
- } else {
|
|
|
- groupCumulativeWorkingWellPair.put(uniqueKey, tempTotalCumulativeWorkingWell);
|
|
|
- }
|
|
|
- } */
|
|
|
- // 施工完成的井累计计数 1
|
|
|
- if (finishedTaskIds.contains(report.getTaskId())) {
|
|
|
- groupCumulativeWorkingWellPair.put(uniqueKey, new BigDecimal("1"));
|
|
|
- } else {
|
|
|
- groupCumulativeWorkingWellPair.put(uniqueKey, BigDecimal.ZERO);
|
|
|
- }
|
|
|
+
|
|
|
if ("段数".equals(unit)) {
|
|
|
// 累计施工层
|
|
|
tempTotalCumulativeWorkingLayers = tempTotalCumulativeWorkingLayers.add(actualValue);
|
|
|
@@ -1670,9 +1663,7 @@ public class IotRdDailyReportController {
|
|
|
if (groupRunCountPair.containsKey(uniqueKey)) {
|
|
|
groupIdRunCountPair.put(groupId, groupRunCountPair.get(uniqueKey));
|
|
|
}
|
|
|
- /* if (groupCumulativeWorkingWellPair.containsKey(uniqueKey)) {
|
|
|
- groupIdCumulativeWorkingWellPair.put(groupId, groupCumulativeWorkingWellPair.get(uniqueKey));
|
|
|
- } */
|
|
|
+
|
|
|
if (groupFinishedWellPair.containsKey(uniqueKey)) {
|
|
|
groupIdFinishedWellPair.put(groupId, groupFinishedWellPair.get(uniqueKey));
|
|
|
}
|
|
|
@@ -1949,6 +1940,12 @@ public class IotRdDailyReportController {
|
|
|
BigDecimal tempTotalPumpTrips = BigDecimal.ZERO;
|
|
|
BigDecimal tempTotalCumulativeWorkingLayers = BigDecimal.ZERO;
|
|
|
BigDecimal tempTotalMixSand = BigDecimal.ZERO;
|
|
|
+
|
|
|
+ if (finishedTaskIds.contains(report.getTaskId()) && "wg".equals(report.getRdStatus())) {
|
|
|
+ // 只有任务完工且日报施工状态为 完工 才统计 井数为 1
|
|
|
+ tempTotalCumulativeWorkingWell = new BigDecimal("1");
|
|
|
+ }
|
|
|
+
|
|
|
if (CollUtil.isNotEmpty(taskAttrs)) {
|
|
|
for (IotTaskAttrModelProperty attr : taskAttrs) {
|
|
|
String unit = attr.getUnit(); // 工作量单位
|
|
|
@@ -1981,13 +1978,7 @@ public class IotRdDailyReportController {
|
|
|
if ("方".equals(unit)) {
|
|
|
tempTotalWaterVolume = tempTotalWaterVolume.add(actualValue);
|
|
|
}
|
|
|
- /* if ("井数".equals(unit)) {
|
|
|
- tempTotalCumulativeWorkingWell = tempTotalCumulativeWorkingWell.add(actualValue);
|
|
|
- } */
|
|
|
- if (finishedTaskIds.contains(report.getTaskId()) && "wg".equals(report.getRdStatus())) {
|
|
|
- // 只有任务完工且日报施工状态为 完工 才统计 井数为 1
|
|
|
- tempTotalCumulativeWorkingWell = new BigDecimal("1");
|
|
|
- }
|
|
|
+
|
|
|
if ("段数".equals(unit)) {
|
|
|
tempTotalCumulativeWorkingLayers = tempTotalCumulativeWorkingLayers.add(actualValue);
|
|
|
}
|
|
|
@@ -1998,7 +1989,6 @@ public class IotRdDailyReportController {
|
|
|
tempTotalMixSand = tempTotalMixSand.add(actualValue);
|
|
|
}
|
|
|
}
|
|
|
- report.setCumulativeWorkingWell(tempTotalCumulativeWorkingWell);
|
|
|
report.setCumulativeWorkingLayers(tempTotalCumulativeWorkingLayers);
|
|
|
report.setDailyPumpTrips(tempTotalPumpTrips);
|
|
|
report.setDailyToolsSand(tempTotalMixSand);
|
|
|
@@ -2007,6 +1997,8 @@ public class IotRdDailyReportController {
|
|
|
report.setWaterVolume(tempTotalWaterVolume);
|
|
|
report.setHourCount(tempTotalHourCount);
|
|
|
}
|
|
|
+ // 赋值累计施工井
|
|
|
+ report.setCumulativeWorkingWell(tempTotalCumulativeWorkingWell);
|
|
|
}
|
|
|
});
|
|
|
return BeanUtils.toBean(reports, IotRdDailyReportRespVO.class, (reportVO) -> {
|
|
|
@@ -2199,6 +2191,13 @@ public class IotRdDailyReportController {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ // 施工完成的井累计计数 1
|
|
|
+ if (finishedTaskIds.contains(report.getTaskId())) {
|
|
|
+ groupCumulativeWorkingWellPair.put(uniqueKey, new BigDecimal("1"));
|
|
|
+ } else {
|
|
|
+ groupCumulativeWorkingWellPair.put(uniqueKey, BigDecimal.ZERO);
|
|
|
+ }
|
|
|
+
|
|
|
// 设置每个任务的工作量数据 单位相同的工作量值作合并处理
|
|
|
List<IotTaskAttrModelProperty> taskAttrs = report.getExtProperty();
|
|
|
// 暂存不同单位的工作量属性值
|
|
|
@@ -2282,21 +2281,8 @@ public class IotRdDailyReportController {
|
|
|
groupWaterVolumePair.put(uniqueKey, tempTotalWaterVolume);
|
|
|
}
|
|
|
}
|
|
|
- /* if ("井数".equals(unit)) {
|
|
|
- tempTotalCumulativeWorkingWell = tempTotalCumulativeWorkingWell.add(actualValue);
|
|
|
- if (groupCumulativeWorkingWellPair.containsKey(uniqueKey)) {
|
|
|
- BigDecimal tempWorkingWell = groupCumulativeWorkingWellPair.get(uniqueKey);
|
|
|
- groupCumulativeWorkingWellPair.put(uniqueKey, tempTotalCumulativeWorkingWell.add(tempWorkingWell));
|
|
|
- } else {
|
|
|
- groupCumulativeWorkingWellPair.put(uniqueKey, tempTotalCumulativeWorkingWell);
|
|
|
- }
|
|
|
- } */
|
|
|
- // 施工完成的井累计计数 1
|
|
|
- if (finishedTaskIds.contains(report.getTaskId())) {
|
|
|
- groupCumulativeWorkingWellPair.put(uniqueKey, new BigDecimal("1"));
|
|
|
- } else {
|
|
|
- groupCumulativeWorkingWellPair.put(uniqueKey, BigDecimal.ZERO);
|
|
|
- }
|
|
|
+
|
|
|
+
|
|
|
if ("段数".equals(unit)) {
|
|
|
// 累计施工层
|
|
|
tempTotalCumulativeWorkingLayers = tempTotalCumulativeWorkingLayers.add(actualValue);
|
|
|
@@ -2352,9 +2338,6 @@ public class IotRdDailyReportController {
|
|
|
if (groupRunCountPair.containsKey(uniqueKey)) {
|
|
|
groupIdRunCountPair.put(groupId, groupRunCountPair.get(uniqueKey));
|
|
|
}
|
|
|
- /* if (groupCumulativeWorkingWellPair.containsKey(uniqueKey)) {
|
|
|
- groupIdCumulativeWorkingWellPair.put(groupId, groupCumulativeWorkingWellPair.get(uniqueKey));
|
|
|
- } */
|
|
|
if (groupFinishedWellPair.containsKey(uniqueKey)) {
|
|
|
groupIdFinishedWellPair.put(groupId, groupFinishedWellPair.get(uniqueKey));
|
|
|
}
|
|
|
@@ -2631,6 +2614,12 @@ public class IotRdDailyReportController {
|
|
|
BigDecimal tempTotalPumpTrips = BigDecimal.ZERO;
|
|
|
BigDecimal tempTotalCumulativeWorkingLayers = BigDecimal.ZERO;
|
|
|
BigDecimal tempTotalMixSand = BigDecimal.ZERO;
|
|
|
+
|
|
|
+ if (finishedTaskIds.contains(report.getTaskId()) && "wg".equals(report.getRdStatus())) {
|
|
|
+ // 只有任务完工且日报施工状态为 完工 才统计 井数为 1
|
|
|
+ tempTotalCumulativeWorkingWell = new BigDecimal("1");
|
|
|
+ }
|
|
|
+
|
|
|
if (CollUtil.isNotEmpty(taskAttrs)) {
|
|
|
for (IotTaskAttrModelProperty attr : taskAttrs) {
|
|
|
String unit = attr.getUnit(); // 工作量单位
|
|
|
@@ -2663,13 +2652,7 @@ public class IotRdDailyReportController {
|
|
|
if ("方".equals(unit)) {
|
|
|
tempTotalWaterVolume = tempTotalWaterVolume.add(actualValue);
|
|
|
}
|
|
|
- /* if ("井数".equals(unit)) {
|
|
|
- tempTotalCumulativeWorkingWell = tempTotalCumulativeWorkingWell.add(actualValue);
|
|
|
- } */
|
|
|
- if (finishedTaskIds.contains(report.getTaskId()) && "wg".equals(report.getRdStatus())) {
|
|
|
- // 只有任务完工且日报施工状态为 完工 才统计 井数为 1
|
|
|
- tempTotalCumulativeWorkingWell = new BigDecimal("1");
|
|
|
- }
|
|
|
+
|
|
|
if ("段数".equals(unit)) {
|
|
|
tempTotalCumulativeWorkingLayers = tempTotalCumulativeWorkingLayers.add(actualValue);
|
|
|
}
|
|
|
@@ -2680,7 +2663,6 @@ public class IotRdDailyReportController {
|
|
|
tempTotalMixSand = tempTotalMixSand.add(actualValue);
|
|
|
}
|
|
|
}
|
|
|
- report.setCumulativeWorkingWell(tempTotalCumulativeWorkingWell);
|
|
|
report.setCumulativeWorkingLayers(tempTotalCumulativeWorkingLayers);
|
|
|
report.setDailyPumpTrips(tempTotalPumpTrips);
|
|
|
report.setDailyToolsSand(tempTotalMixSand);
|
|
|
@@ -2689,6 +2671,8 @@ public class IotRdDailyReportController {
|
|
|
report.setWaterVolume(tempTotalWaterVolume);
|
|
|
report.setHourCount(tempTotalHourCount);
|
|
|
}
|
|
|
+ // 赋值累计施工井
|
|
|
+ report.setCumulativeWorkingWell(tempTotalCumulativeWorkingWell);
|
|
|
}
|
|
|
});
|
|
|
return BeanUtils.toBean(reports, IotRdDailyReportRespVO.class, (reportVO) -> {
|