Commit 585896c9 authored by zhengyi's avatar zhengyi

Merge branch 'test' into release

parents 455defe5 b87442cc
......@@ -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