From b044183d3f3eae7150371318a017160fcd67c715 Mon Sep 17 00:00:00 2001
From: wanshenmean <cathay_xy@163.com>
Date: 星期三, 08 四月 2026 18:09:28 +0800
Subject: [PATCH] Merge branch 'dev' to sync branches
---
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