From 2a32dfbf5fe3b484d1ef6849cd8e322faa70ce14 Mon Sep 17 00:00:00 2001 From: wankeda <Administrator@DESKTOP-HAU3ST3> Date: 星期六, 20 九月 2025 16:58:20 +0800 Subject: [PATCH] 入库流程 --- 项目代码/WCS/WIDESEAWCS_Server/WIDESEAWCS_TaskInfoService/TaskService.cs | 12 ++++++++---- 1 files changed, 8 insertions(+), 4 deletions(-) diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/WCS/WIDESEAWCS_Server/WIDESEAWCS_TaskInfoService/TaskService.cs" "b/\351\241\271\347\233\256\344\273\243\347\240\201/WCS/WIDESEAWCS_Server/WIDESEAWCS_TaskInfoService/TaskService.cs" index a6733d4..f7cdd93 100644 --- "a/\351\241\271\347\233\256\344\273\243\347\240\201/WCS/WIDESEAWCS_Server/WIDESEAWCS_TaskInfoService/TaskService.cs" +++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/WCS/WIDESEAWCS_Server/WIDESEAWCS_TaskInfoService/TaskService.cs" @@ -105,8 +105,8 @@ if (taskTypeGroup == TaskTypeGroup.InboundGroup) { task.Creater = "WMS"; - task.TaskState = (int)TaskInStatusEnum.InNew; - stationManger = stationMangers.FirstOrDefault(x => x.StationCode == item.NextAddress || x.StationDeviceCode == item.SourceAddress); + task.TaskState = (int)TaskStatusEnum.New.ObjToInt(); + stationManger = stationMangers.FirstOrDefault(x => x.StationCode == item.CurrentAddress || x.StationDeviceCode == item.SourceAddress); task.DeviceCode = stationManger.StationDeviceCode; } else @@ -137,12 +137,16 @@ } return content; } - + /// <summary> + /// 浠诲姟瀹屾垚鍙嶉WMS + /// </summary> + /// <param name="taskNum"></param> + /// <returns></returns> public WebResponseContent TaskCompleted(int taskNum) { try { - string address = AppSettings.Get("WMSApiAddress"); + string address = AppSettings.Get("FeedBackWMSTaskCompleted"); if (string.IsNullOrEmpty(address)) { return WebResponseContent.Instance.Error($"鏈壘鍒癢MSApi鍦板潃"); -- Gitblit v1.9.3