From 37b28e4f6b8c865c1df06543f124fd1c1ba244d9 Mon Sep 17 00:00:00 2001 From: huangxiaoqiang <huangxiaoqiang@hnkhzn.com> Date: 星期一, 30 六月 2025 11:35:22 +0800 Subject: [PATCH] 优化错误处理和地址获取逻辑 --- CodeManagement/WMS/WIDESEA_WMSServer/WIDESEA_StorageBasicServices/Location/LocationInfoService.cs | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CodeManagement/WMS/WIDESEA_WMSServer/WIDESEA_StorageBasicServices/Location/LocationInfoService.cs b/CodeManagement/WMS/WIDESEA_WMSServer/WIDESEA_StorageBasicServices/Location/LocationInfoService.cs index b6e0f5c..abc8393 100644 --- a/CodeManagement/WMS/WIDESEA_WMSServer/WIDESEA_StorageBasicServices/Location/LocationInfoService.cs +++ b/CodeManagement/WMS/WIDESEA_WMSServer/WIDESEA_StorageBasicServices/Location/LocationInfoService.cs @@ -132,7 +132,7 @@ DtStockInfo stock = _stockInfoRepository.QueryFirst(x => x.LocationId == location.Id); if(stock == null) { - location.LocationStatus= (int)LocationEnum.Lock; + location.LocationStatus= (int)LocationEnum.Free; BaseDal.UpdateData(location); } else @@ -151,7 +151,7 @@ await AddStockInfoHtyAsync(stockInfo_Hty); - location.LocationStatus = (int)LocationEnum.Lock; + location.LocationStatus = (int)LocationEnum.Free; BaseDal.UpdateData(location); _locationStatusChangeRecordRepository.AddLocationStatusChangeRecord(location, LastStatus, (int)StatusChangeTypeEnum.ManualOperation, 0); -- Gitblit v1.9.3