#
lsh
2023-03-10 785aeaf363da16440554d67e9a3ded6ecf157ad4
src/main/resources/mapper/WrkMastMapper.xml
@@ -58,7 +58,7 @@
        <result column="log_err_time" property="logErrTime" />
        <result column="log_err_memo" property="logErrMemo" />
        <result column="barcode" property="barcode" />
        <result column="Pdc_type" property="PdcType" />
        <result column="Pdc_type" property="pdcType" />
        <result column="ctn_no" property="ctnNo" />
        <result column="full_plt" property="fullPlt" />
@@ -101,6 +101,10 @@
        select top 1 * from dbo.asr_wrk_mast where wrk_no=#{workNo} and wrk_sts in (4,5,7,13, 16)
    </select>
    <select id="selectCrnWaiting2" resultMap="BaseResultMap">
        select top 1 * from dbo.asr_wrk_mast where wrk_no=#{workNo} and wrk_sts = 18
    </select>
    <select id="selectCarWaiting" resultMap="BaseResultMap">
        select top 1 * from dbo.asr_wrk_mast where wrk_no=#{workNo} and wrk_sts in (2,8,11,14)
    </select>
@@ -114,7 +118,7 @@
    </select>
    <select id="selectPakOutStep111215" resultMap="BaseResultMap">
        select top 1 * from dbo.asr_wrk_mast where crn_no=#{crnNo} and wrk_sts in (11,12,13,14,15,16) and io_type>100 order by io_pri desc,io_time,wrk_no asc
        select top 1 * from dbo.asr_wrk_mast where crn_no=#{crnNo} and source_sta_no = #{sourceStaNo} and wrk_sts in (11,12,13,14,15,16) and io_type>100 order by io_pri desc,io_time,wrk_no asc
    </select>
    <select id="selectWorkingOfPakOutBySource" resultMap="BaseResultMap">
@@ -185,6 +189,19 @@
            and crn_no = #{crnNo}
        </if>
    </select>
    <select id="selectAll" resultMap="BaseResultMap">
        select * from dbo.asr_wrk_mast where 1=1
        and wrk_sts!=1 and wrk_sts!=11
        and wrk_sts!=18 and wrk_sts!=9 and wrk_sts &lt; 20 and io_type!=11
        and source_sta_no=#{staNo}
    </select>
    <select id="selectAllC" resultMap="BaseResultMap">
        select top 1 *
        from dbo.asr_wrk_mast where 1=1
        and wrk_sts!=1 and wrk_sts!=11
        and wrk_sts!=18 and wrk_sts!=9 and wrk_sts &lt; 20 and io_type!=11
    </select>
    <select id="selectPakinWorkingByGroupLoc" resultMap="BaseResultMap">
        select top 1 *