From c49dc2f40279bcc360948cea68dec69cf213b85f Mon Sep 17 00:00:00 2001
From: wuyouming666 <2265557248@qq.com>
Date: 星期一, 25 十二月 2023 15:33:34 +0800
Subject: [PATCH] Merge branch 'master' of http://10.153.19.25:10101/r/CanadaMes

---
 springboot-vue3/src/main/java/com/example/springboot/service/OutSliceServive.java |   11 +++++------
 1 files changed, 5 insertions(+), 6 deletions(-)

diff --git a/springboot-vue3/src/main/java/com/example/springboot/service/OutSliceServive.java b/springboot-vue3/src/main/java/com/example/springboot/service/OutSliceServive.java
index e041e8d..256c2e9 100644
--- a/springboot-vue3/src/main/java/com/example/springboot/service/OutSliceServive.java
+++ b/springboot-vue3/src/main/java/com/example/springboot/service/OutSliceServive.java
@@ -6,11 +6,9 @@
 import java.util.Map;
 
 import org.springframework.beans.factory.annotation.Autowired;
-import org.springframework.boot.autoconfigure.mongo.embedded.EmbeddedMongoProperties.Storage;
 import org.springframework.stereotype.Service;
 
 import com.example.springboot.common.Result;
-import com.example.springboot.component.S7control;
 import com.example.springboot.entity.Out_slice;
 import com.example.springboot.entity.StorageCage;
 import com.example.springboot.mapper.HomeMapper;
@@ -26,8 +24,6 @@
   @Autowired
   SpianService spianService;
 
-  @Autowired
-  private JdbcConnections jdbcConnections;
 
   public void AddOutSliceS(String[][] AluminumFrames) throws SQLException {
     // int sequence = homeMapper.SelectMaxSquence();
@@ -74,16 +70,19 @@
   public void StopTask(String glassid, int i) {
     if (i == 0) {// 杩涚墖缁堟
       spianService.overtask(glassid);
-      DeleteByGlassID(glassid);
+      DeleteByGlassIDs(glassid);
+      homeMapper.UpdateOutSliceGlass(glassid);
     } else {// 鍑虹墖缁堟
       spianMapper.UpdatetaskOut(glassid);//瀹屾垚鍑虹墖浠诲姟
       spianMapper.UpdataGlassCage(glassid, 0);// 娓呴櫎鍑虹墖鏍煎瓙鐜荤拑淇℃伅
       spianMapper.UpdateCageOver(glassid, 0);// 鏇存敼绗煎瓙琛ㄥ嚭鐗囩姸鎬�
       homeMapper.UpdateOutSliceGlass(glassid);//淇敼鍑虹墖闃熷垪姝ょ幓鐠冪姸鎬佷负缂哄け
+      
     }
   }
+
   //鍒犻櫎绗煎唴鐜荤拑杩樺師瀹藉害
-  public void DeleteByGlassID(String glassid) {
+  public void DeleteByGlassIDs(String glassid) {
     StorageCage glassinfor = homeMapper.SelectGlassInfo(glassid);
     spianMapper.UpdataOutCage1(glassinfor.getGlassWidth(), glassinfor.getCage(), glassinfor.getCell());
     homeMapper.DeleteByGlassID(glassid);

--
Gitblit v1.8.0