From 3eb2e3a7f3f40f48c8a44bf32e7b0baeee065921 Mon Sep 17 00:00:00 2001
From: ZengTao <2773468879@qq.com>
Date: 星期三, 20 十二月 2023 13:34:34 +0800
Subject: [PATCH] 添加终止任务功能

---
 springboot-vue3/src/main/java/com/example/springboot/service/North_Glass_Buffer1Service.java |   27 ++++++++++++++-------------
 1 files changed, 14 insertions(+), 13 deletions(-)

diff --git a/springboot-vue3/src/main/java/com/example/springboot/service/North_Glass_Buffer1Service.java b/springboot-vue3/src/main/java/com/example/springboot/service/North_Glass_Buffer1Service.java
index 0a351d4..c75e8a8 100644
--- a/springboot-vue3/src/main/java/com/example/springboot/service/North_Glass_Buffer1Service.java
+++ b/springboot-vue3/src/main/java/com/example/springboot/service/North_Glass_Buffer1Service.java
@@ -17,7 +17,7 @@
     @Autowired
     private JdbcConnections jdbcConnections;
 
-    //鑾峰彇鐜荤拑鏄惁鍦ㄧ瀛愶紝鏄惁鍦ㄥ嚭鐗囬槦鍒�
+    // 鑾峰彇鐜荤拑鏄惁鍦ㄧ瀛愶紝鏄惁鍦ㄥ嚭鐗囬槦鍒�
     public List<north_glass_buffer1> SelectAluminumFrameInfoById(String FrameBarcode) throws SQLException {
         List<north_glass_buffer1> listAluminumFrame = jdbcConnections
                 .SelectGlassByGlassIdOrderIdFrameIdss(FrameBarcode);
@@ -28,24 +28,25 @@
         return listAluminumFrame;
     }
 
-    //鏍规嵁閾濇id娣诲姞鐜荤拑鍒板嚭鐗囬槦鍒�
-    public void AddOutSliceS(String FrameBarcode) throws SQLException{
-        List<north_glass_buffer1> north_glass_buffer1s=SelectAluminumFrameInfoById(FrameBarcode);
+    // 鏍规嵁閾濇id娣诲姞鐜荤拑鍒板嚭鐗囬槦鍒�
+    public void AddOutSliceS(String FrameBarcode) throws SQLException {
+        List<north_glass_buffer1> north_glass_buffer1s = SelectAluminumFrameInfoById(FrameBarcode);
         String flip = jdbcConnections.SelectFlipByFrameBarcode(FrameBarcode);
-        String position =jdbcConnections.SelectPositionByFrameBarcode(FrameBarcode);
-        int sequence=homeMapper.SelectMaxSquence();
+        String position = jdbcConnections.SelectPositionByFrameBarcode(FrameBarcode);
+        int sequence = homeMapper.SelectMaxSquence();
 
         for (north_glass_buffer1 north_glass_buffer1 : north_glass_buffer1s) {
-            Short state=0;
-            if(north_glass_buffer1.getOut_slice()==null){
-                if(north_glass_buffer1.getstorageCage()==null){
-                    state=3;
+            Short state = 0;
+            if (north_glass_buffer1.getOut_slice() == null) {
+                if (north_glass_buffer1.getstorageCage() == null) {
+                    state = 3;
                 }
-                homeMapper.AddOutSliceS(north_glass_buffer1.getbarcode(), flip, FrameBarcode, north_glass_buffer1.getglasslengthmm().toString(), north_glass_buffer1.getglassheightmm().toString(), sequence, position, state);
-                sequence+=1;
+                homeMapper.AddOutSliceS(north_glass_buffer1.getbarcode(), flip, FrameBarcode,
+                        north_glass_buffer1.getglasslengthmm().toString(),
+                        north_glass_buffer1.getglassheightmm().toString(), sequence, position, state);
+                sequence += 1;
             }
         }
     }
 
-    
 }

--
Gitblit v1.8.0