From 4b4545d1e3ad228ba819e3313853a6e987ef36e6 Mon Sep 17 00:00:00 2001 From: wu <731351411@qq.com> Date: 星期三, 20 九月 2023 01:19:50 +0800 Subject: [PATCH] 1,取消在开始进片或出片时结束之前的任务,改为进片车或出片车变空闲后立即结束数据库任务表的任务状态; 2,手动删除玻璃时恢复数据库理片笼信息中的剩余宽度 --- springboot-vue3/src/main/java/com/example/springboot/mapper/SpianMapper.java | 6 ++++++ 1 files changed, 6 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..05b5daf 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,8 @@ //鏍规嵁绗煎瓙鏍煎瓙灞傛暟鑾峰彇鐜荤拑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(); } \ No newline at end of file -- Gitblit v1.8.0