From 3472c98ae1f560d0e326cab0994fe755aeb89d8f Mon Sep 17 00:00:00 2001
From: ZengTao <2773468879@qq.com>
Date: 星期一, 30 十月 2023 11:04:20 +0800
Subject: [PATCH] 显示扫码位,上片位当前玻璃信息,添加确认扫码位玻璃功能

---
 springboot-vue3/src/main/java/com/example/springboot/mapper/SpianMapper.java |    9 +++++++++
 1 files changed, 9 insertions(+), 0 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 012a8bc..144eb1d 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
@@ -65,6 +65,9 @@
     //淇敼鍚岀瀛愭牸瀛愬搴�
      @Update("update storage_cage set width=width-#{width} where   cage=#{cage} and cell=#{cell};")
     void UpdataAddCage1(double width,int cage,int cell);
+    //淇敼鍚岀瀛愭牸瀛愬搴�
+     @Update("update storage_cage set state=#{state} where   state=#{oldstate};")
+    void UpdataAddCageState(int state,int oldstate);
     //淇敼鍚岀瀛愭牸瀛愬搴�(鍑虹墖)
      @Update("update storage_cage set width=width+#{width} where   cage=#{cage} and cell=#{cell};")
     void UpdataOutCage1(double width,int cage,int cell);
@@ -97,5 +100,11 @@
     //鏍规嵁绗煎瓙鏍煎瓙灞傛暟鑾峰彇鐜荤拑id
      @Select("select glass_id from storage_cage where cage=#{cage} and cell=#{cell} and tier=2;")
      String SelectGlassid(int cage,int cell);
+     //鏍规嵁绗煎瓙鏍煎瓙灞傛暟鑾峰彇鐜荤拑id
+     @Select("SELECT COUNT(*) FROM `storage_cage` where state=3;")
+     Integer Selectoutstate();
+    //鑾峰彇杩涚墖闃熷垪id
+     @Select("select glassid from queue where type=1 and state=0;")
+     String Selectqueueid();
 }
     
\ No newline at end of file

--
Gitblit v1.8.0