update 高德

This commit is contained in:
2023-06-26 16:50:12 +08:00
parent 56c3d19563
commit 6bee77bbc6
2 changed files with 20 additions and 5 deletions

View File

@@ -158,9 +158,9 @@ public class AMapServiceImpl implements AMapService {
aMapInfo = new AMapStationInfo();
String stationId = String.valueOf(stationInfo.getId());
aMapInfo.setStationID(stationId);
aMapInfo.setOperatorID("");
aMapInfo.setEquipmentOwnerID("");
aMapInfo.setOperatorName("");
aMapInfo.setOperatorID(String.valueOf(stationInfo.getMerchantId()));
aMapInfo.setEquipmentOwnerID(Constants.OPERATORID_LIANLIAN);
aMapInfo.setOperatorName(Constants.JSOWELL);
aMapInfo.setStationName(stationInfo.getStationName());
aMapInfo.setCountryCode(stationInfo.getCountryCode());
aMapInfo.setAreaCode(stationInfo.getAreaCode());
@@ -187,6 +187,22 @@ public class AMapServiceImpl implements AMapService {
List<AMapEquipmentInfo> equipmentInfos = equipmentInfoMap.get(stationId);
aMapInfo.setEquipmentInfos(equipmentInfos);
int fastTotal = 0;
int slowTotal = 0;
for (AMapEquipmentInfo equipmentInfo : equipmentInfos) {
Integer equipmentType = equipmentInfo.getEquipmentType();
if (equipmentType == 1) {
fastTotal += 1;
}
if (equipmentType == 2) {
slowTotal += 1;
}
}
aMapInfo.setFastEquipmentNum(fastTotal);
aMapInfo.setSlowEquipmentNum(slowTotal);
resultList.add(aMapInfo);
}
sw.stop();
@@ -445,7 +461,6 @@ public class AMapServiceImpl implements AMapService {
// 根据站点id分组
Map<String, List<PileInfoVO>> stationMap = pileInfoVOS.stream().collect(Collectors.groupingBy(PileInfoVO::getStationId));
// 处理结果集
List<AMapEquipmentInfo> pileList;
AMapEquipmentInfo info;