Commit 97064616 authored by 332784038@qq.com's avatar 332784038@qq.com

处理渠道异常时,如果变更渠道处理方式,是不支持自定义价格修改的

parent dd0cc472
......@@ -1334,22 +1334,23 @@ public class OrderExceptionServiceImpl extends AbstractService<OrderExceptionMap
}
List<OrderChangePriceParam> channelPriceParams = new ArrayList<>();
if (null != vo.getChannelPriceList() && vo.getChannelPriceList().size() > 0) {
for (OrderExceptionChannelPriceCreateReqVO channelPrice : vo.getChannelPriceList()) {
channelPrice.setExceptionId(vo.getOrderExceptionId());
channelPrice.setExceptionResultId(orderExceptionResult.getId());
orderExceptionChannelPriceService.createExceptionChannelPrice(channelPrice);
OrderChangePriceParam priceParam = new OrderChangePriceParam();
BeanUtil.copyProperties(channelPrice, priceParam);
channelPriceParams.add(priceParam);
}
}
// List<OrderChangePriceParam> channelPriceParams = new ArrayList<>();
// if (null != vo.getChannelPriceList() && vo.getChannelPriceList().size() > 0) {
// for (OrderExceptionChannelPriceCreateReqVO channelPrice : vo.getChannelPriceList()) {
// channelPrice.setExceptionId(vo.getOrderExceptionId());
// channelPrice.setExceptionResultId(orderExceptionResult.getId());
// orderExceptionChannelPriceService.createExceptionChannelPrice(channelPrice);
//
// OrderChangePriceParam priceParam = new OrderChangePriceParam();
// BeanUtil.copyProperties(channelPrice, priceParam);
// channelPriceParams.add(priceParam);
// }
// }
this.updateById(orderExceptionDO);
//回调之前保存一下异常状态,防止删除
orderBusinessService.handleOrderChannelException(orderExceptionDO.getOrderId(), vo.getChannelId(), vo.getLineId(), channelPriceParams);
// orderBusinessService.handleOrderChannelException(orderExceptionDO.getOrderId(), vo.getChannelId(), vo.getLineId(), channelPriceParams);
orderBusinessService.handleOrderChannelException(orderExceptionDO.getOrderId(), vo.getChannelId(), vo.getLineId(), null);
} else {
throw exception(ORDER_HANDLER_EXCEPTION_NOT_EXISTS);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment