|
|
@@ -106,16 +106,19 @@ public class ExternalController {
|
|
|
exchangeCodeMapper.updateById(exchangeCode);
|
|
|
|
|
|
//虚物订单退款,清出车队,车票变为已过期
|
|
|
- GoodsDon goodsDon = goodsDonMapper.selectById(orderDon.getGoodsId());
|
|
|
- GoodsDonSku sku = skuMapper.selectById(orderDon.getSkuId());
|
|
|
- orderCommonService.clearUnrealGoodsDetail(orderDon, goodsDon.getType(), sku);
|
|
|
+ try {
|
|
|
+ GoodsDon goodsDon = goodsDonMapper.selectById(orderDon.getGoodsId());
|
|
|
+ GoodsDonSku sku = skuMapper.selectById(orderDon.getSkuId());
|
|
|
+ orderCommonService.clearUnrealGoodsDetail(orderDon, goodsDon.getType(), sku);
|
|
|
|
|
|
- //重新生成兑换码
|
|
|
- ExchangeCodeReq exchangeCodeReq = new ExchangeCodeReq();
|
|
|
- exchangeCodeReq.setNumber(1);
|
|
|
- exchangeCodeReq.setGoodsId(orderDon.getGoodsId());
|
|
|
- exchangeCodeReq.setSkuId(orderDon.getSkuId());
|
|
|
- exchangeCodeService.createExchangeCode(exchangeCodeReq);
|
|
|
+ //重新生成兑换码
|
|
|
+ ExchangeCodeReq exchangeCodeReq = new ExchangeCodeReq();
|
|
|
+ exchangeCodeReq.setNumber(1);
|
|
|
+ exchangeCodeReq.setGoodsId(orderDon.getGoodsId());
|
|
|
+ exchangeCodeReq.setSkuId(orderDon.getSkuId());
|
|
|
+ exchangeCodeService.createExchangeCode(exchangeCodeReq);
|
|
|
+ } catch (Exception e) {
|
|
|
+ }
|
|
|
}
|
|
|
return GatewayResponse.SUCCESS.newBuilder().toResult();
|
|
|
}
|