update 启动失败设置结算时间、debugOrder接口新增修改订单状态

This commit is contained in:
Lemon
2025-11-06 11:17:05 +08:00
parent 997ca3863b
commit 87c5373430
2 changed files with 8 additions and 0 deletions

View File

@@ -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);

View File

@@ -597,6 +597,9 @@ public class OrderBasicInfoServiceImpl implements OrderBasicInfoService {
// 发送停止充电指令
pileRemoteService.remoteStopCharging(pileSn, orderInfo.getConnectorCode(), orderInfo.getTransactionCode());
// 结算时间设置为当前时间
orderInfo.setSettlementTime(new Date());
// 启动失败原因
orderInfo.setReason(failedReasonMsg);
// 订单退款(结算订单)