Commit 7d3eb1f2 authored by yanghao's avatar yanghao

chore: 客户的同行或代理业务由type转移到roles

parent 5825fdf5
...@@ -208,8 +208,8 @@ public class CustomerServiceImpl extends AbstractService<CustomerMapper, ...@@ -208,8 +208,8 @@ public class CustomerServiceImpl extends AbstractService<CustomerMapper,
customerService = consignorCustomerDO.getCustomerService(); customerService = consignorCustomerDO.getCustomerService();
// 待分配。 若是发货人为代理和同行时,订单的收货人不同步到待分配客户 // 待分配。 若是发货人为代理和同行时,订单的收货人不同步到待分配客户
boolean isProxyConsignor = StringUtils.isNotEmpty(consignorCustomerDO.getType()) boolean isProxyConsignor = StringUtils.isNotEmpty(consignorCustomerDO.getRoles())
&& (consignorCustomerDO.getType().contains("2") || consignorCustomerDO.getType().contains("3")); && (consignorCustomerDO.getRoles().contains("2") || consignorCustomerDO.getRoles().contains("3"));
if (isProxyConsignor) { if (isProxyConsignor) {
log.info("若是发货人为代理和同行时,订单的收货人不同步到待分配客户"); log.info("若是发货人为代理和同行时,订单的收货人不同步到待分配客户");
return null; return null;
......
...@@ -120,8 +120,8 @@ public class MemberRegListener { ...@@ -120,8 +120,8 @@ public class MemberRegListener {
OrderConsignorDO orderConsignorByOrderId = orderConsignorService.getOrderConsignorByOrderId(orderId); OrderConsignorDO orderConsignorByOrderId = orderConsignorService.getOrderConsignorByOrderId(orderId);
if (orderConsignorByOrderId != null && orderConsignorByOrderId.getCustomerId() != null) { if (orderConsignorByOrderId != null && orderConsignorByOrderId.getCustomerId() != null) {
CustomerDO orderConsignorCustomer = customerService.getCustomer(orderConsignorByOrderId.getCustomerId()); CustomerDO orderConsignorCustomer = customerService.getCustomer(orderConsignorByOrderId.getCustomerId());
if (orderConsignorCustomer != null && StringUtils.isNotEmpty(orderConsignorCustomer.getType()) if (orderConsignorCustomer != null && StringUtils.isNotEmpty(orderConsignorCustomer.getRoles())
&& !orderConsignorCustomer.getType().contains("2") && !orderConsignorCustomer.getType().contains("3")) { && !orderConsignorCustomer.getRoles().contains("2") && !orderConsignorCustomer.getRoles().contains("3")) {
//设置为发货人的客户经理 //设置为发货人的客户经理
orderConsigneeCustomer.setCustomerService(orderConsignorCustomer.getCustomerService()); orderConsigneeCustomer.setCustomerService(orderConsignorCustomer.getCustomerService());
orderConsigneeCustomer.setConsigneeFirstCustomerService(orderConsignorCustomer.getCustomerService()); orderConsigneeCustomer.setConsigneeFirstCustomerService(orderConsignorCustomer.getCustomerService());
......
...@@ -418,9 +418,9 @@ public class OrderWarehouseInServiceImpl extends AbstractService<OrderWarehouseI ...@@ -418,9 +418,9 @@ public class OrderWarehouseInServiceImpl extends AbstractService<OrderWarehouseI
customerService.getCustomer(orderConsignorDO.getCustomerId()); customerService.getCustomer(orderConsignorDO.getCustomerId());
// 发货人不是代理或同行 // 发货人不是代理或同行
if (orderConsignorCustomer != null && if (orderConsignorCustomer != null &&
StringUtils.isNotEmpty(orderConsignorCustomer.getType()) StringUtils.isNotEmpty(orderConsignorCustomer.getRoles())
&& !orderConsignorCustomer.getType().contains("2") && && !orderConsignorCustomer.getRoles().contains("2") &&
!orderConsignorCustomer.getType().contains("3")) { !orderConsignorCustomer.getRoles().contains("3")) {
// 收货人信息 // 收货人信息
OrderConsigneeDO orderConsigneeDO = OrderConsigneeDO orderConsigneeDO =
orderConsigneeService.getOrderConsigneeByOrderId(orderId); orderConsigneeService.getOrderConsigneeByOrderId(orderId);
......
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