安眼接口api开发
This commit is contained in:
-6
@@ -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())) {
|
||||
// 二级
|
||||
|
||||
Reference in New Issue
Block a user