dubin
9 天以前 c0fc45a7cd97c2ded531b85575e6f26ff269db1b
src/main/resources/mapper/LocMastMapper.xml
@@ -55,8 +55,8 @@
    </select>
    <select id="queryDemoLoc" resultMap="BaseResultMap">
        select top 1 * from asr_loc_mast where crn_no = #{crnNo} and loc_sts = 'O' and loc_type2 =#{locType2}
        ORDER BY NEWID()
        select top 1 * from asr_loc_mast where crn_no = #{crnNo} and loc_sts = 'O' and loc_type2 is null and lev1 in (3,4,5,6)
        ORDER BY lev1 asc,bay1 asc
    </select>
</mapper>