123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115 |
- package com.caimei.modules.info.dao;
- import java.util.List;
- import com.caimei.modules.info.entity.InfoAd;
- import com.thinkgem.jeesite.common.persistence.CrudDao;
- import com.thinkgem.jeesite.common.persistence.annotation.MyBatisDao;
- import org.apache.ibatis.annotations.Param;
- import com.caimei.modules.info.entity.CmRelated;
- /**
- * 相关资源Mapper接口
- *
- * @author Kaick
- * @date 2023-08-02
- */
- @MyBatisDao
- public interface CmRelatedMapper extends CrudDao<CmRelated>
- {
- /**
- * 通过对象查询相关资源列表
- *
- * @param cmRelated 相关资源
- * @return 相关资源集合
- */
- public List<CmRelated> getCmRelatedList(CmRelated cmRelated);
- /**
- * 通过Id查询相关资源对象
- *
- * @param id 相关资源主键
- * @return 相关资源
- */
- public CmRelated getCmRelatedById(String id);
- /**
- * 通过对象查询相关资源对象
- *
- * @param cmRelated 相关资源
- * @return 相关资源
- */
- public CmRelated getByCmRelated(CmRelated cmRelated);
- /**
- * 通过对象查询相关资源Id
- *
- * @param cmRelated 相关资源
- * @return String
- */
- public String getById(CmRelated cmRelated);
- /**
- * 通过对象查询相关资源Ids
- *
- * @param cmRelated 相关资源
- * @return List<String>
- */
- public List<String> getByIds(CmRelated cmRelated);
- /**
- * 通过对象查询相关资源记录总数
- *
- * @param cmRelated 相关资源
- * @return 相关资源Integer
- */
- public int getCmRelatedCount(CmRelated cmRelated);
- /**
- * 新增相关资源
- *
- * @param cmRelated 相关资源
- * @return 结果
- */
- public int addCmRelated(CmRelated cmRelated);
- /**
- * 修改相关资源
- *
- * @param cmRelated 相关资源
- * @return 结果
- */
- public int updateCmRelated(CmRelated cmRelated);
- /**
- * 删除相关资源
- *
- * @param id 相关资源主键
- * @return 结果
- */
- public int delCmRelatedByAuthorId( @Param("type")String type,@Param("authorId")String authorId);
- /**
- * 删除相关资源
- *
- * @param id 相关资源主键
- * @return 结果
- */
- public int delCmRelatedById(String id);
- /**
- * 批量删除相关资源
- *
- * @param ids 需要删除的数据主键集合
- * @return 结果
- */
- public int delCmRelatedByIds(@Param("ids") String[] ids);
- /**
- * 修改批量删除相关资源
- *
- * @param ids 需要删除的数据主键集合
- * @return 结果
- */
- public int updateDelCmRelatedByIds(@Param("ids") String[] ids,@Param("delFlag") Integer delFlag);
- }
|