From 76b910950b5d1c8bf945f95bcde086ddddf5e309 Mon Sep 17 00:00:00 2001
From: dubin <bindu_bean@163.com>
Date: 星期五, 14 十一月 2025 10:17:21 +0800
Subject: [PATCH] #1

---
 src/main/java/com/zy/common/web/WcsController.java |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/src/main/java/com/zy/common/web/WcsController.java b/src/main/java/com/zy/common/web/WcsController.java
index b81d26b..df37d7b 100644
--- a/src/main/java/com/zy/common/web/WcsController.java
+++ b/src/main/java/com/zy/common/web/WcsController.java
@@ -107,9 +107,7 @@
         sourceStaNo.setLocType1(param.getLocType1());
         LocTypeDto locTypeDto = new LocTypeDto(sourceStaNo);
 
-        if (param.getBarcode().startsWith("4")){
-            locTypeDto.setLocType2((short) 4);
-        }else if (param.getBarcode().startsWith("5")){
+        if (param.getBarcode().startsWith("5")){
             locTypeDto.setLocType2((short) 5);
         }else if (param.getBarcode().startsWith("6")){
             locTypeDto.setLocType2((short) 6);
@@ -118,7 +116,7 @@
         }else if (param.getBarcode().startsWith("8")){
             locTypeDto.setLocType2((short) 8);
         }else {
-            throw new CoolException("鏉$爜瑙勫垯涓嶅瓨鍦�");
+            return R.error("鏉$爜瑙勫垯涓嶅瓨鍦�:"+param.getBarcode());
         }
 
         StartupDto dto = null;

--
Gitblit v1.9.1