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