*
L
昨天 03c29682dd413657ac2c5ec5a585eac166ae617c
src/main/resources/mapper/TaskWrkMapper.xml
@@ -155,6 +155,15 @@
        order by "IO_PRI" desc,"CREATE_TIME","WRK_NO" ASC
    </select>
    <select id="selectCrnNoInWorkingBuDing" resultMap="BaseResultMap">
        select top 1 * from "SOURCE"."wcs_task_wrk"
        where 1=1
          and ("WRK_STS"=2 or "WRK_STS"=11)
          and "CRN_NO"=#{crnNo}
          and "WRK_NO"=#{workNo}
        order by "IO_PRI" desc,"CREATE_TIME","WRK_NO" ASC
    </select>
    <select id="selectCrnNoInWorkingDemo" resultMap="BaseResultMap">
        select top 1 * from "SOURCE"."wcs_task_wrk"
        where 1=1
@@ -201,11 +210,38 @@
        <if test="status != null">
            and STATUS = #{status}
        </if>
        <if test="barcode != null">
            and BARCODE = #{barcode}
        </if>
        <if test="startPoint != null">
            and (
            START_POINT = #{startPoint}
            or ORIGIN_START_POINT = #{startPoint}
            )
        </if>
        <if test="targetPoint != null">
            and (
            TARGET_POINT = #{targetPoint}
            or ORIGIN_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}
            or ORIGIN_START_POINT LIKE #{searchPattern}
            or ORIGIN_TARGET_POINT LIKE #{searchPattern}
            )
        </if>
    </sql>