package com.zd.airbottle.service;

import com.zd.airbottle.domain.QpSupplierSyntheticalAudit;
import com.zd.airbottle.domain.vo.QpSupplierSyntheticalAuditVo;

import java.util.List;

/**
 * 供应商综合审核Service接口
 *
 * @author zd
 * @date 2022-05-10
 */
public interface IQpSupplierSyntheticalAuditService {

    /**
     * 查询供应商综合审核列表
     *
     * @param qpSupplierSyntheticalAudit 供应商综合审核
     * @return 供应商综合审核集合
     */
    List<QpSupplierSyntheticalAudit> selectQpSupplierSyntheticalAuditList(QpSupplierSyntheticalAudit qpSupplierSyntheticalAudit);

    /**
     * 新增供应商综合审核
     *
     * @param qpSupplierSyntheticalAudit 供应商综合审核
     * @return 结果
     */
    int insertQpSupplierSyntheticalAudit(QpSupplierSyntheticalAudit qpSupplierSyntheticalAudit);

    void addSyntheticalAudit(Long syntheticalId, Integer auditType, String createBy);

    /**
     * 修改供应商综合审核
     *
     * @param qpSupplierSyntheticalAudit 供应商综合审核
     * @return 结果
     */
    int updateQpSupplierSyntheticalAudit(QpSupplierSyntheticalAudit qpSupplierSyntheticalAudit);

    /**
     * 批量删除供应商综合审核
     *
     * @param ids 需要删除的供应商综合审核主键集合
     * @return 结果
     */
    int deleteQpSupplierSyntheticalAuditByIds(Long[] ids);

    /**
     * 删除供应商综合审核信息
     *
     * @param id 供应商综合审核主键
     * @return 结果
     */
    int deleteQpSupplierSyntheticalAuditById(Long id);

    /**
     * 根据供应商综合ID查询审核信息
     *
     * @param syntheticalId 供应商综合ID
     * @param auditType     审核类型
     * @return 返回值
     */
    QpSupplierSyntheticalAudit getQpSupplierSyntheticalAuditBySyntheticalId(Long syntheticalId, int auditType);

    List<QpSupplierSyntheticalAuditVo> getListVo(List<QpSupplierSyntheticalAudit> list, Integer auditType);

    /**
     * 根据供应商ID管理端获取供应商综合审核详细信息
     *
     * @param syntheticId 审核综合ID
     * @return List<QpSupplierSyntheticalAuditVo>
     */
    List<QpSupplierSyntheticalAuditVo> getAuditInfo(Long syntheticId);
}
