#
Junjie
2025-07-06 0d04bc5d8080b82338302fba0a59fccff2eaedfc
zy-asrs-wcs/src/main/resources/mapper/core/TaskMapper.xml
@@ -67,14 +67,37 @@
    </select>
    <select id="selectWaitAnalyzeInBoundTask" resultType="com.zy.asrs.wcs.core.entity.Task">
        select * from wcs_task where task_ctg = 1 and task_sts = 1
        select * from wcs_task where task_sts = 1
        order by priority desc,start_time,task_no asc
    </select>
    <select id="selectPakOut" resultType="com.zy.asrs.wcs.core.entity.Task">
        select * from wcs_task
        where task_sts=101
        and (task_ctg=101 or task_ctg=110)
        order by priority desc,start_time,task_no asc
    </select>
    <select id="selectWaitAnalyzeMoveTask" resultType="com.zy.asrs.wcs.core.entity.Task">
        select * from wcs_task where task_sts = 301
        order by priority desc,start_time,task_no asc
    </select>
    <select id="selectWaitAnalyzeLadenMoveTask" resultType="com.zy.asrs.wcs.core.entity.Task">
        select * from wcs_task where task_sts = 501
        order by priority desc,start_time,task_no asc
    </select>
    <select id="selectLadenMoveByAnalyzeSts" resultType="com.zy.asrs.wcs.core.entity.Task">
        select * from wcs_task
        where 1=1
          and task_sts in (502)
        order by priority desc,start_time,task_no asc
    </select>
    <select id="selectLadenMoveByExecuteSts" resultType="com.zy.asrs.wcs.core.entity.Task">
        select * from wcs_task
        where 1=1
          and task_sts in (503)
        order by priority desc,start_time,task_no asc
    </select>
@@ -102,14 +125,20 @@
    <select id="selectWorkingByShuttle" resultType="com.zy.asrs.wcs.core.entity.Task">
        select * from wcs_task
        where task_sts in (1,2,3,101,102,103,301,302,303,401,402,403)
          and shuttle_no = #{shuttleNo}
        and shuttle_no = #{shuttleNo}
        <if test="taskNo!=null">
            and task_no != #{taskNo}
        </if>
        order by priority desc,start_time,task_no asc
    </select>
    <select id="selectWorkingByLift" resultType="com.zy.asrs.wcs.core.entity.Task">
        select * from wcs_task
        where task_sts in (1,2,3,101,102,103,301,302,303,401,402,403)
          and lift_no = #{liftNo}
        where task_sts in (1,2,3,101,102,103,201,202,203,301,302,303,401,402,403)
        and lift_no = #{liftNo}
        <if test="taskNo!=null">
            and task_no != #{taskNo}
        </if>
        order by priority desc,start_time,task_no asc
    </select>