HotelDictDao.java 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. package com.happy.dao;
  2. import com.happy.Model.HotelDict;
  3. import java.util.List;
  4. public interface HotelDictDao {
  5. /**
  6. * 描述:新增
  7. * @param hotelDict
  8. * @return
  9. */
  10. int insertHotelDict(HotelDict hotelDict);
  11. /**
  12. * 描述:修改
  13. * @param hotelDict
  14. * @return
  15. */
  16. int updateHotelDict(HotelDict hotelDict);
  17. /**
  18. * 描述:删除
  19. * @param id
  20. * @return
  21. */
  22. int delHotelDict(int id);
  23. /**
  24. * 描述:根据Id查询详细
  25. * @param id
  26. * @return
  27. */
  28. HotelDict getById(int id);
  29. /**
  30. * 描述:分页查询
  31. * @param sqlx
  32. * @param page
  33. * @param rows
  34. * @return
  35. */
  36. List<HotelDict> queryPage(String sqlx, int page, int rows);
  37. /**
  38. * 描述:获取总条数
  39. * @param sqlx
  40. * @return
  41. */
  42. int queryTotal(String sqlx);
  43. /**
  44. * 描述:查询列表
  45. * @param sqlx
  46. * @return
  47. */
  48. List<HotelDict> queryList(String sqlx);
  49. /**
  50. * 描述:根据集合查询有效ids
  51. * @param ids
  52. * @return
  53. */
  54. String setConfig(String ids);
  55. }