package com.jwipc.spe.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.jwipc.spe.entity.SupAppraisePlanSupplier;
import com.baomidou.mybatisplus.extension.service.IService;
import com.jwipc.spe.model.po.AppraiseSupplierInfoPO;
import com.jwipc.spe.model.po.PlanSupplierCalPO;
import com.jwipc.spe.model.po.RectifiedSupplierPO;
import com.jwipc.spe.model.query.AppraiseSupplierQuery;

import java.util.List;

/**
 * <p>
 * 供应商绩效考核计划与供应商关系表 服务类
 * </p>
 *
 * @author zhangjie
 * @since 2024-03-11
 */
public interface ISupAppraisePlanSupplierService extends IService<SupAppraisePlanSupplier> {

    Integer findExtisFlag(Integer year, Integer quarter, Integer month, Long supplierId, String companyCode, Long id);

    List<PlanSupplierCalPO> findForCalculate(Long id);

    PlanSupplierCalPO findForCalculate(Long planId, Long supplierId);

    /**
     * 查询需要整改的供应商信息，cd等级的
     * @param planId 考核计划主键
     * @return
     */
    List<RectifiedSupplierPO> findRectifiedSupplier(Long planId);

    List<SupAppraisePlanSupplier> findForQuery(AppraiseSupplierQuery query);

    List<AppraiseSupplierInfoPO> getSupplierAppraisePlan(Page<Object> page, Long supplierId,int status);
}
