package com.kxs.store.biz.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.kxs.store.api.model.KxsWarehouseStock;

/**
 * 客小爽仓库库存统计表(KxsWarehouseStock)表服务接口
 *
 * @author 系统
 * @since 2024-01-08 09:46:02
 */
public interface KxsWarehouseStockService extends IService<KxsWarehouseStock> {

    /**
     * 更新出库 库存
     *
     * @param warehouseId 仓库 ID
     * @param count       计数
     * @return {@link KxsWarehouseStock}
     */
    KxsWarehouseStock updateDeliveryStock(Integer warehouseId, int count);

    /**
     * 更新入库 库存
     *
     * @param warehouseId 仓库 ID
     * @param count       计数
     * @return {@link KxsWarehouseStock}
     */
    KxsWarehouseStock updateAddStock(Integer warehouseId, int count);
}

