From ab458edbd053107077ae95acaca214ffb1d37828 Mon Sep 17 00:00:00 2001 From: wu <731351411@qq.com> Date: 星期一, 27 十一月 2023 09:20:29 +0800 Subject: [PATCH] Merge branch 'master' of http://10.153.19.25:10101/r/CanadaMes --- springboot-vue3/src/main/java/com/example/springboot/mapper/HomeMapper.java | 21 +++++++++++++++++++++ 1 files changed, 21 insertions(+), 0 deletions(-) diff --git a/springboot-vue3/src/main/java/com/example/springboot/mapper/HomeMapper.java b/springboot-vue3/src/main/java/com/example/springboot/mapper/HomeMapper.java index c6456ea..a9598f5 100644 --- a/springboot-vue3/src/main/java/com/example/springboot/mapper/HomeMapper.java +++ b/springboot-vue3/src/main/java/com/example/springboot/mapper/HomeMapper.java @@ -102,4 +102,25 @@ @Select("select count(*) from storage_cage where glass_id=#{glassId}") short SelectStorageByGlassId(String glassId); + //鏍规嵁璁㈠崟鏌ヨ鐜荤拑淇℃伅 + @Select("select * from glass where position(#{orderid} in orderid)") + List<Glass> SelectGlass(String orderid); + + //鑾峰彇涓婄墖闃熷垪淇℃伅 + @Select("select gl.* from queue qe inner join glass gl on qe.glassid=gl.glassid where qe.id=#{id}") + Glass GetQueueInfo(int id); + + //鎵嬪姩娣诲姞鎵爜浣嶇幓鐠� + @Select("update queue set glassid=#{glassid},state=1 where id=#{id}") + void InsertQueueGlassId(String glassid,Short id); + + //纭鎵爜浣嶇幓鐠冧俊鎭� + @Select("update queue set state=1 where id=1") + void UpdateQueueState(); + + //鎵嬪姩娣诲姞鎵爜浣嶇幓鐠� + @Select("update queue set glassid='' where id=#{id}") + void DeleteQueueGlass(String id); + + } -- Gitblit v1.8.0