zjj
2024-11-25 0f69561e397093b5165c4aac58530721d5c62178
zy-asrs-wcs/src/main/resources/mapper/core/TaskMapper.xml
@@ -24,6 +24,20 @@
        order by priority desc,start_time,task_no asc
    </select>
    <select id="selectChargeByAnalyzeSts" resultType="com.zy.asrs.wcs.core.entity.Task">
        select * from wcs_task
        where 1=1
          and task_sts in (202)
        order by priority desc,start_time,task_no asc
    </select>
    <select id="selectChargeByExecuteSts" resultType="com.zy.asrs.wcs.core.entity.Task">
        select * from wcs_task
        where 1=1
          and task_sts in (203)
        order by priority desc,start_time,task_no asc
    </select>
    <select id="selectManualByAnalyzeSts" resultType="com.zy.asrs.wcs.core.entity.Task">
        select * from wcs_task
        where 1=1
@@ -38,14 +52,33 @@
        order by priority desc,start_time,task_no asc
    </select>
    <select id="selectMoveByAnalyzeSts" resultType="com.zy.asrs.wcs.core.entity.Task">
        select * from wcs_task
        where 1=1
          and task_sts in (302)
        order by priority desc,start_time,task_no asc
    </select>
    <select id="selectMoveByExecuteSts" resultType="com.zy.asrs.wcs.core.entity.Task">
        select * from wcs_task
        where 1=1
          and task_sts in (303)
        order by priority desc,start_time,task_no asc
    </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>
@@ -63,10 +96,30 @@
        order by priority desc,start_time,task_no asc
    </select>
    <select id="selectManualWorking" resultType="com.zy.asrs.wcs.core.entity.Task">
        select * from wcs_task
        where task_sts in (401,402,403)
        and shuttle_no = #{shuttleNo}
        order by priority desc,start_time,task_no asc
    </select>
    <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,201,202,203,204,301,302,303,401,402,403)
          and shuttle_no = #{shuttleNo}
        where task_sts in (1,2,3,101,102,103,301,302,303,401,402,403)
        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,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>