package com.njcn.gather.plan.mapper;

import com.github.yulichang.base.MPJBaseMapper;
import com.njcn.gather.plan.pojo.po.AdPlan;
import com.njcn.gather.report.pojo.po.PqReport;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author caozehui
 * @date 2024-12-09
 */
public interface AdPlanMapper extends MPJBaseMapper<AdPlan> {

    /**
     * 根据名称和版本获取报告id
     *
     * @param name
     * @param version
     * @return
     */
    String getReportIdByNameAndVersion(@Param("name") String name, @Param("version") String version);

    /**
     * 根据id获取报告模板
     *
     * @param id
     * @return
     */
    PqReport getPqReportById(String id);
}
