mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-20 02:55:04 +08:00
新增 修改站点计费模板状态方法
This commit is contained in:
@@ -160,4 +160,11 @@ public interface IPileBillingTemplateService {
|
||||
CurrentTimePriceDetails getCurrentTimePriceDetails(String stationId);
|
||||
|
||||
List<PileBillingDetail> queryBillingDetailById(Long id);
|
||||
|
||||
/**
|
||||
* 修改站点计费模板状态并下发最新模板
|
||||
* @param pileBillingTemplate
|
||||
* @return
|
||||
*/
|
||||
int changeStationTemplate(PileBillingTemplate pileBillingTemplate);
|
||||
}
|
||||
|
||||
@@ -379,6 +379,22 @@ public class PileBillingTemplateServiceImpl implements IPileBillingTemplateServi
|
||||
return pileBillingDetails;
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改站点计费模板状态并下发最新模板
|
||||
* @param pileBillingTemplate
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public int changeStationTemplate(PileBillingTemplate pileBillingTemplate) {
|
||||
// 先将以前正在使用的模板查出来,状态改为0
|
||||
|
||||
// 将当前这条模板状态改为1
|
||||
|
||||
// 下发站点下所有桩
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<BillingTemplateVO> queryPublicBillingTemplateList() {
|
||||
return pileBillingTemplateMapper.queryPublicBillingTemplateList();
|
||||
|
||||
@@ -28,6 +28,9 @@ public class BillingTemplateVO {
|
||||
// 计费模板名称
|
||||
private String templateName;
|
||||
|
||||
// 计费模板状态
|
||||
private String status;
|
||||
|
||||
// 计费模板备注
|
||||
private String remark;
|
||||
|
||||
|
||||
@@ -291,6 +291,7 @@
|
||||
t2.id as templateId,
|
||||
t2.template_code as templateCode,
|
||||
t2.name as templateName,
|
||||
t2.status,
|
||||
t2.remark as remark,
|
||||
t2.type as deviceType,
|
||||
t2.publish_time as publishTime,
|
||||
|
||||
Reference in New Issue
Block a user