/** * 分页查找RecommendRoom * * @param cond 查询条件 * @return RecommendRoom列表 */ public List findRecommendRoomPage(RecommendRoomCond cond) throws RuntimeException { int recordCount = recommendRoomMapper.findRecommendRoomCount(cond); cond.recordCount = recordCount; return recommendRoomMapper.findRecommendRoomPage(cond); }
/** 根据CustomerId进行删除 */ @Override public void deleteRecommendRoomByCustomerId(int id) throws Exception { recommendRoomMapper.deleteRecommendRoomByCustomerId(id); }
/** 根据CustomerId进行查找 */ @Override public List<RecommendRoom> findRecommendRoomByCustomerId(int id) throws Exception { return recommendRoomMapper.findRecommendRoomByCustomerId(id); }
/** * 修改RecommendRoom * * @param recommendRoom */ @Override public void updateRecommendRoom(RecommendRoom recommendRoom) throws RuntimeException { recommendRoomMapper.updateRecommendRoom(recommendRoom); }
/** * 查找一条RecommendRoom * * @return RecommendRoom * @param id 主键id */ @Override public RecommendRoom findRecommendRoomById(int id) throws RuntimeException { return recommendRoomMapper.findRecommendRoomById(id); }
/** * 新增RecommendRoom * * @param recommendRoom */ public void addRecommendRoom(RecommendRoom recommendRoom) throws RuntimeException { recommendRoomMapper.addRecommendRoom(recommendRoom); }
/** * 删除一条RecommendRoom * * @param id */ public void deleteRecommendRoom(int id) throws RuntimeException { recommendRoomMapper.deleteRecommendRoom(id); }