mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-20 19:15:35 +08:00
update 高德
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user