From c05003c73bbe527478bccc55efe25c19068b6f50 Mon Sep 17 00:00:00 2001 From: Huangxiaoqiang-03 <1247017146@qq.com> Date: 星期三, 23 十月 2024 17:30:42 +0800 Subject: [PATCH] 1 --- 代码管理/WMS/WIDESEA_WMSServer/WIDESEA_TaskInfoService/PartialTaskService_Inbound.cs | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git "a/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSServer/WIDESEA_TaskInfoService/PartialTaskService_Inbound.cs" "b/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSServer/WIDESEA_TaskInfoService/PartialTaskService_Inbound.cs" index 51ee5d1..7f4f0ee 100644 --- "a/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSServer/WIDESEA_TaskInfoService/PartialTaskService_Inbound.cs" +++ "b/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSServer/WIDESEA_TaskInfoService/PartialTaskService_Inbound.cs" @@ -8,6 +8,7 @@ using WIDESEA_Core; using WIDESEA_Model.Models; using WIDESEA_Core.Helper; +using Microsoft.Extensions.Logging; namespace WIDESEA_TaskInfoService { @@ -100,6 +101,7 @@ try { Dt_LocationInfo? locationInfo = _basicService.LocationInfoService.AssignLocation(stationCode, taskType); + //Dt_LocationInfo dt_LocationInfo = null; if (locationInfo != null) { Dt_Task task = new() @@ -121,6 +123,8 @@ if (isUpdateStock) { locationInfo.LocationStatus = LocationStatusEnum.Lock.ObjToInt(); + _basicService.LocationInfoService.UpdateLocationLock(locationInfo,task.TaskNum); + if (stockInfo != null && stockInfo.Details != null && stockInfo.Details.Count > 0) { orderNo = stockInfo.Details.FirstOrDefault()?.OrderNo ?? ""; @@ -134,6 +138,7 @@ } } _basicService.LocationInfoService.Repository.UpdateData(locationInfo); + //_basicService.LocationInfoService.Repository.UpdateData(dt_LocationInfo); _recordService.LocationStatusChangeRecordSetvice.AddLocationStatusChangeRecord(locationInfo, beforeStatus, StockChangeType.Inbound.ObjToInt(), orderNo, task.TaskNum); return content = WebResponseContent.Instance.OK(); -- Gitblit v1.9.3