public String reserve() { logger.info("reserve start!"); logger.info(rooms.getRoom_id()); rooms = roomsService.load(Rooms.class, rooms.getRoom_id()); System.out.println(rooms.getRoomNum() + "----------==========00000000"); this.folder = "reserve"; this.toJsp = "reserveRooms"; return SUCCESS; }
public String reserveUpdate() { logger.info("reserveUpdate start!"); rooms = roomsService.load(Rooms.class, rooms.getRoom_id()); roomState = roomStateService.load(RoomState.class, 2); rooms.setRoomState(roomState); logger.info("Exception start!!!"); roomsService.update(rooms); this.roomScheduleService.add(roomSchedule); this.folder = "reserve"; this.toJsp = "reserveRooms"; return SUCCESS; }