From e7ee6502ce70f0aa1728b9a67780ec28f6218a45 Mon Sep 17 00:00:00 2001 From: luxiaotao1123 <t1341870251@163.com> Date: 星期二, 20 九月 2022 14:45:04 +0800 Subject: [PATCH] # --- src/main/java/com/zy/asrs/mapper/WrkMastMapper.java | 49 +++++++++++++++++++++++++++++++++++-------------- 1 files changed, 35 insertions(+), 14 deletions(-) diff --git a/src/main/java/com/zy/asrs/mapper/WrkMastMapper.java b/src/main/java/com/zy/asrs/mapper/WrkMastMapper.java index 62d8928..a6a6c5e 100644 --- a/src/main/java/com/zy/asrs/mapper/WrkMastMapper.java +++ b/src/main/java/com/zy/asrs/mapper/WrkMastMapper.java @@ -11,6 +11,8 @@ @Repository public interface WrkMastMapper extends BaseMapper<WrkMast> { + WrkMast selectByLocNo(@Param("sourceLocNo") String sourceLocNo); + // @Select("select * from asr_wrk_mast where ((wrk_sts = 4 Or wrk_sts = 14 ) and io_type <> 103 and io_type <> 104 and io_type <> 107 ) or (wrk_sts = 2 and io_type=6) order by upd_mk,io_time,wrk_no") List<WrkMast> selectToBeCompleteData(); @@ -18,32 +20,42 @@ // wcs --------------------------------------------- // 鍏ュ簱绗竴姝ワ紝鎵爜浠幏鍙栨潯鐮佷俊鎭椂鏌ヨ - @Select("select top 1 * from asr_wrk_mast where source_sta_no=#{sourceStaNo} and wrk_sts=2 and barcode=#{barcode} and (io_type=1 or io_type=10) order by io_pri desc,io_time,wrk_no ASC") +// @Select("select top 1 * from asr_wrk_mast where source_sta_no=#{sourceStaNo} and wrk_sts=2 and barcode=#{barcode} and (io_type=1 or io_type=10) order by io_pri desc,io_time,wrk_no ASC") WrkMast selectPakInStep1(@Param("sourceStaNo")Integer sourceStaNo, @Param("barcode")String barcode); + WrkMast selectPakInStep11(@Param("sourceStaNo")Integer sourceStaNo); + // 鍏ュ簱绗簩姝ワ紝褰撴墭鐩樼墿鏂欏湪鍫嗗灈鏈哄叆搴撶珯鏃舵椂鏌ヨ - @Select("select top 1 * from dbo.asr_wrk_mast where wrk_sts=2 and crn_no=#{crnNo} and wrk_no=#{workNo} and (io_type=1 or io_type=10 or io_type=53 or io_type=54 or io_type=57) order by io_pri desc,io_time,wrk_no ASC") - WrkMast selectPakInStep2(@Param("crnNo")Integer crnNo, @Param("workNo")Integer workNo); +// @Select("select top 1 * from dbo.asr_wrk_mast where wrk_sts=2 and crn_no=#{crnNo} and wrk_no=#{workNo} and (io_type=1 or io_type=10 or io_type=53 or io_type=54 or io_type=57) order by io_pri desc,io_time,wrk_no ASC") + WrkMast selectPakInStep23456(@Param("crnNo")Integer crnNo, @Param("workNo")Integer workNo, @Param("staNo")Integer staNo); // 鍏ュ簱绗笁姝ワ紝褰撳爢鍨涙満鎶婅揣鏀惧叆搴撲綅鏃� - @Select("select top 1 from dbo.asr_wrk_mast where wrk_no=#{workNo}") - WrkMast selectPakInStep3(@Param("workNo")Integer workNo); +// @Select("select top 1 from dbo.asr_wrk_mast where wrk_no=#{workNo}") + WrkMast selectCrnWaiting(@Param("workNo")Integer workNo); + + WrkMast selectPakInStep45(@Param("workNo")Integer workNo); + + WrkMast selectCarWaiting(@Param("workNo")Integer workNo); // 鎷f枡鍐嶅叆搴撴椂锛岀珯鐐规湁鐗╀笖闇�姹傛椂鏌ヨ - @Select("select top 1 * from asr_wrk_mast where wrk_no=#{workNo} and wrk_sts=14 and (io_type=103 or io_type=107 or io_type=104)") - WrkMast selectPickStep(@Param("workNo")Integer workNo); +// @Select("select top 1 * from asr_wrk_mast where wrk_no=#{workNo} and wrk_sts=14 and (io_type=103 or io_type=107 or io_type=104)") + WrkMast selectPickStep(@Param("barcode")String barcode); // 鍑哄簱绗竴姝ワ紝浠庡簱浣嶅埌鍫嗗灈鏈哄嚭搴撶珯 - @Select("select top 1 * from dbo.asr_wrk_mast where crn_no=#{crnNo} and wrk_sts=11 and io_type>100 order by io_pri desc,io_time,wrk_no asc") - WrkMast selectPakOutStep1(@Param("crnNo")Integer crnNO); +// @Select("select top 1 * from dbo.asr_wrk_mast where crn_no=#{crnNo} and wrk_sts=11 and io_type>100 order by io_pri desc,io_time,wrk_no asc") + WrkMast selectPakOutStep111215(@Param("crnNo")Integer crnNO, @Param("sourceStaNo")Integer sourceStaNo); // 鍑哄簱绗簩姝ワ紝浠庡爢鍨涙満鍑哄簱绔欏埌鐩爣鍑哄簱绔欙紝鍫嗗灈鏈哄嚭搴撶珯鏈夌墿鏃舵墽琛� - @Select("select top 1 * from dbo.asr_wrk_mast where source_sta_no=#{sourceStaNo} and wrk_sts=12 and io_type>100 order by io_pri desc,io_time desc,wrk_no ASC") - WrkMast selectPakOutStep2(@Param("sourceStaNo")Integer sourceStaNo); +// @Select("select top 1 * from dbo.asr_wrk_mast where source_sta_no=#{sourceStaNo} and wrk_sts=12 and io_type>100 order by io_pri desc,io_time desc,wrk_no ASC") + WrkMast selectPakOutStep16(@Param("sourceStaNo")Integer sourceStaNo); // 搴撲綅绉昏浆宸ヤ綔妗o紝鍦ㄨ繘琛屼竴娆″叆鍑哄簱浣滀笟鍚庣揣璺熷簱浣嶇Щ杞� - @Select("select top 1 * from dbo.asr_wrk_mast where wrk_sts=11 and (io_type=11 or io_type=110) and crn_no=#{crnNo} order by io_time,wrk_no") +// @Select("select top 1 * from dbo.asr_wrk_mast where wrk_sts=11 and (io_type=11 or io_type=110) and crn_no=#{crnNo} order by io_time,wrk_no") WrkMast selectLocMove(@Param("crnNo")Integer crnNo); + + WrkMast selectLocMoving(@Param("crnNo")Integer crnNo); + + WrkMast selectWorking(@Param("crnNo")Integer crnNo); // work log ------------------------------------------------------- @Insert("insert into asr_wrk_mast_log select * from asr_wrk_mast where wrk_no=#{workNo}") @@ -52,8 +64,17 @@ @Insert("insert into asr_wrk_detl_log select * from asr_wrk_detl where wrk_no=#{workNo}") int saveWrkDetlLog(Integer workNo); - // update 鍏ュ簱閫氱煡妗� - @Update("update cust_wait_pakin set status='Y' where zpallet = #{barcode}") + // 閫氱煡妗� ---------------------------------------------------------------------- + + // update 鍏ュ簱閫氱煡妗� -- Y + @Update("update cust_wait_pakin set io_status='Y' where zpallet = #{barcode}") int updateWaitPakInStep1(String barcode); + // update 鍏ュ簱閫氱煡妗� -- F + @Update("update cust_wait_pakin set io_status='F' where zpallet = #{barcode}") + int updateWaitPakInStep2(String barcode); + + @Update("update asr_wrk_mast set ste_no = null where wrk_no = #{wrkNo}") + int setSteEmpty(Integer wrkNo); + } -- Gitblit v1.9.1