From c684729c17bb02ab968cdc2fceae74dacaa9593f Mon Sep 17 00:00:00 2001 From: wuyouming666 <2265557248@qq.com> Date: 星期三, 06 十二月 2023 16:53:28 +0800 Subject: [PATCH] 增加 急停后中止/继续选择 --- springboot-vue3/src/main/java/com/example/springboot/mapper/SpianMapper.java | 4 ++-- 1 files changed, 2 insertions(+), 2 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 75581e5..ffb3918 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 @@ -29,7 +29,7 @@ @Select("select cage,cell,tier,id,ROUND(id/2)as prcId,width from storage_cage where cage=#{cage1} and cell=#{cell} and state=0 and disabled=0 and width>=#{width} ORDER BY cell asc,tier asc LIMIT 1") StorageCage selectCage1(int cage1,int cell,double width); //鍒ゆ柇绗煎瓙鍐呯幓鐠冩暟 - @Select("select COUNT(tier)as tier from storage_cage where cage=#{cage} and cell=#{cell} and state=1;") + @Select("select COUNT(tier)as tier from storage_cage where cage=#{cage} and cell=#{cell} and state!=0;") int selectsum(int cage,int cell); //瀹屾垚杩涚墖涓殑鐜荤拑鐘舵�� @Update("update storage_cage set state=#{state} where glass_id=#{glassid};") @@ -58,7 +58,7 @@ StorageCage selectGlassCage(int cage,double width,int cage1,int cage2); //鍒犻櫎绗煎瓙淇℃伅(鍑虹墖) - @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 glassid=#{glassid};") + @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} and state=3;") void UpdataGlassCage(String glassid,int state); //鏀瑰彉鐜荤拑鐘舵�佷负鍑虹墖涓� @Update("update storage_cage as a set state=#{state} where glass_id=#{glassid};") -- Gitblit v1.8.0