|
|
@@ -15,6 +15,7 @@ import org.jeecg.modules.business.mapper.BusRoomBookingOrdersMapper;
|
|
|
import org.jeecg.modules.business.service.IBusBookingLayoutDayPriceService;
|
|
|
import org.jeecg.modules.business.service.IBusCustomerService;
|
|
|
import org.jeecg.modules.business.service.IBusRoomBookingOrdersService;
|
|
|
+import org.jeecg.modules.business.vo.BatchOrderEditVo;
|
|
|
import org.jeecg.modules.business.vo.BookingBatchRoomsVo;
|
|
|
import org.jeecg.modules.business.vo.BookingOrderEditVo;
|
|
|
import org.jeecg.modules.business.vo.ExtendBusBookingRoomsVo;
|
|
|
@@ -540,6 +541,23 @@ public class BusRoomBookingOrdersServiceImpl extends ServiceImpl<BusRoomBookingO
|
|
|
return true;
|
|
|
}
|
|
|
|
|
|
+ @Override
|
|
|
+ public BatchOrderEditVo batchOrderDetail(String batchId) {
|
|
|
+ BusBookingBatch batch = bookingBatchService.getById(batchId);
|
|
|
+ if(batch == null) throw new JeecgBootException("订单批次不存在");
|
|
|
+ BookingOrderEditVo orderVo = getBookingInfoById(batch.getBookingOrdersId(),null);
|
|
|
+ BatchOrderEditVo result = new BatchOrderEditVo();
|
|
|
+ List<BookingBatchRoomsVo> orderBatchVos = orderVo.getBatchRooms();
|
|
|
+ if(orderBatchVos==null||orderBatchVos.size() == 0
|
|
|
+ || orderBatchVos.stream().filter(s->s.getId().equals(batchId)).count()== 0
|
|
|
+ ) throw new JeecgBootException("批次关联订单异常,请联系管理员");
|
|
|
+ BookingBatchRoomsVo findBatchVo = orderBatchVos.stream().filter(s->s.getId().equals(batchId)).findAny().get();
|
|
|
+ result.setOrderInfo(findBatchVo);
|
|
|
+ result.setRoomIds(findBatchVo.getRoomIds());
|
|
|
+ result.setLayoutDayPrices(findBatchVo.getLayoutDayPrices());
|
|
|
+ return result;
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
private BusBookingBatch copyBatchToBase(BookingBatchRoomsDto data) {
|
|
|
BusBookingBatch batch = new BookingBatchRoomsDto();
|