|
@@ -15,6 +15,7 @@ import org.jeecg.common.aspect.annotation.AutoLog;
|
|
|
import org.jeecg.common.exception.JeecgBootException;
|
|
import org.jeecg.common.exception.JeecgBootException;
|
|
|
import org.jeecg.common.system.vo.DictModel;
|
|
import org.jeecg.common.system.vo.DictModel;
|
|
|
import org.jeecg.modules.business.entity.BusRoomBookingOrders;
|
|
import org.jeecg.modules.business.entity.BusRoomBookingOrders;
|
|
|
|
|
+import org.jeecg.modules.business.entity.BusRoomsLivingOrder;
|
|
|
import org.jeecg.modules.business.entity.BusTeam;
|
|
import org.jeecg.modules.business.entity.BusTeam;
|
|
|
import org.jeecg.modules.business.service.IBusRoomBookingOrdersService;
|
|
import org.jeecg.modules.business.service.IBusRoomBookingOrdersService;
|
|
|
import org.jeecg.modules.business.service.IBusTeamService;
|
|
import org.jeecg.modules.business.service.IBusTeamService;
|
|
@@ -99,6 +100,9 @@ public class CesRoomsController {
|
|
|
List<FloorBuildingRoomVo> otherInfos = bookingOrdersService.getRealtimeInfo(allRooms);
|
|
List<FloorBuildingRoomVo> otherInfos = bookingOrdersService.getRealtimeInfo(allRooms);
|
|
|
List<String> bookingOrderIds = new ArrayList<>();
|
|
List<String> bookingOrderIds = new ArrayList<>();
|
|
|
otherInfos.forEach(c->{
|
|
otherInfos.forEach(c->{
|
|
|
|
|
+ if(c.getLivingData().getLivingOrder() != null) {
|
|
|
|
|
+ bookingOrderIds.add(c.getLivingData().getLivingOrder().getBookingOrderId());
|
|
|
|
|
+ }
|
|
|
if(c.getBookingData().getBookingOrder() != null) {
|
|
if(c.getBookingData().getBookingOrder() != null) {
|
|
|
bookingOrderIds.add(c.getBookingData().getBookingOrder().getId());
|
|
bookingOrderIds.add(c.getBookingData().getBookingOrder().getId());
|
|
|
}
|
|
}
|
|
@@ -125,6 +129,13 @@ public class CesRoomsController {
|
|
|
opFindRoomVo.get().getBookingData().getBookingOrder().setIsTeam(true);
|
|
opFindRoomVo.get().getBookingData().getBookingOrder().setIsTeam(true);
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
+ if(opFindRoomVo.get().getLivingData().getLivingOrder() != null) {
|
|
|
|
|
+ BusRoomsLivingOrder livingOrder = opFindRoomVo.get().getLivingData().getLivingOrder();
|
|
|
|
|
+ Optional<BusTeam> opTeam = teamOrders.stream().filter(r->r.getBookingOrderId().equals(livingOrder.getBookingOrderId())).findFirst();
|
|
|
|
|
+ if(opTeam.isPresent()) {
|
|
|
|
|
+ opFindRoomVo.get().getLivingData().getLivingOrder().setIsTeam(true);
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
roomVo.setBookingData(opFindRoomVo.get().getBookingData());
|
|
roomVo.setBookingData(opFindRoomVo.get().getBookingData());
|
|
|
}
|
|
}
|
|
|
roomInfos.add(roomVo);
|
|
roomInfos.add(roomVo);
|