package ctop.bytedance.ad.advertise.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import ctop.bytedance.ad.advertise.entity.ByteDanceCreativeWordPackage;
import ctop.bytedance.ad.advertise.entity.ByteDanceGeneralCopywriter;

import java.util.List;
import java.util.Map;

/**
 * 通用文案库
 * @author jeecg-boot
 * 2021-05-28
 * @version V1.0
 */
public interface ByteDanceGeneralCopywriterMapper extends BaseMapper<ByteDanceGeneralCopywriter> {
    List<Map<String,Object>> selectGeneralCopywriterReport(List<String> accountIds, String keyWord, Integer status, String startTime, String endTime);

    ByteDanceCreativeWordPackage selectCreativeWordPackageByName(String name);

    List<ByteDanceGeneralCopywriter> getRandThree(@Param(value = "accountId") Long accountId);
    List<ByteDanceGeneralCopywriter> getRandTen(@Param(value = "accountId") Long accountId);

    List<ByteDanceGeneralCopywriter> selectAllDataByTextCopywriter(@Param(value = "textCopywriter") String textCopywriter);
}
