|
|
@@ -773,7 +773,7 @@ public class IotDeviceServiceImpl implements IotDeviceService {
|
|
|
});
|
|
|
}
|
|
|
// 根据设备id集合查询正常的 累计时长 累计公里数
|
|
|
- deviceRunLogMap = iotDeviceRunLogService.getDeviceRunLogMapAlone(new ArrayList<>(deviceIds), new ArrayList<>(deviceCategoryIds), deviceCategoryPair);
|
|
|
+ deviceRunLogMap = iotDeviceRunLogService.getDeviceRunLogMapAlone(new ArrayList<>(deviceIds), new ArrayList<>(deviceCategoryIds), deviceCategoryPair, null);
|
|
|
// 没有产生运行记录的单累计属性 返回前端 0 deviceAttrsPair单属性属性集合
|
|
|
Map<Long, IotDeviceRunLogRespVO> finalDeviceRunLogMap = deviceRunLogMap;
|
|
|
if (CollUtil.isNotEmpty(deviceAttrsPair)) {
|
|
|
@@ -794,7 +794,7 @@ public class IotDeviceServiceImpl implements IotDeviceService {
|
|
|
// 根据设备id 运行记录模板属性名称 查询对应的 累计运行时长 累计运行公里数
|
|
|
if (CollUtil.isNotEmpty(multipleAttrDeviceIds) && CollUtil.isNotEmpty(multipleAttrNames)) {
|
|
|
// 这里只查询了存在运行记录值的属性 todo 如果还没有记录运行记录数据 也要显示出来
|
|
|
- List<IotDeviceRunLogRespVO> accumulatedData = iotDeviceRunLogMapper.multipleAccumulatedData(multipleAttrDeviceIds, multipleAttrNames);
|
|
|
+ List<IotDeviceRunLogRespVO> accumulatedData = iotDeviceRunLogMapper.multipleAccumulatedData(multipleAttrDeviceIds, multipleAttrNames, null);
|
|
|
// key设备id value设备对应的已经生成运行记录的多累计属性名称
|
|
|
Map<Long, List<String>> loggedAttrNamePair = new HashMap<>();
|
|
|
// 组装每个设备对应的属性 累计时长 累计里程 集合
|