zwl
2025-07-02 4282d15a5e69a6b4c822c87d27a1ed6e7e618f00
src/main/resources/mapper/TaskWrkMapper.xml
@@ -34,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">
@@ -135,8 +150,9 @@
    </select>
    <select id="selectStaWorking" resultMap="BaseResultMap">
        select * from dbo.wcs_task_wrk
        select top 1 * from dbo.wcs_task_wrk_log
        where wrk_no = #{workNo}
        order by create_time DESC
    </select>
</mapper>