|
|
@@ -805,6 +805,7 @@ public class BusRoomBookingOrdersServiceImpl extends ServiceImpl<BusRoomBookingO
|
|
|
|
|
|
//<editor-fold desc="同住人相关">
|
|
|
if(customers != null && customers.size() > 0) {
|
|
|
+ BusRoomsLivingOrder finalLivingOrder = livingOrder;
|
|
|
customers.forEach(s->{
|
|
|
// 【添加客人信息 Start】
|
|
|
if(s.getCustomerName() != null && !s.getCustomerName().isEmpty() && s.getPhone() != null && !s.getPhone().isEmpty()){
|
|
|
@@ -825,7 +826,7 @@ public class BusRoomBookingOrdersServiceImpl extends ServiceImpl<BusRoomBookingO
|
|
|
s.setCustomerId(customer.getId());
|
|
|
}
|
|
|
} else throw new JeecgBootException("客人信息不能为空");
|
|
|
- s.setLivingOrderId(livingOrder.getId());
|
|
|
+ s.setLivingOrderId(finalLivingOrder.getId());
|
|
|
livingCustomerService.save(s);
|
|
|
// 【添加客人信息 end】
|
|
|
});
|