|
|
@@ -1087,7 +1087,7 @@ public class IotOpeationFillController {
|
|
|
}
|
|
|
|
|
|
// 批量查询reportList和reportList1(一次查询,避免循环)
|
|
|
- List<IotOpeationFillDO> reportList = iotOpeationFillService.reportList(fillDO2);
|
|
|
+ List<IotOpeationFillDO> reportList = iotOpeationFillService.reportList2(fillDO2);
|
|
|
List<IotOpeationFillDO> reportList1 = iotOpeationFillService.reportList1(fillDO2);
|
|
|
|
|
|
// 构建属性名到数据的映射(提前分组,避免重复stream过滤)
|
|
|
@@ -1108,12 +1108,12 @@ public class IotOpeationFillController {
|
|
|
});
|
|
|
|
|
|
// 批量查询runLog数据(一次查询,替代循环查询)
|
|
|
- Map<Long, String> runLogFillContentMap = new HashMap<>();
|
|
|
+ Map<String, String> runLogFillContentMap = new HashMap<>();
|
|
|
if (!runLogQueries.isEmpty()) {
|
|
|
List<IotDeviceRunLogDO> runLogList = iotOpeationFillService.batchReportData(runLogQueries);
|
|
|
runLogFillContentMap = runLogList.stream()
|
|
|
.collect(Collectors.toMap(
|
|
|
- logDO -> logDO.getDeviceId(), // orgName
|
|
|
+ logDO -> logDO.getPointName(), // orgName
|
|
|
logDO -> logDO.getFillContent() != null ? logDO.getFillContent() : "",
|
|
|
(v1, v2) -> v1 // 冲突时取第一个
|
|
|
));
|