#1
czkh
9 天以前 511d4ceb774ce6ccc1827545a205ba55a0ff26c0
src/main/resources/mapper/LocMastMapper.xml
@@ -48,6 +48,18 @@
        order by NEWID(),lev1 asc,bay1 asc
    </select>
    <select id="queryFreeLocMast2" resultMap="BaseResultMap">
        select top 1 *
        from asr_loc_mast
        where row1=#{row}
        and loc_sts='O'
        and bay1 != #{bay}
        <if test="locType1 != null">
            and loc_type1 = #{locType1}
        </if>
        order by NEWID(),lev1 asc,bay1 asc
    </select>
    <select id="queryDemoSourceLoc" resultMap="BaseResultMap">
        select top 1 * from asr_loc_mast where crn_no = #{crnNo}
        and loc_sts='D'
@@ -55,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>