package com.yunfeiyun.agmp.fms.service;

import com.yunfeiyun.agmp.common.core.domain.AjaxResult;
import com.yunfeiyun.agmp.fms.domain.WmsSupplier;
import com.yunfeiyun.agmp.fms.domain.reqvo.WmsSupplierAddReqVo;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;


/**
 * 供应商Service接口
 * 
 * @author 杨晓辉
 * @date 2023-05-25
 */
public interface IWmsSupplierService 
{
    /**
     * 查询供应商
     * 
     * @param supplierId 供应商主键
     * @return 供应商
     */
    public WmsSupplier selectWmsSupplierBySupplierId(String supplierId);

    /**
     * 查询供应商列表
     * 
     * @param wmsSupplier 供应商
     * @return 供应商集合
     */
    public List<WmsSupplier> selectWmsSupplierList(WmsSupplier wmsSupplier);

    /**
     * 新增供应商
     * 
     * @param wmsSupplierAddReqVo 供应商
     * @return 结果
     */
    public int insertWmsSupplier(WmsSupplierAddReqVo wmsSupplierAddReqVo);

    /**
     * 修改供应商
     * 
     * @param wmsSupplierAddReqVo 供应商
     * @return 结果
     */
    public int updateWmsSupplier(WmsSupplierAddReqVo  wmsSupplierAddReqVo);

    /**
     * 批量删除供应商
     * 
     * @param supplierIds 需要删除的供应商主键集合
     * @return 结果
     */
    public int deleteWmsSupplierBySupplierIds(String[] supplierIds);

    /**
     * 删除供应商信息
     * 
     * @param supplierId 供应商主键
     * @return 结果
     */
    public int deleteWmsSupplierBySupplierId(String supplierId);

    public AjaxResult upload(MultipartFile file);
}
