From f3fea817e20a192b2831102a8356045f3d56aa73 Mon Sep 17 00:00:00 2001
From: wu <731351411@qq.com>
Date: 星期三, 24 一月 2024 13:32:24 +0800
Subject: [PATCH] 增加json文件

---
 springboot-vue3/src/main/java/com/example/springboot/component/Plchome.java |   58 +++++++++++++++++++++++++++++-----------------------------
 1 files changed, 29 insertions(+), 29 deletions(-)

diff --git a/springboot-vue3/src/main/java/com/example/springboot/component/Plchome.java b/springboot-vue3/src/main/java/com/example/springboot/component/Plchome.java
index ba8ef60..fce0526 100644
--- a/springboot-vue3/src/main/java/com/example/springboot/component/Plchome.java
+++ b/springboot-vue3/src/main/java/com/example/springboot/component/Plchome.java
@@ -124,36 +124,36 @@
             //
 
             // 閾濇绾夸氦浜�
-            try {
-                if (CurrentFrame != null) {
-                    spianService.outmesid(CurrentFrame.getBarCode(), "DB17.0");
-                }
+            // try {
+            //     if (CurrentFrame != null) {
+            //         spianService.outmesid(CurrentFrame.getBarCode(), "DB17.0");
+            //     }
 
-                List<Short> framerequests = S7control.getinstance().ReadWord("閾濇id璇锋眰瀛楀湴鍧�", 1);
-                for (Short framerequest : framerequests) {
-                    if (framerequest == 1) {
-                        // 閾濇id
-                        String franmeno = spianService.queGlassid("DB17.10", 14).toString();
-                        String position;
-                        try {
-                            position = dbserve.SelectPositionByFrameBarcode(franmeno);
-                        } catch (SQLException e) {
-                            // TODO Auto-generated catch block
-                            position = "0";
-                            e.printStackTrace();
-                        }
-                        Short send;
-                        if (position == "0") {
-                            send = 0;
-                        } else {
-                            send = 1;
-                        }
-                        S7control.getinstance().WriteWord("閾濇缈昏浆鍙戦�佸湴鍧�", (short) send);
-                    }
-                }
-            } catch (Exception e) {
-                // TODO: handle exception
-            }
+            //     List<Short> framerequests = S7control.getinstance().ReadWord("閾濇id璇锋眰瀛楀湴鍧�", 1);
+            //     for (Short framerequest : framerequests) {
+            //         if (framerequest == 1) {
+            //             // 閾濇id
+            //             String franmeno = spianService.queGlassid("DB17.10", 14).toString();
+            //             String position;
+            //             try {
+            //                 position = dbserve.SelectPositionByFrameBarcode(franmeno);
+            //             } catch (SQLException e) {
+            //                 // TODO Auto-generated catch block
+            //                 position = "0";
+            //                 e.printStackTrace();
+            //             }
+            //             Short send;
+            //             if (position == "0") {
+            //                 send = 0;
+            //             } else {
+            //                 send = 1;
+            //             }
+            //             S7control.getinstance().WriteWord("閾濇缈昏浆鍙戦�佸湴鍧�", (short) send);
+            //         }
+            //     }
+            // } catch (Exception e) {
+            //     // TODO: handle exception
+            // }
 
             if (S7control.getinstance().CheckConnected() == true) {
                 // 鑾峰彇褰撳墠鎵爜鏂瑰紡

--
Gitblit v1.8.0