|
@@ -203,6 +203,7 @@ public class BusRoomBookingOrdersServiceImpl extends ServiceImpl<BusRoomBookingO
|
|
|
SimpleDateFormat sdfPc = new SimpleDateFormat("yyyyMMddHHmmssSSS");
|
|
SimpleDateFormat sdfPc = new SimpleDateFormat("yyyyMMddHHmmssSSS");
|
|
|
c.setBatchNo("YDPC"+sdfPc.format(System.currentTimeMillis()));
|
|
c.setBatchNo("YDPC"+sdfPc.format(System.currentTimeMillis()));
|
|
|
c.setBookingOrdersId(item.getOrderInfo().getId());
|
|
c.setBookingOrdersId(item.getOrderInfo().getId());
|
|
|
|
|
+ setBatchOrderInfo(item.getOrderInfo(),c);
|
|
|
BusBookingBatch batchItem = copyBatchToBase(c);
|
|
BusBookingBatch batchItem = copyBatchToBase(c);
|
|
|
bookingBatchService.save(batchItem);
|
|
bookingBatchService.save(batchItem);
|
|
|
List<BusBookingRooms> batchBookingRooms = new ArrayList<>();
|
|
List<BusBookingRooms> batchBookingRooms = new ArrayList<>();
|
|
@@ -458,6 +459,7 @@ public class BusRoomBookingOrdersServiceImpl extends ServiceImpl<BusRoomBookingO
|
|
|
if(c.getDayCount() == null || c.getDayCount() <= 0)
|
|
if(c.getDayCount() == null || c.getDayCount() <= 0)
|
|
|
throw new JeecgBootException("入住天数不能小于0");
|
|
throw new JeecgBootException("入住天数不能小于0");
|
|
|
}
|
|
}
|
|
|
|
|
+ setBatchOrderInfoForEdit(item.getOrderInfo(),c);
|
|
|
if(c.getRoomIds() == null || c.getRoomIds().size() == 0)
|
|
if(c.getRoomIds() == null || c.getRoomIds().size() == 0)
|
|
|
throw new JeecgBootException("请选择批次房间");
|
|
throw new JeecgBootException("请选择批次房间");
|
|
|
SimpleDateFormat sdfPc = new SimpleDateFormat("yyyyMMddHHmmssSSS");
|
|
SimpleDateFormat sdfPc = new SimpleDateFormat("yyyyMMddHHmmssSSS");
|
|
@@ -546,6 +548,21 @@ public class BusRoomBookingOrdersServiceImpl extends ServiceImpl<BusRoomBookingO
|
|
|
batch.setArrivalTime(data.getArrivalTime());
|
|
batch.setArrivalTime(data.getArrivalTime());
|
|
|
batch.setDueOutTime(data.getDueOutTime());
|
|
batch.setDueOutTime(data.getDueOutTime());
|
|
|
batch.setDayCount(data.getDayCount());
|
|
batch.setDayCount(data.getDayCount());
|
|
|
|
|
+ batch.setBreakfastNum(data.getBreakfastNum());
|
|
|
|
|
+ batch.setLunchNum(data.getLunchNum());
|
|
|
|
|
+ batch.setDinnerNum(data.getDinnerNum());
|
|
|
|
|
+ batch.setCustomerType(data.getCustomerType());
|
|
|
|
|
+ batch.setVipCustomerId(data.getVipCustomerId());
|
|
|
|
|
+ batch.setContractTeamId(data.getContractTeamId());
|
|
|
|
|
+ batch.setContractTeamProtocolId(data.getContractTeamProtocolId());
|
|
|
|
|
+ batch.setRoomPriceSlnId(data.getRoomPriceSlnId());
|
|
|
|
|
+ batch.setAgencyName(data.getAgencyName());
|
|
|
|
|
+ batch.setContactId(data.getContactId());
|
|
|
|
|
+ batch.setWarrantType(data.getWarrantType());
|
|
|
|
|
+ batch.setWarranter(data.getWarranter());
|
|
|
|
|
+ batch.setOuterOrdersNo(data.getOuterOrdersNo());
|
|
|
|
|
+ batch.setRemark(data.getRemark());
|
|
|
|
|
+ batch.setHourRoomId(data.getHourRoomId());
|
|
|
return batch;
|
|
return batch;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -559,4 +576,39 @@ public class BusRoomBookingOrdersServiceImpl extends ServiceImpl<BusRoomBookingO
|
|
|
batch.setDayCount(data.getDayCount());
|
|
batch.setDayCount(data.getDayCount());
|
|
|
return batch;
|
|
return batch;
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+ void setBatchOrderInfo(BusRoomBookingOrders order, BookingBatchRoomsDto batchDto){
|
|
|
|
|
+ batchDto.setBreakfastNum(order.getBreakfastNum());
|
|
|
|
|
+ batchDto.setLunchNum(order.getLunchNum());
|
|
|
|
|
+ batchDto.setDinnerNum(order.getDinnerNum());
|
|
|
|
|
+ batchDto.setCustomerType(order.getCustomerType());
|
|
|
|
|
+ batchDto.setVipCustomerId(order.getVipCustomerId());
|
|
|
|
|
+ batchDto.setContractTeamId(order.getContractTeamId());
|
|
|
|
|
+ batchDto.setContractTeamProtocolId(order.getContractTeamProtocolId());
|
|
|
|
|
+ batchDto.setRoomPriceSlnId(order.getRoomPriceSlnId());
|
|
|
|
|
+ batchDto.setAgencyName(order.getAgencyName());
|
|
|
|
|
+ batchDto.setContactId(order.getContactId());
|
|
|
|
|
+ batchDto.setWarrantType(order.getWarrantType());
|
|
|
|
|
+ batchDto.setWarranter(order.getWarranter());
|
|
|
|
|
+ batchDto.setOuterOrdersNo(order.getOuterOrdersNo());
|
|
|
|
|
+ batchDto.setRemark(order.getRemark());
|
|
|
|
|
+ batchDto.setHourRoomId(order.getHourRoomId());
|
|
|
|
|
+ }
|
|
|
|
|
+ void setBatchOrderInfoForEdit(BusRoomBookingOrders order, BookingBatchRoomsVo batchDto){
|
|
|
|
|
+ batchDto.setBreakfastNum(order.getBreakfastNum());
|
|
|
|
|
+ batchDto.setLunchNum(order.getLunchNum());
|
|
|
|
|
+ batchDto.setDinnerNum(order.getDinnerNum());
|
|
|
|
|
+ batchDto.setCustomerType(order.getCustomerType());
|
|
|
|
|
+ batchDto.setVipCustomerId(order.getVipCustomerId());
|
|
|
|
|
+ batchDto.setContractTeamId(order.getContractTeamId());
|
|
|
|
|
+ batchDto.setContractTeamProtocolId(order.getContractTeamProtocolId());
|
|
|
|
|
+ batchDto.setRoomPriceSlnId(order.getRoomPriceSlnId());
|
|
|
|
|
+ batchDto.setAgencyName(order.getAgencyName());
|
|
|
|
|
+ batchDto.setContactId(order.getContactId());
|
|
|
|
|
+ batchDto.setWarrantType(order.getWarrantType());
|
|
|
|
|
+ batchDto.setWarranter(order.getWarranter());
|
|
|
|
|
+ batchDto.setOuterOrdersNo(order.getOuterOrdersNo());
|
|
|
|
|
+ batchDto.setRemark(order.getRemark());
|
|
|
|
|
+ batchDto.setHourRoomId(order.getHourRoomId());
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|