20230922-ljl-fixBug
ljl 1 year ago
parent 2c98dcc37c
commit fd85fc802b

@ -1177,6 +1177,7 @@ public class DistributionOrderServiceImpl implements DistributionOrderService {
throw new RuntimeException(response.getReason());
}
}
log.info("cancelPurchaseOrder: " + skuIds);
if (skuIds.isEmpty()) {
cancelPurchaseOrderByOrderId(shopId, orderId, source);
} else {
@ -1265,13 +1266,15 @@ public class DistributionOrderServiceImpl implements DistributionOrderService {
dataSourceTransactionManager.commit(transactionStatus);
} catch (Throwable e) {
dataSourceTransactionManager.rollback(transactionStatus);
log.error("doCancelPurchaseOrderItem transaction error: " + e.getMessage());
log.error("doCancelPurchaseOrderItem transaction", e);
throw new RuntimeException("处理异常");
}
opOrderDsService.updateOpOrderDsFilterStatus(orderId, PurchaseOrderConst.PURCHASE_PLATFORM1688_D_S);
}
public void doCancelPurchaseOrderItem(String orderId, List<Long> needCancelPurchaseOrderIds, List<Long> needCancelPurchaseOrderItemIds, List<PurchaseOrderCancelLog> logs) {
log.info("doCancelPurchaseOrderItem_needCancelPurchaseOrderIds" + needCancelPurchaseOrderIds);
log.info("doCancelPurchaseOrderItem_needCancelPurchaseOrderItemIds" + needCancelPurchaseOrderItemIds);
if (!needCancelPurchaseOrderIds.isEmpty()) {
purchaseOrderService.updateStatusByIds(StatusConst.cancel, needCancelPurchaseOrderIds);
}

Loading…
Cancel
Save