package com.wms.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.wms.entity.table.Stock;
import com.wms.entity.table.StockUpdateRecord;

import java.math.BigDecimal;

/**
 * 库存更新记录接口
 */
public interface IStockUpdateRecordService extends IService<StockUpdateRecord> {
    /**
     * 添加库存更新记录
     * @param stockBefore 原始库存---可为null
     * @param stockAfter 锌库存---可为null
     * @param reason 更新原因
     * @param opUser 操作用户
     * @return 添加结果
     */
    boolean addStockUpdateRecord(Stock stockBefore, Stock stockAfter, String reason, String opUser, BigDecimal quantityBefore);
}
