Commit 495f0a53 authored by Smile's avatar Smile Committed by wux

bug313【订单-复制】复制有客户经理的订单,提交订单时,未重新计算客户经理

parent c040e20c
......@@ -725,10 +725,12 @@ public class OrderServiceImpl extends AbstractService<OrderMapper, OrderDO> impl
if (!Objects.equals(createReqVO.getStatus(), DRAFT.getValue())) {
//customerType 发货人-1 收货人 2
int customerType = this.checkOrderSalesman(order, createReqVO.getOfferId(), null, null, orderConsignorDO, orderConsigneeDO);
//复制订单重算所属客户经理
addOrderCustomerService(order,orderConsignorDO,customerType);
// 更新所属客户经理(业务员)
if (!DRAFT.getValue().equals(order.getStatus()) && Objects.nonNull(order.getIsChargeCustomer()) && order.getIsChargeCustomer()) {
addOrderCustomerService(order,orderConsignorDO,customerType);
}
// if (!DRAFT.getValue().equals(order.getStatus()) && Objects.nonNull(order.getIsChargeCustomer()) && order.getIsChargeCustomer()) {
// addOrderCustomerService(order,orderConsignorDO,customerType);
// }
}
}
......
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