package com.ruoyi.business.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ruoyi.business.domain.TBaseStorageAreaLocation;

import java.util.List;

/**
 * 库位资料Service接口
 * 
 * @author wms
 * @date 2022-12-24
 */
public interface ITBaseStorageAreaLocationService extends IService<TBaseStorageAreaLocation>
{
    /**
     * 库位预警
     */
    public String outOfRemainingWarning();

    /**
     * 库位爆仓预警
     */
    public int outOfStockWarning();

    /**
     * 查询库位资料
     * 
     * @param locationId 库位资料主键
     * @return 库位资料
     */
    public TBaseStorageAreaLocation selectTBaseStorageAreaLocationByLocationId(String locationId);

    /**
     * 查询库位资料列表
     * 
     * @param tBaseStorageAreaLocation 库位资料
     * @return 库位资料集合
     */
    public List<TBaseStorageAreaLocation> selectTBaseStorageAreaLocationList(TBaseStorageAreaLocation tBaseStorageAreaLocation);

    /**
     * 新增库位资料
     * 
     * @param tBaseStorageAreaLocation 库位资料
     * @return 结果
     */
    public int insertTBaseStorageAreaLocation(TBaseStorageAreaLocation tBaseStorageAreaLocation);

    /**
     * 修改库位资料
     * 
     * @param tBaseStorageAreaLocation 库位资料
     * @return 结果
     */
    public int updateTBaseStorageAreaLocation(TBaseStorageAreaLocation tBaseStorageAreaLocation);

    /**
     * 批量删除库位资料
     * 
     * @param locationIds 需要删除的库位资料主键集合
     * @return 结果
     */
    public int deleteTBaseStorageAreaLocationByLocationIds(String locationIds);

    /**
     * 删除库位资料信息
     * 
     * @param locationId 库位资料主键
     * @return 结果
     */
    public int deleteTBaseStorageAreaLocationByLocationId(String locationId);
}
