From 11b9b5a2cfd5b23e80ce6a3be3f9b341a2cd1be0 Mon Sep 17 00:00:00 2001 From: wu <731351411@qq.com> Date: 星期三, 13 九月 2023 17:36:55 +0800 Subject: [PATCH] 增加小车任务逻辑判断 --- springboot-vue3/src/main/java/com/example/springboot/mapper/SpianMapper.java | 8 +++++++- 1 files changed, 7 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 1c29c80..ae9b6a6 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 @@ -67,7 +67,7 @@ @Update("update storage_cage set width=width+#{width} where cage=#{cage} and cell=#{cell};") void UpdataOutCage1(double width,int cage,int cell); //璋冩嫧鏇存崲绗煎瓙淇℃伅 - @Update("update storage_cage as a,(select*from storage_cage b where b.cage=#{cage} and b.cell=#{cell} and b.tier=2)as b set a.glass_id=b.glass_id,a.order_id=b.order_id,a.width=a.width-b.glasswidth,a.state=1 where a.id=#{id1}") + @Update("update storage_cage as a,(select*from storage_cage b where b.cage=#{cage} and b.cell=#{cell} and b.tier=2)as b set a.glass_id=b.glass_id,a.order_id=b.order_id,a.state=1 where a.id=#{id1}") void UpdateDBCage(int id1,int cage,int cell); // @Insert("insert into user(name, date, address, user_no) values (#{name}, #{date}, #{address}, #{userNo})") // void insert (Spian spian); @@ -77,4 +77,10 @@ //淇敼浠诲姟琛� @Update("update storage_task set task_state=#{state} where task_type=#{type} and task_state=0;") void Updatetask(int state,int type); + //淇敼浠诲姟琛� + @Update("update storage_task set task_state=1 where (task_type=1 or task_type=2) and task_state=0;") + void UpdatetaskOut(); + //鏌ヨ鎸夎鍗曞嚭鐗� + @Select("select order_id state from order_out where state=0") + String SelectOrderout(); } -- Gitblit v1.8.0