Commit ef71df7c authored by zhengyi's avatar zhengyi

订单从无收货人改为有收货人bug修复

parent 5795fe62
...@@ -2059,6 +2059,9 @@ public class OrderServiceImpl extends AbstractService<OrderMapper, OrderDO> impl ...@@ -2059,6 +2059,9 @@ public class OrderServiceImpl extends AbstractService<OrderMapper, OrderDO> impl
OrderConsigneeBackVO orderConsigneeBackVO = vo.getConsigneeVO(); OrderConsigneeBackVO orderConsigneeBackVO = vo.getConsigneeVO();
CustomerDO consigneeDO = customerService.getById(updateReqVO.getConsigneeId()); CustomerDO consigneeDO = customerService.getById(updateReqVO.getConsigneeId());
if (Objects.nonNull(consigneeDO)) { if (Objects.nonNull(consigneeDO)) {
if (Objects.isNull(orderConsigneeBackVO)){
orderConsigneeBackVO = new OrderConsigneeBackVO();
}
orderConsigneeBackVO.setCustomerNumber(consigneeDO.getNumber()); orderConsigneeBackVO.setCustomerNumber(consigneeDO.getNumber());
} }
if (vo.getIsCargoControl() && hasConsignee) { if (vo.getIsCargoControl() && hasConsignee) {
......
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