|
|
@@ -816,8 +816,13 @@ public class OrderDonServiceImpl extends ServiceImpl<OrderDonMapper, OrderDon> i
|
|
|
orderDon.setStatus(OrderDon.Status.hasPayment);
|
|
|
}
|
|
|
if (!orderDon.getIsNoLogin()) {
|
|
|
- //修改车位状态并发送模板消息
|
|
|
- updateCarParkAndSendMsg(goodsDon, sku, orderDon);
|
|
|
+ if (orderDon.getOrderType() == 2 && orderDon.getIsChangeTicket()) {
|
|
|
+ //将奈飞月付车票更换成其他规格的车票
|
|
|
+ changeTicketAndRecord(orderDon.getPreSkuId(), orderDon.getRelationId(), orderDon.getId(), orderDon.getNum(), sku, orderDon.getUserId());
|
|
|
+ } else {
|
|
|
+ //修改车位状态并发送模板消息
|
|
|
+ updateCarParkAndSendMsg(goodsDon, sku, orderDon);
|
|
|
+ }
|
|
|
if (orderDon.getMoney().compareTo(BigDecimal.ZERO) > 0 && orderDon.getIsDistribute()) {
|
|
|
TASK_POOL.execute(() -> distributeWaitingSendPointsRecord(orderDon));
|
|
|
}
|