|
|
@@ -873,6 +873,7 @@ public class BusRoomBookingOrdersServiceImpl extends ServiceImpl<BusRoomBookingO
|
|
|
SimpleDateFormat sdf = new SimpleDateFormat("yyyyMMddHHmmssSSS");
|
|
|
livingOrder.setLivingOrderNo("D"+sdf.format(System.currentTimeMillis()));
|
|
|
livingOrder.setArrivalTime(new Date());// todo 这个地方的入住开始时间应该怎么算
|
|
|
+ if(customers.size() > 0) livingOrder.setContactId(customers.get(0).getCustomerId());
|
|
|
roomsLivingOrderService.save(livingOrder);
|
|
|
CesRooms room = roomsService.getById(bkRoom.getRoomId());
|
|
|
if(room==null) throw new JeecgBootException("房间不存在");
|