package com.hzs.ground.supplier.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.hzs.common.domain.ground.supplier.ThSupplierApply;
import com.hzs.ground.supplier.vo.ThSupplierApplyVO;

import java.util.List;

/**
 * 供应商申请 服务类
 *
 * @author hzs
 * @since 2024-03-21
 */
public interface IThSupplierApplyService extends IService<ThSupplierApply> {

    /**
     * @description: 供应商列表
     * @author: zhang jing
     * @date: 2024/3/22 11:31
     * @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:40
     * @param: [userId]
     * @return: java.lang.Integer
     **/
    Integer queryThSupplierApplyUserList(Long userId);

    /**
     * @description: 添加供应商申请
     * @author: zhang jing
     * @date: 2024/3/24 11:49
     * @param: [thSupplierApplyVO]
     * @return: boolean
     **/
    boolean saveThSupplierApply(ThSupplierApplyVO thSupplierApplyVO);

    /**
     * @description: 修改供应商申请
     * @author: zhang jing
     * @date: 2024/3/24 11:49
     * @param: [thSupplierApplyVO]
     * @return: boolean
     **/
    boolean updateThSupplierApply(ThSupplierApplyVO thSupplierApplyVO);

    /**
     * @description: 删除供应商申请
     * @author: zhang jing
     * @date: 2024/3/24 11:49
     * @param: [pkId]
     * @return: boolean
     **/
    boolean delThSupplierApply(Long pkId);

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

}
