package com.ruoyi.web.stock.mapper;

import com.ruoyi.web.stock.domain.WarehouseBase;
import com.ruoyi.web.stock.domain.vo.StockOptionVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 仓库基础设置 Mapper。
 */
public interface WarehouseBaseMapper {
    WarehouseBase selectWarehouseBaseById(Long id);

    List<WarehouseBase> selectWarehouseBaseList(WarehouseBase query);

    WarehouseBase selectWarehouseBaseByNo(@Param("warehouseNo") String warehouseNo, @Param("orgId") String orgId);

    int insertWarehouseBase(WarehouseBase entity);

    int updateWarehouseBase(WarehouseBase entity);

    int deleteWarehouseBaseById(Long id);

    List<StockOptionVo> selectWarehouseOptions(@Param("orgId") String orgId);
}
