|
|
@@ -1091,6 +1091,16 @@ public class BusRoomBookingOrdersServiceImpl extends ServiceImpl<BusRoomBookingO
|
|
|
s.setPreferentialStatus(2);
|
|
|
});
|
|
|
feeService.updateBatchById(feeItems);
|
|
|
+ List<CesRooms> baseRooms = roomsService.list(Wrappers.<CesRooms>query()
|
|
|
+ .in("living_order_id",livingOrders.stream().map(s->s.getId()).collect(Collectors.toList()))
|
|
|
+ );
|
|
|
+ if(baseRooms.size() > 0) {
|
|
|
+ baseRooms.forEach(s->{
|
|
|
+ s.setRoomStatus(RoomStatusEnum.EMPTY_DIRTY.getKey());
|
|
|
+ s.setLivingOrderId(null);
|
|
|
+ });
|
|
|
+ roomsService.updateBatchById(baseRooms);
|
|
|
+ }
|
|
|
// todo 对账
|
|
|
} else throw new JeecgBootException("未找到任何入住订单");
|
|
|
} else {
|