CmRelatedMapper.java 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. package com.caimei.modules.info.dao;
  2. import java.util.List;
  3. import com.caimei.modules.info.entity.InfoAd;
  4. import com.thinkgem.jeesite.common.persistence.CrudDao;
  5. import com.thinkgem.jeesite.common.persistence.annotation.MyBatisDao;
  6. import org.apache.ibatis.annotations.Param;
  7. import com.caimei.modules.info.entity.CmRelated;
  8. /**
  9. * 相关资源Mapper接口
  10. *
  11. * @author Kaick
  12. * @date 2023-08-02
  13. */
  14. @MyBatisDao
  15. public interface CmRelatedMapper extends CrudDao<CmRelated>
  16. {
  17. /**
  18. * 通过对象查询相关资源列表
  19. *
  20. * @param cmRelated 相关资源
  21. * @return 相关资源集合
  22. */
  23. public List<CmRelated> getCmRelatedList(CmRelated cmRelated);
  24. /**
  25. * 通过Id查询相关资源对象
  26. *
  27. * @param id 相关资源主键
  28. * @return 相关资源
  29. */
  30. public CmRelated getCmRelatedById(String id);
  31. /**
  32. * 通过对象查询相关资源对象
  33. *
  34. * @param cmRelated 相关资源
  35. * @return 相关资源
  36. */
  37. public CmRelated getByCmRelated(CmRelated cmRelated);
  38. /**
  39. * 通过对象查询相关资源Id
  40. *
  41. * @param cmRelated 相关资源
  42. * @return String
  43. */
  44. public String getById(CmRelated cmRelated);
  45. /**
  46. * 通过对象查询相关资源Ids
  47. *
  48. * @param cmRelated 相关资源
  49. * @return List<String>
  50. */
  51. public List<String> getByIds(CmRelated cmRelated);
  52. /**
  53. * 通过对象查询相关资源记录总数
  54. *
  55. * @param cmRelated 相关资源
  56. * @return 相关资源Integer
  57. */
  58. public int getCmRelatedCount(CmRelated cmRelated);
  59. /**
  60. * 新增相关资源
  61. *
  62. * @param cmRelated 相关资源
  63. * @return 结果
  64. */
  65. public int addCmRelated(CmRelated cmRelated);
  66. /**
  67. * 修改相关资源
  68. *
  69. * @param cmRelated 相关资源
  70. * @return 结果
  71. */
  72. public int updateCmRelated(CmRelated cmRelated);
  73. /**
  74. * 删除相关资源
  75. *
  76. * @param id 相关资源主键
  77. * @return 结果
  78. */
  79. public int delCmRelatedByAuthorId( @Param("type")String type,@Param("authorId")String authorId);
  80. /**
  81. * 删除相关资源
  82. *
  83. * @param id 相关资源主键
  84. * @return 结果
  85. */
  86. public int delCmRelatedById(String id);
  87. /**
  88. * 批量删除相关资源
  89. *
  90. * @param ids 需要删除的数据主键集合
  91. * @return 结果
  92. */
  93. public int delCmRelatedByIds(@Param("ids") String[] ids);
  94. /**
  95. * 修改批量删除相关资源
  96. *
  97. * @param ids 需要删除的数据主键集合
  98. * @return 结果
  99. */
  100. public int updateDelCmRelatedByIds(@Param("ids") String[] ids,@Param("delFlag") Integer delFlag);
  101. }