|
@@ -1009,8 +1009,9 @@ public class BusRoomBookingOrdersServiceImpl extends ServiceImpl<BusRoomBookingO
|
|
|
if(customers == null || customers.size() == 0) throw new JeecgBootException("请添加客户信息");
|
|
if(customers == null || customers.size() == 0) throw new JeecgBootException("请添加客户信息");
|
|
|
String livingOrderId = bookingToLive(bkRoom.getId(), customers);
|
|
String livingOrderId = bookingToLive(bkRoom.getId(), customers);
|
|
|
// 费用关联到主房
|
|
// 费用关联到主房
|
|
|
- if(livingData.getOrderFees()!=null && livingData.getOrderFees().size() > 0 && bkRoom.getIsMain() !=null && bkRoom.getIsMain()) {
|
|
|
|
|
- livingData.getOrderFees().forEach(s->{
|
|
|
|
|
|
|
+ if(livingData.getOrderFees()!=null && livingData.getOrderFees().size() > 0 ) {
|
|
|
|
|
+ List<BusOrderFee> findRoomFees = livingData.getOrderFees().stream().filter(t->t.getRoomId().equals(bkRoom.getRoomId())).collect(Collectors.toList());
|
|
|
|
|
+ findRoomFees.forEach(s->{
|
|
|
s.setRoomId(bkRoom.getRoomId());
|
|
s.setRoomId(bkRoom.getRoomId());
|
|
|
s.setLivingOrderId(livingOrderId);
|
|
s.setLivingOrderId(livingOrderId);
|
|
|
s.setCreateTime(new Date());
|
|
s.setCreateTime(new Date());
|