From f9eda87debe3aeb58443b4a046296f23138761c8 Mon Sep 17 00:00:00 2001 From: wu <731351411@qq.com> Date: 星期一, 01 四月 2024 09:48:21 +0800 Subject: [PATCH] 测试后更新 --- springboot-vue3/src/main/java/com/example/springboot/mapper/HomeMapper.java | 9 ++++++--- 1 files changed, 6 insertions(+), 3 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 7ed4baa..4013e45 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 @@ -246,7 +246,7 @@ void updateStroageCageByCell(Integer cell, Integer num); // 璁$畻鏍煎瓙鍐呭墿浣欏搴� - @Update("update storage_cage set width=5000-(glasswidth+100)*number where cell=#{cell}") + @Update("update storage_cage set width=5000-ifnull(glasswidth,0,glasswidth+50)*number where cell=#{cell}") void UpdateStroageCageWidthByCell(Integer cell); // 鏍规嵁浠诲姟绫诲瀷鑾峰彇浠诲姟 @@ -283,8 +283,8 @@ @Update("update flowcard set method=#{method} where flowcard=#{flowcard}") void ModeChange(String flowcard, int method); - @Update("update queue set glassid=concat(#P{flowcard},'-',#{tier}),flowcard=#{flowcard},glasswidth=#{width},glassheight=#{height},glasstype=#{glasstype},thickness=#{thickness},state=1 where state<=0") - void UpdateQueue(String flowcard, double width, double height, Integer glasstype, Double thickness); + @Update("update queue set glassid=concat(#{flowcard},'-',#{tier}),flowcard=#{flowcard},glasswidth=#{width},glassheight=#{height},glasstype=#{glasstype},thickness=#{thickness},state=1 where state<=0") + void UpdateQueue(String flowcard, double width, double height, Integer glasstype, Double thickness, Integer tier); @Update("update glassinfo set finishnumber=ifnull(finishnumber,0)+1 where flowcard=#{flowcard} and mateid=#{mateid} and tier=#{geTier}") void AddGlassNo(String flowcard, Integer mateid, Integer geTier); @@ -316,4 +316,7 @@ @Insert("INSERT INTO flowcard(`flowcard`, `totaltier`, `number`, `line`, `state`, `method`, `starttime`) " +" select #{flowcard}, 0, #{number}, 0, 0, 0, now() where 0=( select count(*) from flowcard where flowcard=#{flowcard});") void InsertFlowcard(String flowcard, Integer number); + + @Select("Delete from queue where glassid=#{glassId}") + void DeletequeueByGlassid(String glassId); } -- Gitblit v1.8.0