From a709afe7ba494808d923c3746c8edf1a3575977a Mon Sep 17 00:00:00 2001
From: wankeda <Administrator@DESKTOP-HAU3ST3>
Date: 星期四, 30 十月 2025 09:58:34 +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