From afbddf62e45bce6fd9428cddec36382c75cee53a Mon Sep 17 00:00:00 2001
From: wu <731351411@qq.com>
Date: 星期四, 07 十二月 2023 08:38:09 +0800
Subject: [PATCH] Merge branch 'master' of http://10.153.19.25:10101/r/CanadaMes

---
 springboot-vue3/src/main/java/com/example/springboot/mapper/SpianMapper.java |   14 +++++++-------
 1 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/springboot-vue3/src/main/java/com/example/springboot/mapper/SpianMapper.java b/springboot-vue3/src/main/java/com/example/springboot/mapper/SpianMapper.java
index a8ea2dd..1d58dd7 100644
--- a/springboot-vue3/src/main/java/com/example/springboot/mapper/SpianMapper.java
+++ b/springboot-vue3/src/main/java/com/example/springboot/mapper/SpianMapper.java
@@ -2,14 +2,11 @@
 import org.apache.ibatis.annotations.*;
 
 
-import com.example.springboot.entity.Glass;
 import com.example.springboot.entity.StorageCage;
-import com.example.springboot.entity.StorageTask;
 import com.example.springboot.entity.north_glass_buffer1;
 
 import java.util.List;
 
-import javax.print.DocFlavor.STRING;
 
 @Mapper
 
@@ -58,8 +55,11 @@
      StorageCage selectGlassCage(int cage,double width,int cage1,int cage2);
 
     //鍒犻櫎绗煎瓙淇℃伅(鍑虹墖)
-    @Update("update storage_cage as a set state=#{state},glass_id=#{glassid},order_id=#{orderid},glasswidth=0 where cage=#{cage} and cell=#{cell} and tier=#{tier};")
-    void UpdataGlassCage(String orderid,String glassid,double width,int cage,int cell,int tier,int state);
+    @Update("update storage_cage as a set state=#{state},glass_id=null,order_id=null,glasswidth=0,a.glassheight=null,a.glasswidthmm=null,a.glassheightmm=null,a.listid=null,a.boxid=null where glass_id=#{glassid};")
+    void UpdataGlassCage(String glassid,int state);
+     //鏀瑰彉鐜荤拑鐘舵�佷负鍑虹墖涓�
+    @Update("update storage_cage as a set state=#{state} where glass_id=#{glassid};")        
+    void UpdataGlassCageState(String glassid,int state);
 
     //淇敼绗煎瓙淇℃伅(杩涚墖)
     @Update("update storage_cage set state=#{state},glass_id=#{glassid},order_id=#{orderid},glasswidth=#{width} where id=#{id};")
@@ -152,12 +152,12 @@
      @Select("select state from queue where type=1")
      int Selectqueuestate();
      //鍒ゆ柇閾濇鍑虹墖琛ㄦ槸鍚︽湁鐜荤拑闇�瑕佸嚭
-     @Select("SELECT glassid FROM `out_slice` where state=0  order by id limit 1;")
+     @Select("SELECT glassid FROM `out_slice` where state=0  order by sequence,id  limit 1;")
      String SelectOutSlice();
      //鍒ゆ柇閾濇鍑虹墖琛ㄦ槸鍚︽湁鐜荤拑姝e湪鍑虹墖涓�
      @Select("SELECT count(*) FROM `out_slice` where state=1;")
      int SelectOutSliceshu();
-     //瀹屾垚鍑虹墖闃熷垪鐨勪换鍔�
+     //鏇存柊鍑虹墖闃熷垪鐨勪换鍔$姸鎬�
      @Update("update out_slice set state=#{state} where glassid=#{glassid}")
      void OverOutSlice(String glassid,int state);
   

--
Gitblit v1.8.0