コード例 #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);
 }