#
luxiaotao1123
2022-11-14 2bd22e9a59ba5a5ce6935adf9f9bbb02ed171776
src/main/resources/mapper/WrkMastMapper.xml
@@ -64,7 +64,7 @@
    </resultMap>
    <select id="selectByLocNo"  resultMap="BaseResultMap">
    <select id="selectBySourceLocNo"  resultMap="BaseResultMap">
        select top 1 * from asr_wrk_mast where source_loc_no = #{sourceLocNo}
    </select>
@@ -109,6 +109,10 @@
        select top 1 * from asr_wrk_mast where wrk_no=#{wrkNo} and wrk_sts=17 and (io_type=103 or io_type=107 or io_type=104)
    </select>
    <select id="selectPickStepByBarcode" resultMap="BaseResultMap">
        select top 1 * from asr_wrk_mast where barcode=#{barcode} and wrk_sts=17 and (io_type=103 or io_type=107 or io_type=104)
    </select>
    <select id="selectPakOutStep111215" resultMap="BaseResultMap">
        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>
@@ -132,7 +136,7 @@
    <select id="selectPakin" resultMap="BaseResultMap">
        select top 1 * from dbo.asr_wrk_mast
        where 1=1
        and wrk_sts in (3,4,5,6,7,8)
        and wrk_sts in (3,4,5,6,7,8,9)
        and crn_no=#{crnNo}
        <if test="steNo != null">
            and ste_no = #{steNo}
@@ -140,9 +144,15 @@
    </select>
    <select id="selectPakout" resultMap="BaseResultMap">
        select top 1 * from dbo.asr_wrk_mast
        select top 1 *
        from dbo.asr_wrk_mast
        where 1=1
        and wrk_sts in (12,13,14,15,16)
        and
        (
            (wrk_sts in (12,13,14,15,16,17) and io_type in (101, 110))
            or
            (wrk_sts in (12,13,14,15,16) and io_type in (103, 104, 107))
        )
        and crn_no=#{crnNo}
        <if test="steNo != null">
            and ste_no = #{steNo}