mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-06-21 23:59:50 +08:00
update 新电途请求启动充电接口添加字段
This commit is contained in:
@@ -60,5 +60,13 @@ public class QueryStartChargeDTO {
|
|||||||
|
|
||||||
|
|
||||||
// ----------------- 新电途平台接口拓展字段------------------
|
// ----------------- 新电途平台接口拓展字段------------------
|
||||||
|
/**
|
||||||
|
* 预充金额,电量充到该金额自动停止。单位(元)
|
||||||
|
*/
|
||||||
private BigDecimal chargingAmt;
|
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.uniapp.SendMessageVO;
|
||||||
import com.jsowell.pile.vo.web.*;
|
import com.jsowell.pile.vo.web.*;
|
||||||
import org.apache.ibatis.annotations.Param;
|
import org.apache.ibatis.annotations.Param;
|
||||||
|
import org.springframework.stereotype.Repository;
|
||||||
|
|
||||||
import java.time.LocalDateTime;
|
import java.time.LocalDateTime;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
|
@Repository
|
||||||
public interface OrderBasicInfoMapper {
|
public interface OrderBasicInfoMapper {
|
||||||
/**
|
/**
|
||||||
* delete by primary key
|
* delete by primary key
|
||||||
|
|||||||
@@ -2481,6 +2481,7 @@ public class OrderBasicInfoServiceImpl implements OrderBasicInfoService {
|
|||||||
String connectorCode = StringUtils.substring(pileConnectorCode, 14, 16);
|
String connectorCode = StringUtils.substring(pileConnectorCode, 14, 16);
|
||||||
|
|
||||||
String transactionCode = IdUtils.generateTransactionCode(pileSn, connectorCode);
|
String transactionCode = IdUtils.generateTransactionCode(pileSn, connectorCode);
|
||||||
|
|
||||||
// 校验充电桩信息
|
// 校验充电桩信息
|
||||||
GenerateOrderDTO generateOrderDTO = new GenerateOrderDTO();
|
GenerateOrderDTO generateOrderDTO = new GenerateOrderDTO();
|
||||||
generateOrderDTO.setPileSn(pileSn);
|
generateOrderDTO.setPileSn(pileSn);
|
||||||
@@ -2513,6 +2514,10 @@ public class OrderBasicInfoServiceImpl implements OrderBasicInfoService {
|
|||||||
// .payMode(PayModeEnum.PAYMENT_OF_BALANCE.getValue()) // 支付方式
|
// .payMode(PayModeEnum.PAYMENT_OF_BALANCE.getValue()) // 支付方式
|
||||||
.orderAmount(BigDecimal.ZERO)
|
.orderAmount(BigDecimal.ZERO)
|
||||||
.build();
|
.build();
|
||||||
|
if (StringUtils.isNotBlank(dto.getPlateNum())) {
|
||||||
|
// 车牌号
|
||||||
|
orderBasicInfo.setPlateNumber(dto.getPlateNum());
|
||||||
|
}
|
||||||
// 根据桩编码查询当前计费模板
|
// 根据桩编码查询当前计费模板
|
||||||
BillingTemplateVO billingTemplateVO = pileBillingTemplateService.selectBillingTemplateDetailByPileSn(pileSn);
|
BillingTemplateVO billingTemplateVO = pileBillingTemplateService.selectBillingTemplateDetailByPileSn(pileSn);
|
||||||
// 订单详情
|
// 订单详情
|
||||||
|
|||||||
@@ -108,7 +108,7 @@ public class XDTServiceImpl implements XDTService {
|
|||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public Map<String, String> queryStartCharge(QueryStartChargeDTO dto) {
|
public Map<String, String> queryStartCharge(QueryStartChargeDTO dto) {
|
||||||
dto.setAccountBalance(dto.getChargingAmt());
|
dto.setAccountBalance(dto.getChargingAmt()); // 新电途扩展字段,充电金额字段为 chargingAmt
|
||||||
return zdlService.queryStartCharge(dto);
|
return zdlService.queryStartCharge(dto);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user