1
zhang
2025-09-26 3897c8800805f6e99e30d700fe0c11c5ed2df84a
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 row1 != #{row}
        <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'