wanshenmean
2026-04-06 b1f5b17a608d3d9c06ce216c7e1effc5edcc7b74
Code/WMS/WIDESEA_WMSServer/WIDESEA_IRecordService/IRecordService.cs
@@ -1,16 +1,46 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using WIDESEA_Common.LocationEnum;
using WIDESEA_Common.StockEnum;
using WIDESEA_Core;
using WIDESEA_Model.Models;
namespace WIDESEA_IRecordService
{
    /// <summary>
    /// 记录服务聚合接口
    /// </summary>
    public interface IRecordService : IDependency
    {
        ILocationStatusChangeRecordService LocationStatusChangeRecordSetvice { get; }
        /// <summary>
        /// 货位状态变更记录服务
        /// </summary>
        ILocationStatusChangeRecordService LocationStatusChangeRecordService { get; }
        /// <summary>
        /// 库存数量变更记录服务
        /// </summary>
        IStockQuantityChangeRecordService StockQuantityChangeRecordService { get; }
        /// <summary>
        /// 新增货位状态变更记录
        /// </summary>
        Task<bool> AddLocationChangeRecordAsync(
            Dt_LocationInfo beforeLocation,
            Dt_LocationInfo afterLocation,
            LocationChangeType changeType,
            int? taskNum = null,
            string? orderNo = null,
            int? orderId = null,
            string? remark = null);
        /// <summary>
        /// 新增库存变更记录
        /// </summary>
        Task<bool> AddStockChangeRecordAsync(
            Dt_StockInfo? beforeStock,
            Dt_StockInfo? afterStock,
            StockChangeTypeEnum changeType,
            int? taskNum = null,
            string? orderNo = null,
            string? remark = null);
    }
}