Commit b2225b19 authored by liuzeheng's avatar liuzeheng

客户还在公海上,业绩归公司

parent f365cab2
......@@ -1229,8 +1229,10 @@ public class OrderServiceImpl extends AbstractService<OrderMapper, OrderDO> impl
if (Objects.nonNull(oldCustomerService)) {
// 如果这里的旧客户经理id不为null,说明此客户属于移交新客户经理,但是新客户经理还未接收,业绩算老客户经理的
order.setSalesmanId(oldCustomerService);
} else {
//order.setSalesmanId(customerDO.getCustomerService());
} else if(customerDO.getIsInOpenSea() && Objects.nonNull(customerDO.getCustomerServiceAssignedTime())) { //客户还在公海上,不做业绩归属分配,归公司
order.setSalesmanId(0L);
order.setCustomerId(0L);
}else {
addOrderSalesmanCustomerService(createReqVO, order);
}
AdminUserRespDTO adminUserRespDTO = adminUserApi.getUser(order.getSalesmanId());
......
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