/** * @Description 根据条件获取实体 * * @param entity * @return MeetingRoom * @author davidwan */ public MeetingRoom find(MeetingRoom entity) { return meetingRoomDao.selectEntity(entity); }
/** * @Description 根据Id获取实体 * * @param id * @return MeetingRoom * @author davidwan */ public MeetingRoom findById(Integer id) { MeetingRoom entity = new MeetingRoom(); entity.setId(id); return meetingRoomDao.selectEntity(entity); }