自动化立体仓库 - WCS系统
Junjie
2023-06-26 7cd8c743cb1f377a3102d9a154669fb2bc10535c
src/main/java/com/zy/asrs/mapper/WrkMastMapper.java
@@ -11,7 +11,7 @@
@Repository
public interface WrkMastMapper extends BaseMapper<WrkMast> {
    WrkMast selectByLocNo(@Param("sourceLocNo") String sourceLocNo);
    WrkMast selectBySourceLocNo(@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();
@@ -32,6 +32,7 @@
    // 入库第三步,当堆垛机把货放入库位时
//    @Select("select top 1 from dbo.asr_wrk_mast where wrk_no=#{workNo}")
    WrkMast selectCrnWaiting(@Param("workNo")Integer workNo);
    WrkMast selectCrnWaiting2(@Param("workNo")Integer workNo);
    WrkMast selectPakInStep45(@Param("workNo")Integer workNo);
@@ -41,9 +42,13 @@
//    @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("wrkNo")Short wrkNo);
    WrkMast selectPickStepByBarcode(@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 selectPakOutStep111215(@Param("crnNo")Integer crnNO, @Param("sourceStaNo")Integer sourceStaNo);
    WrkMast selectPakOutStep111215(@Param("crnNo")Integer crnNo, @Param("sourceStaNo")Integer sourceStaNo);
    List<WrkMast> selectWorkingOfPakOutBySource(@Param("locNos") List<String> locNos);
    // 出库第二步,从堆垛机出库站到目标出库站,堆垛机出库站有物时执行
//    @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")
@@ -81,4 +86,23 @@
    WrkMast selectPakout(@Param("crnNo")Integer crnNo, @Param("steNo")Integer steNo);
    WrkMast selectWorkingByCrn(@Param("crnNo")Integer crnNo);
    WrkMast selectPakinWorkingByGroupLoc(@Param("locNos")List<String> locNos);
    WrkMast selectPakoutWorkingByGroupLoc(@Param("locNos")List<String> locNos);
    List<WrkMast> selectAll(@Param("staNo")Integer staNo);
    WrkMast selectAllC();
    WrkMast selectRackInStep48(Short workNo,Integer staNo);
    WrkMast selectByWorkNo(Integer workNo);
    WrkMast selectLiftStep262327();
    WrkMast selectByWorkNo372428(Integer workNo);
    List<WrkMast> selectBy2125();
}