From 03013bae1636497e8ea1946eb44831d8794fa055 Mon Sep 17 00:00:00 2001
From: tjx <t2856754968@163.com>
Date: 星期二, 18 十一月 2025 08:44:31 +0800
Subject: [PATCH] 11

---
 StandardPda/MES.Service/service/Warehouse/XbRackingTaskSyxtLogManager.cs |   35 +++++++++++++++++++++++++++++++++++
 1 files changed, 35 insertions(+), 0 deletions(-)

diff --git a/StandardPda/MES.Service/service/Warehouse/XbRackingTaskSyxtLogManager.cs b/StandardPda/MES.Service/service/Warehouse/XbRackingTaskSyxtLogManager.cs
index eba52a4..bf1e394 100644
--- a/StandardPda/MES.Service/service/Warehouse/XbRackingTaskSyxtLogManager.cs
+++ b/StandardPda/MES.Service/service/Warehouse/XbRackingTaskSyxtLogManager.cs
@@ -13,6 +13,21 @@
     /// <returns>缁熶竴鍝嶅簲缁撴灉</returns>
     public RackingTaskResponse TaskCompleteReport(TaskCompleteReportDto dto)
     {
+        if (dto == null)
+        {
+            return RackingTaskResponse.Fail("鍙傛暟涓嶈兘涓虹┖");
+        }
+
+        if (string.IsNullOrWhiteSpace(dto.TaskCode))
+        {
+            return RackingTaskResponse.Fail("浠诲姟鍙蜂笉鑳戒负绌�");
+        }
+
+        if (string.IsNullOrWhiteSpace(dto.PalletCode))
+        {
+            return RackingTaskResponse.Fail("鎵樼洏缂栫爜涓嶈兘涓虹┖");
+        }
+
         try
         {
             // 姝ラ1锛氶獙璇佷换鍔″彿鏄惁瀛樺湪
@@ -93,6 +108,26 @@
     /// <returns>缁熶竴鍝嶅簲缁撴灉</returns>
     public RackingTaskResponse TaskErrorReport(TaskErrorReportDto dto)
     {
+        if (dto == null)
+        {
+            return RackingTaskResponse.Fail("鍙傛暟涓嶈兘涓虹┖");
+        }
+
+        if (string.IsNullOrWhiteSpace(dto.TaskCode))
+        {
+            return RackingTaskResponse.Fail("浠诲姟鍙蜂笉鑳戒负绌�");
+        }
+
+        if (string.IsNullOrWhiteSpace(dto.PalletCode))
+        {
+            return RackingTaskResponse.Fail("鎵樼洏缂栫爜涓嶈兘涓虹┖");
+        }
+
+        if (string.IsNullOrWhiteSpace(dto.ErrorMessage))
+        {
+            return RackingTaskResponse.Fail("閿欒淇℃伅涓嶈兘涓虹┖");
+        }
+
         try
         {
             // 姝ラ1锛氶獙璇佷换鍔″彿鏄惁瀛樺湪

--
Gitblit v1.9.3