zjj
2023-12-04 098343a983ceba34ee253453c45b903b95d8e877
src/main/resources/mapper/TaskWrkMapper.xml
@@ -33,6 +33,13 @@
        and task_no = #{taskNo}
    </select>
    <select id="selectByStartPoint" resultMap="BaseResultMap">
        select top 1 * from wcs_task_wrk
        where 1=1
        and io_type=3
        and start_point = #{startPoint}
    </select>
    <select id="selectByWrkNo" resultMap="BaseResultMap">
        select top 1 * from wcs_task_wrk
        where 1=1
@@ -47,6 +54,12 @@
        and start_point=#{startPoint}
        and io_type=1
        order by io_pri desc,create_time,wrk_no ASC
    </select>
    <select id="selectReceive" resultMap="BaseResultMap">
        select * from wcs_task_wrk
        where 1=1
        and status = 1
    </select>
    <select id="selectPakOutIoType" resultMap="BaseResultMap">
@@ -68,7 +81,9 @@
    <select id="selectPakOut" resultMap="BaseResultMap">
        select * from dbo.wcs_task_wrk
        where crn_no=#{crnNo}
        and target_point=#{targetPoint}
        <if test="targetPoint!=null and targetPoint!='' ">
            and target_point=#{targetPoint}
        </if>
        and wrk_sts=11
        and io_type = 2
        order by io_pri desc,create_time,wrk_no ASC
@@ -111,4 +126,11 @@
        insert into wcs_task_wrk_log select * from wcs_task_wrk where task_no = #{taskNo} and (status=3 or status=4)
    </insert>
    <select id="selectWorkingTask" resultMap="BaseResultMap">
        select * from dbo.wcs_task_wrk
        where (wrk_sts=3 and io_type = 1)
        or (wrk_sts=12 and io_type = 2)
        order by io_pri desc,create_time,wrk_no ASC
    </select>
</mapper>