
package com.tmerclub.cloud.supplier.mapper;


import com.tmerclub.cloud.supplier.dto.SupplierCompanyAuditingDTO;
import com.tmerclub.cloud.supplier.model.SupplierCompanyAuditing;
import com.tmerclub.cloud.supplier.vo.SupplierCompanyAuditingVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;


/**
 * @author chiley
 * @date 2022/9/13 14:42
 */

public interface SupplierCompanyAuditingMapper {

    /**
     * 根据信息id获取供应商工商审核信息
     *
     * @param supplierCompanyAuditingId 供应商工商审核信息id
     * @return 供应商工商审核信息
     */
    SupplierCompanyAuditing getById(@Param("supplierCompanyAuditingId") Long supplierCompanyAuditingId);

    /**
     * 新增供应商工商审核信息
     * @param supplierCompanyAuditing 供应商工商审核信息
     */
    void insert(@Param("supplierCompanyAuditing") SupplierCompanyAuditing supplierCompanyAuditing);

    /**
     * 更新供应商工商审核信息
     * @param supplierCompanyAuditing 供应商工商审核信息
     */
    void update(@Param("supplierCompanyAuditing") SupplierCompanyAuditing supplierCompanyAuditing);

    /**
     * 根据供应商工商信息id删除供应商工商信息
     * @param supplierCompanyAuditingId
     */
    void deleteById(@Param("supplierCompanyAuditingId") Long supplierCompanyAuditingId);

    /**
     * 根据供应商id获取最近一条工商审核信息
     * @param supplierId
     * @return
     */
    SupplierCompanyAuditingVO getLatestAuditingBySupplierId(@Param("supplierId") Long supplierId);

    /**
     * 获取待审核的工商信息
     *
     * @param supplierCompanyAuditingDTO 搜索参数
     * @return
     */
    List<SupplierCompanyAuditingVO> list(@Param("supplierCompanyAuditingDTO") SupplierCompanyAuditingDTO supplierCompanyAuditingDTO);


    /**
     * 获取需要审核驳回的工商申请
     * @return
     */
    List<SupplierCompanyAuditingVO> getNeedAuditList();
}
