#
whycq
2023-03-16 a566bdd94c21b60f57a0669fc923ffb9e16f0f4d
src/main/resources/mapper/WrkMastMapper.xml
@@ -161,7 +161,10 @@
    </select>
    <select id="selectPakOutStep14" resultMap="BaseResultMap">
        select top 1 * from dbo.asr_wrk_mast where crn_no=#{crnNo} and source_sta_no=#{sourceStaNo} and wrk_sts=14 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 ((wrk_sts=14 and io_type in (103,107) and source_sta_no=#{sourceStaNo}) or (wrk_sts in (2,3) and io_type in (53,57) and sta_no=#{sourceStaNo}))
        order by io_pri desc,io_time,wrk_no asc
    </select>
    <!--                                       入出库模式相关                                      -->