package com.jwipc.spe.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.jwipc.spe.entity.SupAppraisePlan;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jwipc.spe.entity.SupAppraiseQuota;
import com.jwipc.spe.model.dto.ScoreReportDTO;
import com.jwipc.spe.model.po.SupAppraiseQuotaPO;
import com.jwipc.spe.model.query.ScoreReportQuery;
import com.jwipc.spe.model.query.SupAppraiseQuotaQuery;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 供应商考核计划 Mapper 接口
 * </p>
 *
 * @author zhangjie
 * @since 2024-03-11
 */
public interface SupAppraisePlanMapper extends BaseMapper<SupAppraisePlan> {
    List<ScoreReportDTO> findPageByQuery(@Param("query") ScoreReportQuery query);
    List<ScoreReportDTO> selectNeedWarnList(@Param("queries") List<ScoreReportQuery> queries);
    List<ScoreReportDTO> findPageByQuery(Page<ScoreReportDTO> dbPage, @Param("query") ScoreReportQuery query);

    List<SupAppraisePlan> selectPlanYearList();
}
