From 5fc251a847ccc0540da8b112ed2bddba846455d8 Mon Sep 17 00:00:00 2001
From: pan <antony1029@163.com>
Date: 星期一, 17 十一月 2025 20:39:49 +0800
Subject: [PATCH] 提交

---
 项目代码/WMS无仓储版/WIDESEA_WMSServer/WIDESEA_BasicService/ESSApiService.cs |   16 +++++++++++++---
 1 files changed, 13 insertions(+), 3 deletions(-)

diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS\346\227\240\344\273\223\345\202\250\347\211\210/WIDESEA_WMSServer/WIDESEA_BasicService/ESSApiService.cs" "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS\346\227\240\344\273\223\345\202\250\347\211\210/WIDESEA_WMSServer/WIDESEA_BasicService/ESSApiService.cs"
index 2f3acff..8d1861a 100644
--- "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS\346\227\240\344\273\223\345\202\250\347\211\210/WIDESEA_WMSServer/WIDESEA_BasicService/ESSApiService.cs"
+++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS\346\227\240\344\273\223\345\202\250\347\211\210/WIDESEA_WMSServer/WIDESEA_BasicService/ESSApiService.cs"
@@ -26,18 +26,28 @@
         /// <summary>
         /// 瀹瑰櫒娴佸姩閫氱煡
         /// </summary>
-        public async Task MoveContainerAsync(MoveContainerRequest request)
+        public async Task<bool> MoveContainerAsync(MoveContainerRequest request)
         {
             try
             {
                 var url = "conveyor/moveContainer";
 
                 var result = await PostAsync<MoveContainerRequest, ApiResponse<string>>(url, request);
+                if (result != null && result.Code == 0)
+                {
+                    //{"code":0,"msg":"success","data":{"107":"TASK_ALREADY_EXIST"}}
+                    if (result.Data.Contains("TASK_ALREADY_EXIST"))
+                    {
+                        return false;
+                    }
+                    return true;
+                }
+                return false;
             }
             catch (Exception ex)
             {
                 _logger.LogInformation("瀹瑰櫒娴佸姩澶辫触:  " + ex.Message);
-               
+                return false;
             }
         }
 
@@ -66,7 +76,7 @@
                 return false;
             }
         }
-
+ 
 
 
         private async Task<TResponse> PostAsync<TRequest, TResponse>(string url, TRequest request)

--
Gitblit v1.9.3