From 25c71bc8a6015bf4885374e75576f3dc75d1424e Mon Sep 17 00:00:00 2001
From: yangpeixing <yangpeixing@hnkhzn.com>
Date: 星期四, 04 十二月 2025 14:39:13 +0800
Subject: [PATCH] Merge branch 'master' of http://115.159.85.185:8098/r/MingHeZhiNeng/DuiDuoJiLiKu
---
项目代码/WMS/WIDESEA_WMSServer/WIDESEA_StorageBasicServices/Location/LocationInfoService.cs | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSServer/WIDESEA_StorageBasicServices/Location/LocationInfoService.cs" "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSServer/WIDESEA_StorageBasicServices/Location/LocationInfoService.cs"
index c9a1b3d..9818ca4 100644
--- "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSServer/WIDESEA_StorageBasicServices/Location/LocationInfoService.cs"
+++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSServer/WIDESEA_StorageBasicServices/Location/LocationInfoService.cs"
@@ -68,12 +68,12 @@
}
#region 鍒濆鍖栧簱浣�
- public async Task<WebResponseContent> initializeLocation(int locationID)
+ public async Task<WebResponseContent> initializeLocation(string locationCode)
{
WebResponseContent content = new WebResponseContent();
try
{
- DtLocationInfo? location = BaseDal.QueryData(x => x.Id == locationID).FirstOrDefault();
+ DtLocationInfo? location = BaseDal.QueryData(x => x.LocationCode == locationCode).FirstOrDefault();
int LastStatus = location.LocationStatus;
if (location == null)
{
@@ -83,6 +83,7 @@
if(stock == null)
{
location.LocationStatus= (int)LocationEnum.Free;
+ _locationStatusChangeRecordRepository.AddLocationStatusChangeRecord(location, LastStatus, (int)StatusChangeTypeEnum.ManualOperation, 0);
BaseDal.UpdateData(location);
}
else
--
Gitblit v1.9.3