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 { /** * 通过对象查询相关资源列表 * * @param cmRelated 相关资源 * @return 相关资源集合 */ public List 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 */ public List 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); }