package com.hzs.system.base.service;


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

import java.util.Collection;
import java.util.List;

/**
 * <p>
 * 仓库地区中间表 服务类
 * </p>
 *
 * @author hzs
 * @since 2023-05-05
 */
public interface IBdStorehouseAreaMiddleService extends IService<BdStorehouseAreaMiddle> {

    /**
     * @description: 查询地区绑定仓库列表
     * @author: zhang jing
     * @date: 2023/5/5 20:09
     * @param: [storehouseAreaMiddleVO]
     * @return: java.util.List<com.hzs.system.base.vo.BdStorehouseAreaMiddleVO>
     **/
    List<BdStorehouseAreaMiddleVO> getBdStorehouseAreaMiddleList(BdStorehouseAreaMiddleVO storehouseAreaMiddleVO);

    /**
     * @description: 新增地区仓库
     * @author: zhang jing
     * @date: 2023/5/5 20:28
     * @param: [storehouseAreaMiddleVO]
     * @return: boolean
     **/
    boolean intStoArMiddle(BdStorehouseAreaMiddleVO storehouseAreaMiddleVO);

    /**
     * @description: 修改地区仓库
     * @author: zhang jing
     * @date: 2023/5/5 20:28
     * @param: [storehouseAreaMiddleVO]
     * @return: boolean
     **/
    boolean upStoArMiddle(BdStorehouseAreaMiddleVO storehouseAreaMiddleVO);

    /*
     * @description: 根据省查询对应的发货仓库
     * @author: sui q
     * @date: 2023/5/8 14:22
     * @param: null null
     **/
    BdStorehouse queryBdStorehouseByProvince(Integer province, Integer type);

    /**
     * 批量查询省对应仓库列表
     *
     * @param provinceList 省列表
     * @return
     */
    List<BdStorehouse> queryStorehouseListByProvince(Collection<Integer> provinceList);

}
