|
|
@@ -1465,7 +1465,7 @@ public class IotRdDailyReportServiceImpl implements IotRdDailyReportService {
|
|
|
});
|
|
|
// 指定时间范围内 日报中所有施工的主设备数量/总主设备数量*N天 (A B类)
|
|
|
// abDeviceIds所有AB类设备 reportDeviceIds日报中用到的所有设备 交集求出日报中使用到的AB类设备
|
|
|
- if (CollUtil.isNotEmpty(abDeviceIds) && CollUtil.isNotEmpty(reportMainDeviceIds)) {
|
|
|
+ if (CollUtil.isNotEmpty(abDeviceIds) && CollUtil.isNotEmpty(reportMainDeviceIds) && daysCount>0) {
|
|
|
// 1. 求交集:实际使用的A B类设备
|
|
|
Set<Long> utilizedDeviceIds = reportDeviceIds.stream()
|
|
|
.filter(abDeviceIds::contains)
|