package com.zd.airbottle.mapper;

import java.util.List;
import com.zd.airbottle.domain.QpSupplierSyntheticalAudit;
import org.apache.ibatis.annotations.Param;

/**
 * 供应商综合审核Mapper接口
 * 
 * @author zd
 * @date 2022-05-10
 */
public interface QpSupplierSyntheticalAuditMapper 
{
    /**
     * 查询供应商综合审核
     * 
     * @param id 供应商综合审核主键
     * @return 供应商综合审核
     */
    QpSupplierSyntheticalAudit selectQpSupplierSyntheticalAuditById(Long id);

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

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

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

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

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

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

    /**
     * 根据供应商ID管理端获取供应商综合审核详细信息
     *
     * @param syntheticIds 审核综合ID
     * @param auditType 审核类型
     * @return List<QpSupplierSyntheticalAudit>
     */
    List<QpSupplierSyntheticalAudit> getBySyntheticIds(@Param("syntheticIds") List<Long> syntheticIds,@Param("auditType") Integer auditType);

    /**
     * 根据供应商综合ID获取供应商待审核数据
     * @return QpSupplierSyntheticalAudit
     */
    QpSupplierSyntheticalAudit getWaitCheck(QpSupplierSyntheticalAudit qpSupplierSyntheticalAudit);
}
