#1
dubin
2025-12-22 a00edfd8bd90940d0b6e1d6876e443a1317d5701
src/main/resources/mapper/LocMastMapper.xml
@@ -53,7 +53,7 @@
        from asr_loc_mast
        where row1=#{row}
        and loc_sts='O'
        and bay != #{bay}
        and bay1 != #{bay}
        <if test="locType1 != null">
            and loc_type1 = #{locType1}
        </if>
@@ -67,7 +67,7 @@
    </select>
    <select id="queryDemoLoc" resultMap="BaseResultMap">
        select top 1 * from asr_loc_mast where crn_no = #{crnNo} and loc_sts = 'O'
        select top 1 * from asr_loc_mast where crn_no = #{crnNo} and loc_sts = 'O' and loc_type1 = #{locType1}
        ORDER BY NEWID()
    </select>