Commit 9cba5aa9 authored by zhengyi's avatar zhengyi

订单入仓操作校验订单正在进行的审批业务逻辑调整

parent 2f467ab3
......@@ -301,10 +301,14 @@ public class OrderWarehouseInServiceImpl extends AbstractService<OrderWarehouseI
private void throwProcessingApproval(OrderDO orderDO) {
// 费用申请中可以入仓和完成入仓。 详见字典order_approval_type
if (orderDO.getAuditType() != 0 && orderDO.getAuditType() > 5 && orderDO.getAuditType() != 12) {
if (orderDO.getAuditType() != 0) {
OrderApprovalTypeCheckEvent approvalTypeCheckEvent = new OrderApprovalTypeCheckEvent(orderDO.getOrderId(), null, null, Arrays.asList(6, 11, 13, 14, 22, 23, 28), false);
applicationContext.publishEvent(approvalTypeCheckEvent);
if (approvalTypeCheckEvent.getResult()) {
throw exception(ORDER_HAS_PROCESSING_APPROVAL, orderDO.getOrderNo());
}
}
}
/*
创建入仓记录
......
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