野心家
2024-10-25 1a56f6f4a0c2b8fc61bfde8bd3418a9731b87647
src/main/java/com/zy/asrs/mapper/WrkMastMapper.java
@@ -13,6 +13,8 @@
    WrkMast selectByLocNo(@Param("sourceLocNo") String sourceLocNo);
    WrkMast selectByLocNo1(@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();
@@ -24,6 +26,7 @@
    WrkMast selectPakInStep1(@Param("sourceStaNo")Integer sourceStaNo, @Param("barcode")String barcode);
    WrkMast selectPakInStep11(@Param("sourceStaNo")Integer sourceStaNo);
    WrkMast selectPakInStepBarcode(@Param("barcode")String barcode);
    // 入库第二步,当托盘物料在堆垛机入库站时时查询
//    @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")
@@ -53,6 +56,8 @@
    WrkMast selectWorking(@Param("crnNo")Integer crnNo);
    List<WrkMast> selectWorkings();
    // work log -------------------------------------------------------
    @Insert("insert into asr_wrk_mast_log select * from asr_wrk_mast where wrk_no=#{workNo}")
    int saveWrkMastLog(Integer workNo);
@@ -70,9 +75,9 @@
    @Update("update cust_wait_pakin set io_status='F' where zpallet = #{barcode}")
    int updateWaitPakInStep2(String barcode);
    WrkMast selectWorkingPakin();
    WrkMast selectWorkingPakout();
//    WrkMast selectWorkingPakin();
//
//    WrkMast selectWorkingPakout();
    /**
     * 堆垛机是否存在出库任务
@@ -98,4 +103,15 @@
     * @return
     */
    List<WrkMast> selectPakOutStep11(@Param("crnNo")Integer crnNO, @Param("sourceStaNo")Integer sourceStaNo);
    WrkMast selectWorkingPakin(@Param("sourceStaNo")Integer sourceStaNo);
    WrkMast selectWorkingPakout(@Param("sourceStaNo")Integer sourceStaNo);
    /**
     * 查找堆垛机号对应所有已出库工作档
     * @param crnNO
     * @param sourceStaNo
     * @return
     */
    WrkMast selectPakOutStep14(@Param("crnNo")Integer crnNO, @Param("sourceStaNo")Integer sourceStaNo);
}