package com.ruoyi.web.stock.service;

import com.ruoyi.web.stock.domain.WarehouseInventory;
import com.ruoyi.web.stock.domain.vo.StockOptionVo;

import java.util.List;

/**
 * 仓库库存 Service。
 */
public interface IWarehouseInventoryService {
    WarehouseInventory selectById(Long id);

    List<WarehouseInventory> selectList(WarehouseInventory query);

    /**
     * 查询当前企业下指定仓库的全部库存。
     */
    List<WarehouseInventory> listByWarehouseNo(String orgId, String warehouseNo);

    int insert(WarehouseInventory entity);

    int update(WarehouseInventory entity);

    int removeById(Long id);

    List<StockOptionVo> listMaterialOptions(String orgId);

    boolean checkBatchNoUnique(WarehouseInventory entity, String orgId);
}
