From 9b77acb859f0866f3a854d2a2842072b2fe9cca8 Mon Sep 17 00:00:00 2001
From: wanshenmean <cathay_xy@163.com>
Date: 星期二, 31 三月 2026 16:43:27 +0800
Subject: [PATCH] feat(wms): 完善库存三维看板与库存/货位变更追踪
---
Code/WMS/WIDESEA_WMSServer/WIDESEA_RecordService/RecordService.cs | 49 ++++++++++++++++++++++++++++++++++++++++++++++---
1 files changed, 46 insertions(+), 3 deletions(-)
diff --git a/Code/WMS/WIDESEA_WMSServer/WIDESEA_RecordService/RecordService.cs b/Code/WMS/WIDESEA_WMSServer/WIDESEA_RecordService/RecordService.cs
index 7a8c6b8..ecdd199 100644
--- a/Code/WMS/WIDESEA_WMSServer/WIDESEA_RecordService/RecordService.cs
+++ b/Code/WMS/WIDESEA_WMSServer/WIDESEA_RecordService/RecordService.cs
@@ -1,4 +1,7 @@
-锘縰sing WIDESEA_IRecordService;
+using WIDESEA_Common.LocationEnum;
+using WIDESEA_Common.StockEnum;
+using WIDESEA_IRecordService;
+using WIDESEA_Model.Models;
namespace WIDESEA_RecordService
{
@@ -20,8 +23,6 @@
/// <summary>
/// 鏋勯�犲嚱鏁�
/// </summary>
- /// <param name="locationStatusChangeRecordService">璐т綅鐘舵�佸彉鏇磋褰曟湇鍔�</param>
- /// <param name="stockQuantityChangeRecordService">搴撳瓨鏁伴噺鍙樻洿璁板綍鏈嶅姟</param>
public RecordService(
ILocationStatusChangeRecordService locationStatusChangeRecordService,
IStockQuantityChangeRecordService stockQuantityChangeRecordService)
@@ -29,5 +30,47 @@
LocationStatusChangeRecordService = locationStatusChangeRecordService;
StockQuantityChangeRecordService = stockQuantityChangeRecordService;
}
+
+ /// <summary>
+ /// 鏂板璐т綅鐘舵�佸彉鏇磋褰�
+ /// </summary>
+ public Task<bool> AddLocationChangeRecordAsync(
+ Dt_LocationInfo beforeLocation,
+ Dt_LocationInfo afterLocation,
+ LocationChangeType changeType,
+ int? taskNum = null,
+ string? orderNo = null,
+ int? orderId = null,
+ string? remark = null)
+ {
+ return LocationStatusChangeRecordService.AddChangeRecordAsync(
+ beforeLocation,
+ afterLocation,
+ changeType,
+ taskNum,
+ orderNo,
+ orderId,
+ remark);
+ }
+
+ /// <summary>
+ /// 鏂板搴撳瓨鍙樻洿璁板綍
+ /// </summary>
+ public Task<bool> AddStockChangeRecordAsync(
+ Dt_StockInfo? beforeStock,
+ Dt_StockInfo? afterStock,
+ StockChangeTypeEnum changeType,
+ int? taskNum = null,
+ string? orderNo = null,
+ string? remark = null)
+ {
+ return StockQuantityChangeRecordService.AddChangeRecordAsync(
+ beforeStock,
+ afterStock,
+ changeType,
+ taskNum,
+ orderNo,
+ remark);
+ }
}
}
--
Gitblit v1.9.3