package com.xxl.job.executor.batch.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xxl.job.executor.batch.entity.KuaiShouGroup;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

/**
 * @Description: 广告组信息
 * @Author: jeecg-boot
 * @Date: 2019-07-23
 * @Version: V1.0
 */
public interface KuaiShouGroupMapper extends BaseMapper<KuaiShouGroup> {
    void replaceBatch(@Param(value = "groups") List<KuaiShouGroup> groups);

    List<String> selectWarningGroup(@Param("accountId") Long accountId, @Param("maxBid") Long maxBid);

    List<String> selectWarningCpaBid(@Param("accountId") Long accountId, @Param("maxBid") BigDecimal maxDeepCapBid);

    List<KuaiShouGroup> queryByMap(Map<String, Object> map);
}
