zwl
2025-07-02 4282d15a5e69a6b4c822c87d27a1ed6e7e618f00
src/main/resources/mapper/TaskWrkMapper.xml
@@ -24,6 +24,7 @@
        <result column="crn_no" property="crnNo" />
        <result column="command_step" property="commandStep" />
        <result column="transfer_mark" property="transferMark" />
        <result column="mark_start" property="markStart"/>
    </resultMap>
    
@@ -33,11 +34,26 @@
        and task_no = #{taskNo}
    </select>
    <select id="selectByTargetPoint" resultMap="BaseResultMap">
        select top 1 * from wcs_task_wrk
        where 1=1
          and io_type=2
          and target_point = #{targetPoint}
    </select>
    <select id="selectByStartPoint" resultMap="BaseResultMap">
        select top 1 * from wcs_task_wrk
        where 1=1
        and io_type=3
        and io_type=1
        and start_point = #{startPoint}
    </select>
    <select id="selectByBarcode" resultMap="BaseResultMap">
        select top 1 * from wcs_task_wrk
        where 1=1
          and io_type=3
          and barcode = #{barcode}
    </select>
    <select id="selectByWrkNo" resultMap="BaseResultMap">
@@ -48,7 +64,7 @@
    <select id="selectPakIn" resultMap="BaseResultMap">
        select top 1 * from dbo.wcs_task_wrk
        where status=1
        where status=2
        and crn_no=#{crnNo}
        and wrk_no=#{workNo}
        and start_point=#{startPoint}
@@ -133,4 +149,10 @@
        order by io_pri desc,create_time,wrk_no ASC
    </select>
    <select id="selectStaWorking" resultMap="BaseResultMap">
        select top 1 * from dbo.wcs_task_wrk_log
        where wrk_no = #{workNo}
        order by create_time DESC
    </select>
</mapper>