1
zhang
2025-06-05 c48d0150aa9f6b297671f28adb6b9dc95b529cfc
src/main/java/com/zy/asrs/mapper/WrkMastMapper.java
@@ -12,6 +12,8 @@
public interface WrkMastMapper extends BaseMapper<WrkMast> {
    WrkMast selectByLocNo(@Param("sourceLocNo") String sourceLocNo);
    WrkMast selectByOnlyWrkNo(@Param("wrkNo") Integer wrkNo);
    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();
@@ -55,9 +57,13 @@
//    @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 selectLocMove111(@Param("crnNo")Integer crnNo);
    WrkMast selectLocMoving(@Param("crnNo")Integer crnNo);
    WrkMast selectWorking(@Param("crnNo")Integer crnNo);
    WrkMast selectWorking1(@Param("crnNo")Integer crnNo, @Param("wrkNo")Integer wrkNo);
    // work log -------------------------------------------------------
    @Insert("insert into asr_wrk_mast_log select * from asr_wrk_mast where wrk_no=#{workNo}")
@@ -83,4 +89,45 @@
    WrkMast selectPakout(@Param("crnNo")Integer crnNo, @Param("steNo")Integer steNo);
    /**
     * 查询工作档是是否存在未完成的移库任务,状态17表示移库已经完成,等待回原库位
     * @param crnNo
     * @return
     */
    WrkMast selectLocMoveWorking(@Param("crnNo")Integer crnNo);
    /**
     * 查找工作状态为17的移库完成任务,待处理回到原库位,并顺序往里移动
     * @param crnNo
     * @return
     */
    WrkMast selectLocMove17(@Param("crnNo")Integer crnNo);
    List<WrkMast> selectPick17(@Param("staNo") Integer staNo, @Param("wrkNo") Integer wrkNo);
    /**
     * 查询工作档是否存在移库任务
     * @param crnNo
     * @return
     */
    WrkMast selectLocMoveData(@Param("crnNo")Integer crnNo);
    /**
     * 查找工作档是否已存在绑定小车号的任务,状态17的除外
     * @param steNo
     * @return
     */
    WrkMast selectSteNoData(@Param("steNo")Integer steNo);
    List<WrkMast> selectWrkStsAndIoType(@Param("sour")Integer sour);
    List<WrkMast> selectWrkStsAndIoType0(@Param("sour")Integer sour);
    List<WrkMast> selectWrkStsAndIoType1(@Param("sour")Integer sour);
    Integer selectWrkStsAndIoType107Count(@Param("sour")Integer sour,@Param("workNo")Integer workNo);
    WrkMast selectWorkingPakin(@Param("sourceStaNo")Integer sourceStaNo);
    WrkMast selectWorkingPakout(@Param("sourceStaNo")Integer sourceStaNo);
    WrkMast selectWorkingPakoutTwoF(@Param("staNo")Integer staNo);
    WrkMast selectShallowLoc(@Param("row")Integer row,@Param("bay")Integer bay,@Param("lev")Integer lev);
}