From 83743fe4641fcfad9effc2b6104c8dedefcbdcb5 Mon Sep 17 00:00:00 2001
From: wanshenmean <cathay_xy@163.com>
Date: 星期三, 08 四月 2026 00:57:54 +0800
Subject: [PATCH] Merge branch 'dev'

---
 Code/WMS/WIDESEA_WMSServer/WIDESEA_RecordService/RecordService.cs |   70 +++++++++++++++++++++++++++++++----
 1 files changed, 62 insertions(+), 8 deletions(-)

diff --git a/Code/WMS/WIDESEA_WMSServer/WIDESEA_RecordService/RecordService.cs b/Code/WMS/WIDESEA_WMSServer/WIDESEA_RecordService/RecordService.cs
index 5b98765..ecdd199 100644
--- a/Code/WMS/WIDESEA_WMSServer/WIDESEA_RecordService/RecordService.cs
+++ b/Code/WMS/WIDESEA_WMSServer/WIDESEA_RecordService/RecordService.cs
@@ -1,22 +1,76 @@
-锘縰sing 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_IRecordService;
+using WIDESEA_Model.Models;
 
 namespace WIDESEA_RecordService
 {
+    /// <summary>
+    /// 璁板綍鏈嶅姟鑱氬悎瀹炵幇绫�
+    /// </summary>
     public class RecordService : IRecordService
     {
-        public ILocationStatusChangeRecordService LocationStatusChangeRecordSetvice { get; }
+        /// <summary>
+        /// 璐т綅鐘舵�佸彉鏇磋褰曟湇鍔�
+        /// </summary>
+        public ILocationStatusChangeRecordService LocationStatusChangeRecordService { get; }
 
+        /// <summary>
+        /// 搴撳瓨鏁伴噺鍙樻洿璁板綍鏈嶅姟
+        /// </summary>
         public IStockQuantityChangeRecordService StockQuantityChangeRecordService { get; }
 
-        public RecordService(ILocationStatusChangeRecordService locationStatusChangeRecordSetvice, IStockQuantityChangeRecordService stockQuantityChangeRecordService)
+        /// <summary>
+        /// 鏋勯�犲嚱鏁�
+        /// </summary>
+        public RecordService(
+            ILocationStatusChangeRecordService locationStatusChangeRecordService,
+            IStockQuantityChangeRecordService stockQuantityChangeRecordService)
         {
-            LocationStatusChangeRecordSetvice = locationStatusChangeRecordSetvice;
+            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