package cn.com.ctop.kuaishou.modules.batch.mapper;

import cn.com.ctop.kuaishou.modules.batch.entity.KuaiShouGroupTarget;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 快手-定向信息
 *
 * @author: jeecg-boot
 * @date: 2019-12-17
 * @cersion: V1.0
 */
public interface KuaiShouGroupTargetMapper extends BaseMapper<KuaiShouGroupTarget> {

    void replaceBatch(@Param("targets") List<KuaiShouGroupTarget> targets);

    void deleteByUnitIds(@Param("unitIds") List<Long> unitIds);

    KuaiShouGroupTarget queryTargetInfoByunitId(@Param("accountId") Long accountId, @Param("unitId") Long unitId);
}
