Commit 945403d9 authored by zhengyi's avatar zhengyi

海运拆单订单也允许进行订单修改审批

parent da71d7ea
......@@ -1798,10 +1798,10 @@ public class OrderServiceImpl extends AbstractService<OrderMapper, OrderDO> impl
if (Objects.isNull(vo)) {
throw exception(ORDER_NOT_EXISTS);
}
if (Objects.nonNull(vo.getParentOrderId()) && vo.getParentOrderId() > 0 && !vo.getSplitSeparateOrder()) {
// 如果是拆单订单,且未标记为独立订单,则不允许修改
throw exception(SPLIT_ORDER_REVOKE_CAN_UPDATE);
}
// if (Objects.nonNull(vo.getParentOrderId()) && vo.getParentOrderId() > 0 && !vo.getSplitSeparateOrder()) {
// // 如果是拆单订单,且未标记为独立订单,则不允许修改
// throw exception(SPLIT_ORDER_REVOKE_CAN_UPDATE);
// }
OrderApprovalDO orderApprovalDO = orderApprovalMapper.newItemInfo(null, vo.getOrderId(), ORDER_UPDATE.getValue());
if (Objects.nonNull(orderApprovalDO) && orderApprovalDO.getStatus() == 1) {
throw exception(YOUR_APPLY_PENDING);
......@@ -1853,10 +1853,10 @@ public class OrderServiceImpl extends AbstractService<OrderMapper, OrderDO> impl
if (Objects.isNull(vo)) {
throw exception(ORDER_NOT_EXISTS);
}
if (Objects.nonNull(vo.getParentOrderId()) && vo.getParentOrderId() > 0 && !vo.getSplitSeparateOrder()) {
// 如果是拆单订单,且未标记为独立订单,则不允许修改
throw exception(SPLIT_ORDER_REVOKE_CAN_UPDATE);
}
// if (Objects.nonNull(vo.getParentOrderId()) && vo.getParentOrderId() > 0 && !vo.getSplitSeparateOrder()) {
// // 如果是拆单订单,且未标记为独立订单,则不允许修改
// throw exception(SPLIT_ORDER_REVOKE_CAN_UPDATE);
// }
OrderApprovalDO orderApprovalDO = orderApprovalMapper.newItemInfo(null, vo.getOrderId(), ORDER_UPDATE.getValue());
if (Objects.nonNull(orderApprovalDO) && orderApprovalDO.getStatus() == 1) {
throw exception(YOUR_APPLY_PENDING);
......
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