|
|
@@ -371,14 +371,7 @@ public class IotRyDailyReportController {
|
|
|
totalFuelConsumption = totalFuelConsumption.add(fuelConsumption);
|
|
|
}
|
|
|
}
|
|
|
- // 汇总 指定搜索时间段内的 总进尺 累计用电量 累计油耗
|
|
|
- if ("1".equals(pageReqVO.getProjectClassification())) {
|
|
|
- // 钻井日报
|
|
|
- result.put("totalFootage", totalFootage);
|
|
|
- } else if ("2".equals(pageReqVO.getProjectClassification())) {
|
|
|
- // 修井日报 总施工井数 完工井数 取日报记录中的最大值
|
|
|
- result.put("totalFootage", totalFootage);
|
|
|
- }
|
|
|
+
|
|
|
// 施工井数
|
|
|
if (CollUtil.isNotEmpty(totalTasksPair)) {
|
|
|
for (Integer wellCount : totalTasksPair.values()) {
|
|
|
@@ -395,10 +388,17 @@ public class IotRyDailyReportController {
|
|
|
result.put("totalPowerConsumption", totalPowerConsumption);
|
|
|
// 累计油耗
|
|
|
result.put("totalFuelConsumption", totalFuelConsumption);
|
|
|
- // 累计施工井数
|
|
|
- result.put("constructionWells", constructionWells);
|
|
|
- // 累计完工井数
|
|
|
- result.put("completedWells", completedWells);
|
|
|
+
|
|
|
+ // 汇总 指定搜索时间段内的 总进尺 累计用电量 累计油耗
|
|
|
+ if ("1".equals(pageReqVO.getProjectClassification())) {
|
|
|
+ // 钻井日报
|
|
|
+ result.put("totalFootage", totalFootage);
|
|
|
+ } else if ("2".equals(pageReqVO.getProjectClassification())) {
|
|
|
+ // 累计施工井数
|
|
|
+ result.put("constructionWells", constructionWells);
|
|
|
+ // 累计完工井数
|
|
|
+ result.put("completedWells", completedWells);
|
|
|
+ }
|
|
|
}
|
|
|
return success(result);
|
|
|
}
|