mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-20 11:05:18 +08:00
update 新电途请求启动充电接口添加字段
This commit is contained in:
@@ -60,5 +60,13 @@ public class QueryStartChargeDTO {
|
||||
|
||||
|
||||
// ----------------- 新电途平台接口拓展字段------------------
|
||||
/**
|
||||
* 预充金额,电量充到该金额自动停止。单位(元)
|
||||
*/
|
||||
private BigDecimal chargingAmt;
|
||||
|
||||
/**
|
||||
* 司机在合作公司的唯一标识(手机号),方便维护订单信息
|
||||
*/
|
||||
private String driverId;
|
||||
}
|
||||
|
||||
@@ -13,10 +13,12 @@ import com.jsowell.pile.vo.uniapp.PersonPileConnectorSumInfoVO;
|
||||
import com.jsowell.pile.vo.uniapp.SendMessageVO;
|
||||
import com.jsowell.pile.vo.web.*;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
import java.util.List;
|
||||
|
||||
@Repository
|
||||
public interface OrderBasicInfoMapper {
|
||||
/**
|
||||
* delete by primary key
|
||||
|
||||
@@ -2481,6 +2481,7 @@ public class OrderBasicInfoServiceImpl implements OrderBasicInfoService {
|
||||
String connectorCode = StringUtils.substring(pileConnectorCode, 14, 16);
|
||||
|
||||
String transactionCode = IdUtils.generateTransactionCode(pileSn, connectorCode);
|
||||
|
||||
// 校验充电桩信息
|
||||
GenerateOrderDTO generateOrderDTO = new GenerateOrderDTO();
|
||||
generateOrderDTO.setPileSn(pileSn);
|
||||
@@ -2513,6 +2514,10 @@ public class OrderBasicInfoServiceImpl implements OrderBasicInfoService {
|
||||
// .payMode(PayModeEnum.PAYMENT_OF_BALANCE.getValue()) // 支付方式
|
||||
.orderAmount(BigDecimal.ZERO)
|
||||
.build();
|
||||
if (StringUtils.isNotBlank(dto.getPlateNum())) {
|
||||
// 车牌号
|
||||
orderBasicInfo.setPlateNumber(dto.getPlateNum());
|
||||
}
|
||||
// 根据桩编码查询当前计费模板
|
||||
BillingTemplateVO billingTemplateVO = pileBillingTemplateService.selectBillingTemplateDetailByPileSn(pileSn);
|
||||
// 订单详情
|
||||
|
||||
Reference in New Issue
Block a user