|
@@ -246,7 +246,6 @@ public class OpenApiOrderServiceImpl implements OpenApiOrderService {
|
|
|
return ResponseResult.error(ResponseResultCodeEnum.ORDER_CANCEL_TYPE_NOT_EXIST);
|
|
|
}
|
|
|
|
|
|
- order.setCancelType(cancelReq.getCancelType());
|
|
|
int count = 0;
|
|
|
ResponseResult responseResult = new ResponseResult();
|
|
|
try {
|
|
@@ -281,6 +280,10 @@ public class OpenApiOrderServiceImpl implements OpenApiOrderService {
|
|
|
cancelOrder(order, cancelReq.getCancelReason(), orderStatus);
|
|
|
}
|
|
|
|
|
|
+ Order newOrder = iOrderService.getById(order.getId());
|
|
|
+ newOrder.setCancelType(cancelReq.getCancelType());
|
|
|
+ iOrderService.updateById(newOrder);
|
|
|
+
|
|
|
} catch (Exception e) {
|
|
|
count += 1;
|
|
|
// 回滚事务
|