package cn.com.ctop.toutiao.modules.material.service.impl;

import cn.com.ctop.toutiao.modules.material.entity.ByteDanceAdvertisePlan;
import cn.com.ctop.toutiao.modules.material.mapper.ByteDanceAdvertisePlanMapper;
import cn.com.ctop.toutiao.modules.material.service.IByteDanceAdvertisePlanService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

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

/**
 * @Description: 今日头条广告计划信息
 * @Author: jeecg-boot
 * @Date: 2019-07-22
 * @Version: V1.0
 */
@Slf4j
@Service
public class ByteDanceAdvertisePlanServiceImpl extends ServiceImpl<ByteDanceAdvertisePlanMapper, ByteDanceAdvertisePlan> implements IByteDanceAdvertisePlanService {
    @Autowired
    private ByteDanceAdvertisePlanMapper byteDanceAdvertisePlanMapper;

    /**
     * 查询需要预警的广告计划名称
     *
     * @param accountId
     * @param maxBid
     * @return
     */
    @Override
    public List<String> selectWarningGroup(Long accountId, BigDecimal maxBid) {
        return byteDanceAdvertisePlanMapper.selectWarningGroup(accountId, maxBid);

    }

    @Override
    public List<String> selectWarningCpaBid(Long accountId, BigDecimal maxCapBid) {
        return byteDanceAdvertisePlanMapper.selectWarningCpaBid(accountId, maxCapBid);
    }


}
