Commit 418087e9 authored by 李秀明's avatar 李秀明

fix: BUG#23562 换流变排油阀状态及排空时间,重点装备分类字段为空时,换流变排油阀状态及排空时间的SQL查询报错

parent 6ecf6ead
......@@ -2950,6 +2950,9 @@ public class FireFightingSystemServiceImpl extends ServiceImpl<FireFightingSyste
strings.addAll(Arrays.asList(equipIds.split(",")));
});
List<String> collect = strings.stream().distinct().collect(Collectors.toList());
if (CollUtil.isEmpty(collect)) {
return Collections.emptyList();
}
List<Map<String, Object>> equipIndexList = this.baseMapper.getEquipIndexList(collect);
Map<String, Map<String, Object>> equipmentSpecificId = equipIndexList.stream().collect(Collectors.toMap(item -> item.get("equipmentSpecificId").toString(), item -> item));
List<Map<String, Object>> resultList = new ArrayList<>();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment