mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-05-08 03:50:13 +08:00
update
This commit is contained in:
@@ -386,12 +386,23 @@ public class PileBillingTemplateServiceImpl implements IPileBillingTemplateServi
|
||||
*/
|
||||
@Override
|
||||
public int changeStationTemplate(PileBillingTemplate pileBillingTemplate) {
|
||||
PileBillingTemplate template = new PileBillingTemplate();
|
||||
// 先将以前正在使用的模板查出来,状态改为0
|
||||
BillingTemplateVO billingTemplateVO = queryUsedBillingTemplate(String.valueOf(pileBillingTemplate.getStationId()));
|
||||
if (billingTemplateVO != null) {
|
||||
template.setId(Long.parseLong(billingTemplateVO.getTemplateId()));
|
||||
template.setStatus("0");
|
||||
|
||||
updatePileBillingTemplate(template);
|
||||
}
|
||||
// 将当前这条模板状态改为1
|
||||
template.setId(pileBillingTemplate.getId());
|
||||
template.setStatus("1");
|
||||
|
||||
updatePileBillingTemplate(template);
|
||||
|
||||
// 下发站点下所有桩
|
||||
|
||||
// pileRemoteService.publishBillingTemplate()
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
@@ -35,7 +35,7 @@ public class AMapEquipmentInfo {
|
||||
|
||||
// 充电设备接口列表
|
||||
@JSONField(name = "ConnectorInfos")
|
||||
private List<AMapConnectorInfo> ConnectorInfos;
|
||||
private List<AMapConnectorInfo> connectorInfos;
|
||||
|
||||
// 充电设备总功率 单位:kW
|
||||
@JSONField(name = "Power")
|
||||
|
||||
@@ -164,6 +164,7 @@ public class AMapServiceImpl implements AMapService {
|
||||
aMapInfo.setStationName(stationInfo.getStationName());
|
||||
aMapInfo.setCountryCode(stationInfo.getCountryCode());
|
||||
aMapInfo.setAreaCode(stationInfo.getAreaCode());
|
||||
aMapInfo.setServiceTel(stationInfo.getStationTel());
|
||||
aMapInfo.setAddress(stationInfo.getAddress());
|
||||
aMapInfo.setServiceTel(stationInfo.getServiceTel());
|
||||
aMapInfo.setStationType(Integer.parseInt(stationInfo.getStationType()));
|
||||
|
||||
Reference in New Issue
Block a user