|
@@ -117,12 +117,18 @@ public class IotRhDailyReportServiceImpl implements IotRhDailyReportService {
|
|
|
});
|
|
|
// 计算运行时效 当日注气量/产能
|
|
|
if (ObjUtil.isNotEmpty(createReqVO.getDailyGasInjection()) && (capacity.get().compareTo(BigDecimal.ZERO)>0)) {
|
|
|
- iotRhDailyReport.setTransitTime(createReqVO.getDailyGasInjection().divide(capacity.get(), 2, RoundingMode.HALF_UP));
|
|
|
+ // 将当日注气量单位 换算成 万方
|
|
|
+ // 将当日注气量单位由"方"换算成"万方"
|
|
|
+ BigDecimal dailyGasInjectionInTenThousand = createReqVO.getDailyGasInjection()
|
|
|
+ .divide(new BigDecimal(10000), 2, RoundingMode.HALF_UP);
|
|
|
+ iotRhDailyReport.setTransitTime(dailyGasInjectionInTenThousand.divide(capacity.get(), 2, RoundingMode.HALF_UP));
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ // 根据当日注气量 计算累计注气量
|
|
|
+
|
|
|
// 查询当前日报所属任务关联的设备
|
|
|
if (CollUtil.isNotEmpty(deviceIds)) {
|
|
|
// 查询当前小队下所有设备
|