1
zhang
2025-06-05 c48d0150aa9f6b297671f28adb6b9dc95b529cfc
src/main/resources/mapper/LocMastMapper.xml
@@ -50,7 +50,8 @@
    </select>
    <select id="queryDemoSourceLoc" resultMap="BaseResultMap">
        select top 1 * from asr_loc_mast where crn_no = #{crnNo} and (loc_sts='F' or loc_sts='D')
        select top 1 * from asr_loc_mast where crn_no = #{crnNo}
        and loc_sts='D'
        ORDER BY NEWID()
    </select>
@@ -59,4 +60,12 @@
        ORDER BY NEWID()
    </select>
    <select id="selectByLocNos" resultMap="BaseResultMap">
        select * from asr_loc_mast
        where loc_no in
        <foreach item="item" collection="locNos" index="index"  separator="," open="(" close=")">
            #{item}
        </foreach>
    </select>
</mapper>