mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-19 18:45:03 +08:00
update 启动失败设置结算时间、debugOrder接口新增修改订单状态
This commit is contained in:
@@ -1151,6 +1151,11 @@ public class TempService {
|
||||
// orderBasicInfo.getDiscountAmount(), orderBasicInfo.getRefundAmount(), orderBasicInfo.getSettleAmount());
|
||||
logger.info(reCalculateFlagResult);
|
||||
|
||||
// 如果不是已完成的订单,将订单状态改为 6-订单完成
|
||||
if (!StringUtils.equals(OrderStatusEnum.ORDER_COMPLETE.getValue(), orderBasicInfo.getOrderStatus())) {
|
||||
orderBasicInfo.setOrderStatus(OrderStatusEnum.ORDER_COMPLETE.getValue());
|
||||
}
|
||||
|
||||
// 更新数据库
|
||||
OrderTransactionDTO orderTransactionDTO = new OrderTransactionDTO();
|
||||
orderTransactionDTO.setOrderBasicInfo(orderBasicInfo);
|
||||
|
||||
@@ -597,6 +597,9 @@ public class OrderBasicInfoServiceImpl implements OrderBasicInfoService {
|
||||
// 发送停止充电指令
|
||||
pileRemoteService.remoteStopCharging(pileSn, orderInfo.getConnectorCode(), orderInfo.getTransactionCode());
|
||||
|
||||
// 结算时间设置为当前时间
|
||||
orderInfo.setSettlementTime(new Date());
|
||||
|
||||
// 启动失败原因
|
||||
orderInfo.setReason(failedReasonMsg);
|
||||
// 订单退款(结算订单)
|
||||
|
||||
Reference in New Issue
Block a user