package com.hzs.system.base.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.hzs.common.domain.system.base.BdStorehouse;
import com.hzs.system.base.vo.BdStorehouseVO;

import java.util.List;
import java.util.Set;

/**
 * <p>
 * 仓库服务类
 * </p>
 *
 * @author hzs
 * @since 2022-08-02
 */
public interface IBdStorehouseService extends IService<BdStorehouse> {

    /**
     * 查询仓库列表信息
     *
     * @param bdStorehouse
     * @return
     */
    List<BdStorehouseVO> selectBdStorehouseList(BdStorehouseVO bdStorehouse);

    /**
     * 查询单条仓库信息
     *
     * @param bdStorehouse
     * @return
     */
    BdStorehouse getBdStorehouse(BdStorehouse bdStorehouse);

    /**
     * 校验仓库信息是否重复
     * @param bdStorehouse
     * @return
     */
    BdStorehouse checkBdStorehouse(BdStorehouse bdStorehouse);

    /*
     * @description:根据主键查询仓库
     * @author: sui q
     * @date: 2023/11/20 17:56
     * @param: null null
     **/
    List<BdStorehouse> queryStorehouseByIds(Set<Integer> storehouseIds, Integer pkCountry, Integer pkCorp);

    /**
     * 新增仓库信息
     *
     * @param bdStorehouse
     * @return
     */
    boolean intBdStorehouse(BdStorehouseVO bdStorehouse);

    /**
     * 修改保存信息
     *
     * @param bdStorehouse
     * @return
     */
    boolean updateBdStorehouse(BdStorehouseVO bdStorehouse);

    boolean delBdStorehouse(BdStorehouseVO bdStorehouse);

}
