package com.qmth.sop.business.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.qmth.sop.business.bean.report.QualityAnalyseReportBean;
import com.qmth.sop.business.bean.report.QualityAnalyseReportViewBean;
import com.qmth.sop.business.entity.TBService;
import com.qmth.sop.common.enums.InfluenceDegreeEnum;
import com.qmth.sop.common.enums.QualityProblemReasonEnum;

import java.util.List;
import java.util.Map;

/**
 * @Description: 质量监控分析报表service
 * @Param:
 * @return:
 * @Author: wangliang
 * @Date: 2024/9/18
 */
public interface QualityAnalyseReportService extends IService<TBService> {

    /**
     * 大区质量问题统计
     *
     * @param serviceId
     * @return
     */
    List<QualityAnalyseReportBean> areaQualityReport(Long serviceId);

    /**
     * 人力商质量问题统计
     *
     * @param serviceId
     * @return
     */
    List<QualityAnalyseReportBean> humanSupplierQualityReport(Long serviceId);

    /**
     * 质量问题原因分类统计
     *
     * @param serviceId
     * @return
     */
    List<QualityAnalyseReportBean> reasonQualityReport(Long serviceId);

    /**
     * 报表详情列表
     *
     * @param iPage
     * @param serviceId
     * @param areaManagerId
     * @param supplierId
     * @param reason
     * @param customName
     * @param influenceDegree
     * @return
     */
    IPage<QualityAnalyseReportViewBean> viewList(IPage<Map> iPage, Long serviceId, Long areaManagerId, Long supplierId,
            QualityProblemReasonEnum reason, String customName, InfluenceDegreeEnum influenceDegree);

    /**
     * 报表详情导出
     *
     * @param serviceId
     * @param areaManagerId
     * @param supplierId
     * @param reason
     * @param customName
     * @param influenceDegree
     */
    void viewListExport(Long serviceId, Long areaManagerId, Long supplierId, QualityProblemReasonEnum reason,
            String customName, InfluenceDegreeEnum influenceDegree);
}
