mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-06-13 03:39:55 +08:00
update 高德
This commit is contained in:
@@ -56,7 +56,7 @@ public class PileInfoVO {
|
|||||||
private String modelName;
|
private String modelName;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 类型
|
* 类型 1-快充;2-慢充
|
||||||
*/
|
*/
|
||||||
private String speedType;
|
private String speedType;
|
||||||
|
|
||||||
|
|||||||
@@ -158,9 +158,9 @@ public class AMapServiceImpl implements AMapService {
|
|||||||
aMapInfo = new AMapStationInfo();
|
aMapInfo = new AMapStationInfo();
|
||||||
String stationId = String.valueOf(stationInfo.getId());
|
String stationId = String.valueOf(stationInfo.getId());
|
||||||
aMapInfo.setStationID(stationId);
|
aMapInfo.setStationID(stationId);
|
||||||
aMapInfo.setOperatorID("");
|
aMapInfo.setOperatorID(String.valueOf(stationInfo.getMerchantId()));
|
||||||
aMapInfo.setEquipmentOwnerID("");
|
aMapInfo.setEquipmentOwnerID(Constants.OPERATORID_LIANLIAN);
|
||||||
aMapInfo.setOperatorName("");
|
aMapInfo.setOperatorName(Constants.JSOWELL);
|
||||||
aMapInfo.setStationName(stationInfo.getStationName());
|
aMapInfo.setStationName(stationInfo.getStationName());
|
||||||
aMapInfo.setCountryCode(stationInfo.getCountryCode());
|
aMapInfo.setCountryCode(stationInfo.getCountryCode());
|
||||||
aMapInfo.setAreaCode(stationInfo.getAreaCode());
|
aMapInfo.setAreaCode(stationInfo.getAreaCode());
|
||||||
@@ -187,6 +187,22 @@ public class AMapServiceImpl implements AMapService {
|
|||||||
List<AMapEquipmentInfo> equipmentInfos = equipmentInfoMap.get(stationId);
|
List<AMapEquipmentInfo> equipmentInfos = equipmentInfoMap.get(stationId);
|
||||||
aMapInfo.setEquipmentInfos(equipmentInfos);
|
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);
|
resultList.add(aMapInfo);
|
||||||
}
|
}
|
||||||
sw.stop();
|
sw.stop();
|
||||||
@@ -445,7 +461,6 @@ public class AMapServiceImpl implements AMapService {
|
|||||||
// 根据站点id分组
|
// 根据站点id分组
|
||||||
Map<String, List<PileInfoVO>> stationMap = pileInfoVOS.stream().collect(Collectors.groupingBy(PileInfoVO::getStationId));
|
Map<String, List<PileInfoVO>> stationMap = pileInfoVOS.stream().collect(Collectors.groupingBy(PileInfoVO::getStationId));
|
||||||
|
|
||||||
|
|
||||||
// 处理结果集
|
// 处理结果集
|
||||||
List<AMapEquipmentInfo> pileList;
|
List<AMapEquipmentInfo> pileList;
|
||||||
AMapEquipmentInfo info;
|
AMapEquipmentInfo info;
|
||||||
|
|||||||
Reference in New Issue
Block a user