PostCollectionsSystemMapper.java 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  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. // 获取套系藏品 数量
  61. Integer getCopiesById(Long id);
  62. // 查询该套系名 数量
  63. int selectPostCollectionsSystemByName(PostCollectionsSystem postCollectionsSystem);
  64. //查询该套系状态status
  65. String selectPostCollectionsSystemByStatus(Long systemId);
  66. //通过ids 查询套系
  67. List<PostCollectionsSystem> selectPostCollectionsSystemByIds(List<Long> ids);
  68. int updateBatchById(List<PostCollectionsSystem> postCollectionsSystemList);
  69. }