package com.hzs.ground.supplier.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hzs.common.core.enums.EApprovalBusiness;
import com.hzs.common.domain.ground.supplier.ThSupplierApply;
import com.hzs.ground.supplier.vo.ThSupplierApplyVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 供应商申请申请 Mapper 接口
 * </p>
 *
 * @author hzs
 * @since 2024-03-21
 */
public interface ThSupplierApplyMapper extends BaseMapper<ThSupplierApply> {

    /**
     * @description: 供应商申请列表
     * @author: zhang jing
     * @date: 2024/3/22 11:30
     * @param: [thSupplierApplyVO]
     * @return: java.util.List<com.hzs.ground.supplier.vo.ThSupplierApplyVO>
     **/
    List<ThSupplierApplyVO> queryThSupplierApplyList(ThSupplierApplyVO thSupplierApplyVO);

    /**
     * @description: 查询登录管理员是否为供应商
     * @author: zhang jing
     * @date: 2024/4/19 16:41
     * @param: [userId]
     * @return: java.lang.Integer
     **/
    Integer queryThSupplierApplyUserList(@Param("useId") Long userId);



    /**
     * @description: 供应商申请审批查看
     * @author: zhang jing
     * @date: 2024/3/25 14:45
     * @param: [businessCode, pkCountry]
     * @return: java.util.List<com.hzs.ground.supplier.vo.ThSupplierApplyVO>
     **/
    List<ThSupplierApplyVO> queryThSupplierApplyByCode(@Param("businessCode") String businessCode,
                                                       @Param("pkCountry") Integer pkCountry);
}
