新增 查询占桩订单费用相关接口

This commit is contained in:
Lemon
2023-08-19 14:07:42 +08:00
parent c2dddd65a7
commit b9da264581
5 changed files with 36 additions and 2 deletions

View File

@@ -339,6 +339,8 @@ public class PileBillingTemplateServiceImpl implements IPileBillingTemplateServi
result.setTemplateCode(billingTemplateVO.getTemplateCode());
result.setStationId(stationId);
result.setDateTime(localTime.toString());
result.setFreeTime(billingTemplateVO.getFreeTime());
result.setOccupyFee(billingTemplateVO.getOccupyFee());
List<BillingDetailVO> billingDetailList = billingTemplateVO.getBillingDetailList();
for (BillingDetailVO detailVO : billingDetailList) {

View File

@@ -430,6 +430,8 @@ public class PileStationInfoServiceImpl implements IPileStationInfoService {
stationVO.setElectricityPrice(currentTimePriceDetails.getElectricityPrice());
stationVO.setServicePrice(currentTimePriceDetails.getServicePrice());
stationVO.setTotalPrice(currentTimePriceDetails.getTotalPrice());
stationVO.setFreeTime(currentTimePriceDetails.getFreeTime());
stationVO.setOccupyFee(currentTimePriceDetails.getOccupyFee());
}
stationVOList.add(stationVO);
}

View File

@@ -7,6 +7,7 @@ import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder;
import java.math.BigDecimal;
import java.util.List;
/**
@@ -57,6 +58,16 @@ public class StationInfoVO {
*/
private String totalPrice;
/**
* 占桩免费时长
*/
private Integer freeTime;
/**
* 占桩费率
*/
private BigDecimal occupyFee;
/**
* 快充枪口总数
*/

View File

@@ -5,6 +5,8 @@ import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.math.BigDecimal;
@Data
@NoArgsConstructor
@AllArgsConstructor
@@ -39,4 +41,14 @@ public class CurrentTimePriceDetails {
* 电费 + 服务费 每度单价
*/
private String totalPrice;
/**
* 占桩免费时长
*/
private Integer freeTime;
/**
* 占桩费率
*/
private BigDecimal occupyFee;
}