安眼接口api开发

This commit is contained in:
wanghao
2025-11-28 17:19:23 +08:00
parent 9086453544
commit 560fe0dc19
10 changed files with 459 additions and 7 deletions
@@ -122,13 +122,7 @@ public class AedEquipmentMangerServiceImpl extends ServiceImpl<AedEquipmentMange
if (CollectionUtil.isEmpty(pageInfo.getRecords())) {
return pageInfo;
}
List<Long> idList = pageInfo.getRecords().stream().map(AEDPublishPageRes::getId).collect(Collectors.toList());
List<AedLocationEquipment> location = aedEquipmentMangerMapper.getLocation(idList);
pageInfo.getRecords().forEach(f -> {
AedLocationEquipment aedLocationEquipment = location.stream().filter(item -> item.getEquipmentId().equals(f.getId())).findFirst().orElse(null);
if (aedLocationEquipment != null) {
f.setInstallAddress(aedLocationEquipment.getAddress());
}
// 处理部门
if (StrUtil.isNotBlank(f.getDepartCode())) {
// 二级