*
lsh
2 天以前 23e81c5d24c37a87fbbbf67c68b17e8f78832148
src/main/resources/mapper/TaskWrkMapper.xml
@@ -66,6 +66,16 @@
        order by "IO_PRI" desc,"CREATE_TIME","WRK_NO" ASC
    </select>
    <select id="selectPakInDemo" resultMap="BaseResultMap">
        select top 1 * from "SOURCE"."wcs_task_wrk"
        where "WRK_STS"=2
          and "CRN_NO"=#{crnNo}
          and "WRK_NO"=#{workNo}
          and "ORIGIN_START_POINT"=#{startPoint}
          and "IO_TYPE"=4
        order by "IO_PRI" desc,"CREATE_TIME","WRK_NO" ASC
    </select>
    <select id="selectReceive" resultMap="BaseResultMap">
        select * from "SOURCE"."wcs_task_wrk"
        where 1=1
@@ -88,6 +98,15 @@
        order by "IO_PRI" desc,"CREATE_TIME","WRK_NO" ASC
    </select>
    <select id="selectCrnStaWorkingDemo" resultMap="BaseResultMap">
        select * from "SOURCE"."wcs_task_wrk"
        where "CRN_NO"=#{crnNo}
          and "ORIGIN_TARGET_POINT"=#{targetPoint}
          and "WRK_STS"=13
          and "IO_TYPE" = 4
        order by "IO_PRI" desc,"CREATE_TIME","WRK_NO" ASC
    </select>
    <select id="selectPakOut" resultMap="BaseResultMap">
        select * from "SOURCE"."wcs_task_wrk"
        where "CRN_NO"=#{crnNo}
@@ -99,6 +118,17 @@
        order by "IO_PRI" desc,"CREATE_TIME","WRK_NO" ASC
    </select>
    <select id="selectPakOutDemo" resultMap="BaseResultMap">
        select * from "SOURCE"."wcs_task_wrk"
        where "CRN_NO"=#{crnNo}
        <if test="targetPoint!=null and targetPoint!='' ">
            and "ORIGIN_TARGET_POINT"=#{targetPoint}
        </if>
        and "WRK_STS"=11
        and "IO_TYPE" = 4
        order by "IO_PRI" desc,"CREATE_TIME","WRK_NO" ASC
    </select>
    <select id="selectPakOut3" resultMap="BaseResultMap">
        select * from "SOURCE"."wcs_task_wrk"
        where "CRN_NO"=#{crnNo}