Commit a8d5bca7 authored by zhengyi's avatar zhengyi

新增收货人和修改收发货人时同步更新客户编号冗余值

parent 812ba716
...@@ -700,6 +700,10 @@ public class OrderServiceImpl extends AbstractService<OrderMapper, OrderDO> impl ...@@ -700,6 +700,10 @@ public class OrderServiceImpl extends AbstractService<OrderMapper, OrderDO> impl
if (consigeeCustomer != null) { if (consigeeCustomer != null) {
orderConsigneeDO.setCustomerId(consigeeCustomer.getCustomerId()); orderConsigneeDO.setCustomerId(consigeeCustomer.getCustomerId());
orderConsigneeDO.setCustomerContactsId(consigeeCustomer.getId()); orderConsigneeDO.setCustomerContactsId(consigeeCustomer.getId());
CustomerDO customerDO = customerService.getCustomer(consigeeCustomer.getCustomerId());
if (Objects.nonNull(customerDO)) {
orderConsigneeDO.setCustomerNumber(customerDO.getNumber());
}
} }
} }
} }
...@@ -2648,6 +2652,10 @@ public class OrderServiceImpl extends AbstractService<OrderMapper, OrderDO> impl ...@@ -2648,6 +2652,10 @@ public class OrderServiceImpl extends AbstractService<OrderMapper, OrderDO> impl
} }
orderConsignorBackVO.setCustomerContactsId(consignorContactsDO.getId()); orderConsignorBackVO.setCustomerContactsId(consignorContactsDO.getId());
orderConsignorBackVO.setCustomerId(consignorContactsDO.getCustomerId()); orderConsignorBackVO.setCustomerId(consignorContactsDO.getCustomerId());
CustomerDO customerDO = customerService.getCustomer(consignorContactsDO.getCustomerId());
if (Objects.nonNull(customerDO)) {
orderConsignorBackVO.setCustomerNumber(customerDO.getNumber());
}
// 发货人信息有变动 // 发货人信息有变动
orderConsignorBackVO.setIsCharge(true); orderConsignorBackVO.setIsCharge(true);
// 重新定价 // 重新定价
...@@ -2735,6 +2743,10 @@ public class OrderServiceImpl extends AbstractService<OrderMapper, OrderDO> impl ...@@ -2735,6 +2743,10 @@ public class OrderServiceImpl extends AbstractService<OrderMapper, OrderDO> impl
} }
orderConsigneeBackVO.setCustomerContactsId(consigneeContactsDO.getId()); orderConsigneeBackVO.setCustomerContactsId(consigneeContactsDO.getId());
orderConsigneeBackVO.setCustomerId(consigneeContactsDO.getCustomerId()); orderConsigneeBackVO.setCustomerId(consigneeContactsDO.getCustomerId());
CustomerDO customerDO = customerService.getCustomer(consigneeContactsDO.getCustomerId());
if (Objects.nonNull(customerDO)) {
orderConsigneeBackVO.setCustomerNumber(customerDO.getNumber());
}
// 收货人信息有变动 // 收货人信息有变动
orderConsigneeBackVO.setIsCharge(true); orderConsigneeBackVO.setIsCharge(true);
// 重新定价 // 重新定价
......
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