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