mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-05-03 17:40:13 +08:00
update
This commit is contained in:
@@ -256,6 +256,10 @@ public class OrderService {
|
||||
if (orderInfo == null) {
|
||||
throw new BusinessException(ReturnCodeEnum.CODE_QUERY_ORDER_NULL_ERROR);
|
||||
}
|
||||
// 判断订单状态是不是已经结算了
|
||||
if (StringUtils.equals(orderInfo.getOrderStatus(), OrderStatusEnum.ORDER_COMPLETE.getValue())) {
|
||||
throw new BusinessException(ReturnCodeEnum.CODE_ORDER_COMPLETE_ERROR);
|
||||
}
|
||||
// 校验订单中的会员与操作会员是否一致
|
||||
if (!StringUtils.equals(orderInfo.getMemberId(), dto.getMemberId())) {
|
||||
throw new BusinessException(ReturnCodeEnum.CODE_ORDER_MEMBER_NOT_MATCH_ERROR);
|
||||
|
||||
@@ -98,6 +98,8 @@ public enum ReturnCodeEnum {
|
||||
|
||||
CODE_FIRMWARE_NOT_FOUND_ERROR("00100046", "未找到相应固件"),
|
||||
|
||||
CODE_ORDER_COMPLETE_ERROR("00100047", "该订单已经结算完成!"),
|
||||
|
||||
/* 个人桩 start */
|
||||
|
||||
CODE_PILE_HAS_BEEN_BINDING_ERROR("00400001", "此桩已被绑定,请联系管理员!"),
|
||||
|
||||
@@ -815,7 +815,7 @@ public class OrderBasicInfoServiceImpl implements IOrderBasicInfoService {
|
||||
dto.setOrderBasicInfo(orderBasicInfo);
|
||||
dto.setOrderDetail(orderDetail);
|
||||
transactionService.doUpdateOrder(dto);
|
||||
logger.info("结算订单 end OrderTransactionDTO:{}", JSONObject.toJSONString(dto));
|
||||
logger.info("结算订单end:{} OrderTransactionDTO:{}", orderCode, JSONObject.toJSONString(dto));
|
||||
|
||||
try {
|
||||
// 将卡/vin状态解锁
|
||||
|
||||
Reference in New Issue
Block a user