package com.cyksj.mapper.corp;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cyksj.model.entity.CorpCustomerAcquisitionLink;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @author chan
 * @date 2023/11/28 14:21
 */
public interface CorpCustomerAcquisitionLinkMapper extends BaseMapper<CorpCustomerAcquisitionLink> {

    @Select("select cl.* from corp_customer_acquisition_link cl, corp_customer_acquisition_link_popularize clp where cl.id = clp.customer_acquistion_link_id and clp.id = #{linkId}")
    CorpCustomerAcquisitionLink getByLinkPopularizeId(Long linkId);

	List<CorpCustomerAcquisitionLink> selectActiveCodeByFollowIndx(@Param("list") List<Integer> updateFollowIndx);

	List<String> selectAcLinkCorpTemplateCouponIdsByTagIds(@Param("tagIds") List<Long> tagIds);
}
