From 9378b8427a86982cb7f408d787384dad12496310 Mon Sep 17 00:00:00 2001
From: wu <731351411@qq.com>
Date: 星期二, 12 十二月 2023 09:22:12 +0800
Subject: [PATCH] 优化任务完成的逻辑处理

---
 springboot-vue3/src/main/java/com/example/springboot/mapper/SpianMapper.java |   13 ++++++++++++-
 1 files changed, 12 insertions(+), 1 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 404cb87..be079cd 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
@@ -163,6 +163,17 @@
      //鏇存柊鍑虹墖闃熷垪鐨勪换鍔$姸鎬�
      @Update("update out_slice set state=#{state} where glassid=#{glassid}")
      void OverOutSlice(String glassid,int state);
-  
+     //鑾峰彇鐜荤拑鐨勯摑妗唅d
+     @Select("select barcode from out_slice where glassid=#{glassid};")
+     String SelectBarcode(String glassId);    
+     //鑾峰彇鍑虹墖闃熷垪鐨勯摑妗嗘槸鍚﹀叏閮ㄥ畬鎴�
+     @Select("select MIN(state) from out_slice where barcode=#{barcode};")
+     int SelectOverState(String barcode);
+     //鍒犻櫎鍑虹墖闃熷垪璇ラ摑妗嗙殑id
+     @Delete("delete from out_slice where barcode=#{barcode};")
+     void DeleteQueue(String barcode);
+     //鎶婅杩涚墖鐨勭幓鐠冩洿鏂板埌鍑虹墖闃熷垪
+     @Select("update out_slice set state=0 where glassId=#{glassId} and state=3")
+     void UpdateAddQueue(String glassId);
 }   
     
\ No newline at end of file

--
Gitblit v1.8.0