From 625d2b6dd9bd4a1c63bf7e1b2701393d908f7a81 Mon Sep 17 00:00:00 2001 From: ZengTao <2773468879@qq.com> Date: 星期六, 11 五月 2024 08:31:12 +0800 Subject: [PATCH] 客户数据库变更,部分铝框没有对应玻璃信息,扫码添加出片队列时,当铝框没有对应玻璃时直接添加到出片队列 --- springboot-vue3/src/main/java/com/example/springboot/mapper/HomeMapper.java | 10 +++++++--- 1 files changed, 7 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 a9d7b02..b166b15 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 @@ -139,7 +139,7 @@ north_glass_buffer1 SelectBoxNo(String glassid); //鏌ヨ鍑虹墖闃熷垪淇℃伅 - @Select("select * from out_slice order by sequence") + @Select("select a.*,b.cell from out_slice a left join storage_cage b on a.glassId=b.glass_id order by sequence") List<Out_slice> SelectProductionqueue(); //鏍规嵁鐜荤拑id鏌ヨ绗煎唴鐜荤拑淇℃伅 @@ -165,7 +165,7 @@ Out_slice SelectQueueByglassid(String getbarcode); //娣诲姞鍑虹墖闃熷垪 - @Insert("INSERT INTO out_slice( `glassId`, `barcode`, `glasswidth`, `glassheight`, `state`, `flip`, `sequence`, `time` ,`position` ,`orderid` ,`listid` ,`boxid` ,`glasswidthmm` ,`glassheightmm` ,`framewidthmm` ,`frameheightmm` ) VALUES ( #{glassid}, #{FrameNo}, #{glasslengthMm}, #{glassheightMm}, #{state}, #{flip}, #{sequence}, now(), #{position}, #{orderid}, #{listid}, #{boxid}, #{glasswidth}, #{glassheight}, #{framewidthmm}, #{frameheightmm});") + @Insert("INSERT INTO out_slice( `glassId`, `barcode`, `glasswidth`, `glassheight`, `state`, `flip`, `sequence`, `time` ,`position` ,`orderid` ,`listid` ,`boxid` ,`glasswidthmm` ,`glassheightmm` ,`framewidthmm` ,`frameheightmm` ,`framestate` ) VALUES ( #{glassid}, #{FrameNo}, #{glasslengthMm}, #{glassheightMm}, #{state}, #{flip}, #{sequence}, now(), #{position}, #{orderid}, #{listid}, #{boxid}, #{glasswidth}, #{glassheight}, #{framewidthmm}, #{frameheightmm}, 0);") void AddOutSliceS(String glassid, String flip, String FrameNo, String glasslengthMm, String glassheightMm, int sequence, String position, Short state,String orderid, String listid, String boxid, String glasswidth, String glassheight,String framewidthmm,String frameheightmm); //鍑虹墖闃熷垪璋冨簭 @@ -216,7 +216,7 @@ Out_slice SelectCurrentFrame(); //鏍规嵁鐜荤拑id鏌ヨ浠诲姟淇℃伅 - @Select("select task_type from storage_task where glass_id=#{glassid} and task_state!=2") + @Select("select task_type from storage_task where glass_id=#{glassid} and task_state!=1") Short SelectTaskByGlassId(String glassid); //淇敼鏍煎瓙瀹藉害 @@ -226,6 +226,10 @@ //鑾峰彇閾濇鏈夋病鏈夋鍦ㄥ嚭鐗囩殑鐜荤拑 @Select("select count(*) from out_slice where barcode=#{frameNo} and state=1") Short SelectOutingQueueCount(String frameNo); + + //鑾峰彇閾濇鏄惁瀛樺湪鐜荤拑瀵逛簡 + @Select("select count(*) from out_slice where barcode=#{frameNo}") + int SelectCountFrame(String getbarcode); } -- Gitblit v1.8.0