package com.moka.gdtauto.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.moka.gdtauto.entity.AdAutoConf;

/**
 * <p>
 * 广告自动划配置表 Mapper 接口
 * </p>
 *
 * @author mokamvp
 * @since 2026-03-12
 */
public interface AdAutoConfMapper extends BaseMapper<AdAutoConf> {

    /**
     * 插入或更新配置
     * 使用 INSERT INTO ... ON DUPLICATE KEY UPDATE
     * 唯一键: job_number + ad_group_id
     */
    boolean saveOrUpdate(AdAutoConf adAutoConf);
}
