zwl
2025-09-10 cd87c057ec64e917105bd85e4f562b54f7b165d7
src/main/resources/mapper/LocMastMapper.xml
@@ -51,13 +51,13 @@
    <select id="queryDemoSourceLoc" resultMap="BaseResultMap">
        select top 1 * from asr_loc_mast where crn_no = #{crnNo}
        and loc_sts='D'
        and loc_sts='F'
        ORDER BY NEWID()
    </select>
    <select id="queryDemoLoc" resultMap="BaseResultMap">
        select top 1 * from asr_loc_mast where crn_no = #{crnNo} and loc_sts = 'O'
        ORDER BY NEWID()
        select top 1 * from asr_loc_mast where crn_no = #{crnNo} and loc_type1 = #{locType1} and loc_sts = 'O' and (ctn_kind=0 or ctn_kind is null)
        ORDER BY lev1 asc,bay1 asc
    </select>
    <select id="selectByLocNo" resultMap="BaseResultMap">