Commit 26549ca3 authored by zhengyi's avatar zhengyi

入仓时创建收货人档案信息问题修复

parent a7569128
......@@ -457,6 +457,10 @@ public class OrderWarehouseInServiceImpl extends AbstractService<OrderWarehouseI
if (consigeeCustomer != null) {
orderConsigneeDO.setCustomerId(consigeeCustomer.getCustomerId());
orderConsigneeDO.setCustomerContactsId(consigeeCustomer.getId());
CustomerDO customerDO = customerService.getCustomer(consigeeCustomer.getCustomerId());
if (Objects.nonNull(customerDO)) {
orderConsigneeDO.setCustomerNumber(customerDO.getNumber());
}
orderConsigneeService.updateById(orderConsigneeDO);
// 并更新其他收货人
......@@ -469,6 +473,9 @@ public class OrderWarehouseInServiceImpl extends AbstractService<OrderWarehouseI
for (OrderConsigneeDO consigneeDO : otherConsigneeDOList) {
consigneeDO.setCustomerId(consigeeCustomer.getCustomerId());
consigneeDO.setCustomerContactsId(consigeeCustomer.getId());
if (Objects.nonNull(customerDO)) {
orderConsigneeDO.setCustomerNumber(customerDO.getNumber());
}
orderConsigneeService.updateById(consigneeDO);
}
}
......
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