From dbae31a7a7cd59048ada9b51fe8faff545324c59 Mon Sep 17 00:00:00 2001
From: zjj <3272660260@qq.com>
Date: 星期五, 15 三月 2024 16:02:53 +0800
Subject: [PATCH] #

---
 src/main/java/com/zy/asrs/service/impl/OpenServiceImpl.java |   32 ++++++++++++++++++++++++++------
 1 files changed, 26 insertions(+), 6 deletions(-)

diff --git a/src/main/java/com/zy/asrs/service/impl/OpenServiceImpl.java b/src/main/java/com/zy/asrs/service/impl/OpenServiceImpl.java
index 5ce4875..2b344d8 100644
--- a/src/main/java/com/zy/asrs/service/impl/OpenServiceImpl.java
+++ b/src/main/java/com/zy/asrs/service/impl/OpenServiceImpl.java
@@ -62,12 +62,12 @@
     @Override
     public R taskCreate(taskCreateParam param) {
         //绂佺敤鍫嗗灈鏈哄悗涓嶅彲涓嬪彂浠诲姟
-        BasCrnp basCrnp = basCrnpService.selectOne(new EntityWrapper<BasCrnp>().eq("crn_no", param.getCrn()));
-        if ((param.getIoType() == 3 || param.getIoType() == 1 ) && basCrnp.getInEnable().equals("N")){
-            throw new CoolException("鐢熸垚浠诲姟澶辫触锛屽爢鍨涙満涓嶅彲鐢�");
-        } else if (param.getIoType() == 2 && basCrnp.getOutEnable().equals("N")) {
-            throw new CoolException("鐢熸垚浠诲姟澶辫触锛屽爢鍨涙満涓嶅彲鐢�");
-        }
+//        BasCrnp basCrnp = basCrnpService.selectOne(new EntityWrapper<BasCrnp>().eq("crn_no", param.getCrn()));
+//        if ((param.getIoType() == 3 || param.getIoType() == 1 ) && basCrnp.getInEnable().equals("N")){
+//            throw new CoolException("鐢熸垚浠诲姟澶辫触锛屽爢鍨涙満涓嶅彲鐢�");
+//        } else if (param.getIoType() == 2 && basCrnp.getOutEnable().equals("N")) {
+//            throw new CoolException("鐢熸垚浠诲姟澶辫触锛屽爢鍨涙満涓嶅彲鐢�");
+//        }
         //绂佺敤搴撲綅鍚庝笉鍙笅鍙戝嚭搴撲换鍔�
         if (param.getIoType() == 2){
             String wcsLocNo = Utils.getWcsLocNo(param.getStartPoint());
@@ -293,6 +293,16 @@
                     if (Cools.isEmpty( map.get(inSta.getStaNo()))){
                         continue;
                     }
+                    BasCrnp crnp = basCrnpService.selectOne(new EntityWrapper<BasCrnp>().eq("crn_no", map.get(inSta.getStaNo())));
+                    if (Cools.isEmpty(crnp)){
+                        continue;
+                    }
+                    if (crnp.getInEnable().equals("N")){
+                        continue;
+                    }
+                    if (crnp.getCrnSts()!=3){
+                        continue;
+                    }
                     list.add( map.get(inSta.getStaNo()));
                 }
             }
@@ -329,6 +339,16 @@
                     if (Cools.isEmpty( map.get(inSta.getStaNo()))){
                         continue;
                     }
+                    BasCrnp crnp = basCrnpService.selectOne(new EntityWrapper<BasCrnp>().eq("crn_no", map.get(inSta.getStaNo())));
+                    if (Cools.isEmpty(crnp)){
+                        continue;
+                    }
+                    if (crnp.getInEnable().equals("N")){
+                        continue;
+                    }
+                    if (crnp.getCrnSts()!=3){
+                        continue;
+                    }
                     list.add( map.get(inSta.getStaNo()));
                 }
             }

--
Gitblit v1.9.1