예제 #1
0
  /**
   * 分页查找RecommendRoom
   *
   * @param cond 查询条件
   * @return RecommendRoom列表
   */
  public List findRecommendRoomPage(RecommendRoomCond cond) throws RuntimeException {
    int recordCount = recommendRoomMapper.findRecommendRoomCount(cond);

    cond.recordCount = recordCount;

    return recommendRoomMapper.findRecommendRoomPage(cond);
  }
예제 #2
0
 /** 根据CustomerId进行删除 */
 @Override
 public void deleteRecommendRoomByCustomerId(int id) throws Exception {
   recommendRoomMapper.deleteRecommendRoomByCustomerId(id);
 }
예제 #3
0
 /** 根据CustomerId进行查找 */
 @Override
 public List<RecommendRoom> findRecommendRoomByCustomerId(int id) throws Exception {
   return recommendRoomMapper.findRecommendRoomByCustomerId(id);
 }
예제 #4
0
 /**
  * 修改RecommendRoom
  *
  * @param recommendRoom
  */
 @Override
 public void updateRecommendRoom(RecommendRoom recommendRoom) throws RuntimeException {
   recommendRoomMapper.updateRecommendRoom(recommendRoom);
 }
예제 #5
0
 /**
  * 查找一条RecommendRoom
  *
  * @return RecommendRoom
  * @param id 主键id
  */
 @Override
 public RecommendRoom findRecommendRoomById(int id) throws RuntimeException {
   return recommendRoomMapper.findRecommendRoomById(id);
 }
예제 #6
0
 /**
  * 新增RecommendRoom
  *
  * @param recommendRoom
  */
 public void addRecommendRoom(RecommendRoom recommendRoom) throws RuntimeException {
   recommendRoomMapper.addRecommendRoom(recommendRoom);
 }
예제 #7
0
 /**
  * 删除一条RecommendRoom
  *
  * @param id
  */
 public void deleteRecommendRoom(int id) throws RuntimeException {
   recommendRoomMapper.deleteRecommendRoom(id);
 }