*
L
2026-01-23 4d9e2ea59aa2e9fbdcacd3d8d8dfd543a2fccba5
src/main/resources/mapper/TaskWrkLogMapper.xml
@@ -26,4 +26,55 @@
    </resultMap>
    <sql id="batchSeq">
        <if test="wrkNo != null">
            and WRK_NO = #{wrkNo}
        </if>
        <if test="taskNo != null">
            and TASK_NO = #{taskNo}
        </if>
        <if test="status != null">
            and STATUS = #{status}
        </if>
        <if test="barcode != null">
            and BARCODE = #{barcode}
        </if>
        <if test="startPoint != null">
            and START_POINT = #{startPoint}
        </if>
        <if test="targetPoint != null">
            and TARGET_POINT = #{targetPoint}
        </if>
        <if test="modiTimeStart != null ">
            <if test="modiTimeEnd != null ">
                and MODI_TIME between #{modiTimeStart} and #{modiTimeEnd}
            </if>
        </if>
        <if test="allField != null and allField != ''">
            <bind name="searchPattern" value="'%' + allField + '%'" />
            and (
            WRK_NO LIKE #{searchPattern}
            or TASK_NO LIKE #{searchPattern}
            or BARCODE LIKE #{searchPattern}
            or START_POINT LIKE #{searchPattern}
            or TARGET_POINT LIKE #{searchPattern}
            )
        </if>
    </sql>
    <select id="selectTaskWrkLogList" resultMap="BaseResultMap">
        SELECT * FROM "SOURCE"."wcs_task_wrk_log"
        WHERE 1=1
        <include refid="batchSeq"></include>
        ORDER BY CREATE_TIME DESC
        LIMIT #{pageSize} OFFSET ((#{pageNumber} - 1) * #{pageSize});
    </select>
    <select id="selectTaskWrkLogListTotal" resultType="Long">
        SELECT count(1) FROM "SOURCE"."wcs_task_wrk_log"
        WHERE 1=1
        <include refid="batchSeq"></include>
    </select>
</mapper>