#1
czkh
9 天以前 511d4ceb774ce6ccc1827545a205ba55a0ff26c0
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>