|
@@ -1207,6 +1207,8 @@ public class BusRoomBookingOrdersServiceImpl extends ServiceImpl<BusRoomBookingO
|
|
|
if(!opMainRoomOrder.isPresent()) throw new JeecgBootException("没有找到主房订单");
|
|
if(!opMainRoomOrder.isPresent()) throw new JeecgBootException("没有找到主房订单");
|
|
|
BusRoomsLivingOrder mainRoomOrder = opMainRoomOrder.get();
|
|
BusRoomsLivingOrder mainRoomOrder = opMainRoomOrder.get();
|
|
|
livingOrders.forEach(s->{
|
|
livingOrders.forEach(s->{
|
|
|
|
|
+ // fix-bug 当结账后设置离店时间 2023-05-09
|
|
|
|
|
+ s.setDueOutTime(new Date());
|
|
|
s.setSettleType(SettleTypeEnum.SETTLE_LEAVE.getKey());
|
|
s.setSettleType(SettleTypeEnum.SETTLE_LEAVE.getKey());
|
|
|
s.setIsUnionSettled(s.getId().equals(mainRoomOrder.getId())?0:1);
|
|
s.setIsUnionSettled(s.getId().equals(mainRoomOrder.getId())?0:1);
|
|
|
});
|
|
});
|
|
@@ -1267,7 +1269,8 @@ public class BusRoomBookingOrdersServiceImpl extends ServiceImpl<BusRoomBookingO
|
|
|
if(mainRoom == null) throw new JeecgBootException("没有找到主房");
|
|
if(mainRoom == null) throw new JeecgBootException("没有找到主房");
|
|
|
|
|
|
|
|
BusRoomsLivingOrder mainRoomOrder = livingOrder;
|
|
BusRoomsLivingOrder mainRoomOrder = livingOrder;
|
|
|
-
|
|
|
|
|
|
|
+ // fixbug 当结账后设置离店时间 2023-05-09
|
|
|
|
|
+ livingOrder.setDueOutTime(new Date());
|
|
|
livingOrder.setSettleType(SettleTypeEnum.SETTLE_LEAVE.getKey());
|
|
livingOrder.setSettleType(SettleTypeEnum.SETTLE_LEAVE.getKey());
|
|
|
roomsLivingOrderService.updateById(livingOrder);
|
|
roomsLivingOrderService.updateById(livingOrder);
|
|
|
List<BusOrderFee> feeItems = getLivingOrderFees(livingOrderId).stream().filter(
|
|
List<BusOrderFee> feeItems = getLivingOrderFees(livingOrderId).stream().filter(
|