PostCollectionsSystemMapper.java 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. package com.ruoyi.system.mapper;
  2. import java.util.Date;
  3. import java.util.List;
  4. import com.ruoyi.system.domain.PostCollectionsSystem;
  5. import org.apache.ibatis.annotations.Param;
  6. /**
  7. * 藏品套系Mapper接口
  8. *
  9. * @author ruoyi
  10. * @date 2023-02-15
  11. */
  12. public interface PostCollectionsSystemMapper
  13. {
  14. /**
  15. * 查询藏品套系
  16. *
  17. * @param id 藏品套系主键
  18. * @return 藏品套系
  19. */
  20. public PostCollectionsSystem selectPostCollectionsSystemById(Long id);
  21. /**
  22. * 查询藏品套系列表
  23. *
  24. * @param postCollectionsSystem 藏品套系
  25. * @return 藏品套系集合
  26. */
  27. public List<PostCollectionsSystem> selectPostCollectionsSystemList(PostCollectionsSystem postCollectionsSystem);
  28. /**
  29. * 新增藏品套系
  30. *
  31. * @param postCollectionsSystem 藏品套系
  32. * @return 结果
  33. */
  34. public int insertPostCollectionsSystem(PostCollectionsSystem postCollectionsSystem);
  35. /**
  36. * 修改藏品套系
  37. *
  38. * @param postCollectionsSystem 藏品套系
  39. * @return 结果
  40. */
  41. public int updatePostCollectionsSystem(PostCollectionsSystem postCollectionsSystem);
  42. /**
  43. * 删除藏品套系
  44. *
  45. * @param id 藏品套系主键
  46. * @return 结果
  47. */
  48. public int deletePostCollectionsSystemById(Long id);
  49. /**
  50. * 批量删除藏品套系
  51. *
  52. * @param ids 需要删除的数据主键集合
  53. * @return 结果
  54. */
  55. public int deletePostCollectionsSystemByIds(Long[] ids);
  56. //套系搜索功能
  57. List<PostCollectionsSystem> selectPostListByTitleOrTime(@Param("title") String title,
  58. @Param("timeLeft") Date timeLeft,
  59. @Param("timeRight") Date timeRight);
  60. Integer getCopiesById(Long id);
  61. // 查询该套系名 数量
  62. int selectPostCollectionsSystemByName(PostCollectionsSystem postCollectionsSystem);
  63. }