From 9de6c7c6d835ba5161d64114d154bfc7676244a1 Mon Sep 17 00:00:00 2001
From: 陈勇 <竞男@ASUNA>
Date: 星期一, 06 四月 2026 12:44:43 +0800
Subject: [PATCH] 同步

---
 项目代码/WMS/WMSServer/WIDESEA_StoragIntegrationServices/WCS/Partial/TZPassZZ.cs |   13 +++++++------
 1 files changed, 7 insertions(+), 6 deletions(-)

diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WMSServer/WIDESEA_StoragIntegrationServices/WCS/Partial/TZPassZZ.cs" "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WMSServer/WIDESEA_StoragIntegrationServices/WCS/Partial/TZPassZZ.cs"
index 5231589..d8f6922 100644
--- "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WMSServer/WIDESEA_StoragIntegrationServices/WCS/Partial/TZPassZZ.cs"
+++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WMSServer/WIDESEA_StoragIntegrationServices/WCS/Partial/TZPassZZ.cs"
@@ -17,7 +17,7 @@
             WebResponseContent content = new WebResponseContent();
             try
             {
-                var carInfo = _carBodyInfoRepository.QueryFirst(x => x.RFID == json.Rfid);  ///*x.PalletCode == json.PalletCode ||*/
+                var carInfo = _carBodyInfoRepository.QueryFirst(x => x.RFID == json.PVI);  ///*x.PalletCode == json.PalletCode ||*/
                 if (carInfo != null) throw new Exception($"娑傝鐩撮�氭�昏澶辫触:PVI{json.Rfid}宸插瓨鍦ㄣ��");
 
                 WebResponseContent responseContent = _mesService.issuedCharacter(json.PVI, json.Position, json.PalletCode);
@@ -30,26 +30,27 @@
                 //json.PVI = json.PVI.Substring(0, 9);
                 json.Position = "RB001";
                 WebResponseContent content1 = _mesService.PassPoint(json);
-                if (!content1.Status) throw new Exception($"杩囩偣澶辫触锛歿content1.msg}");
+                if (!content1.Status) throw new Exception($"BDC02杩囩偣澶辫触锛歿content1.msg}");
 
                 WebResponseContent webResponse = _mesService.bindWorkOrder("EL01RB", json.PVI);
-                if (!responseContent.Status) throw new Exception($"缁戝畾澶辫触锛歿webResponse.msg}");
+                if (!webResponse.Status) throw new Exception($"鐒婃秱缁戝畾澶辫触锛歿webResponse.msg}");
 
                 //杩囩偣淇℃伅 -BDC02
                 json.Position = "EL01RB";
                 WebResponseContent BDC02 = _mesService.PassPoint(json);
-                if (!BDC02.Status) throw new Exception($"杩囩偣澶辫触锛歿BDC02.msg}");
+                if (!BDC02.Status) throw new Exception($"BDC02杩囩偣澶辫触锛歿BDC02.msg}");
 
                 ////杩囩偣淇℃伅 -BDC03
                 json.Position = "EL01RB01";
                 WebResponseContent BDC03 = _mesService.PassPoint(json);
-                if (!BDC03.Status) throw new Exception($"杩囩偣澶辫触锛歿BDC03.msg}");
+                if (!BDC03.Status) throw new Exception($"BDC03杩囩偣澶辫触锛歿BDC03.msg}");
 
                 content.OK();
             }
             catch (Exception ex)
             {
-                content.Error(ex.Message);
+                throw new Exception($"娑傝鎻愬崌鏈哄紓甯�:{ex.Message}");
+                //content.Error(ex.Message);
             }
             return content;
         }

--
Gitblit v1.9.3