‘liusuyi’
2024-03-20 59f12f7949e8fd2bb14a155614b06ed2940170cd
ard-work/src/main/resources/mapper/management3d/ArdTiles3dMapper.xml
@@ -74,7 +74,9 @@
            <if test="dynamicScreenSpaceErrorDensity != null ">and c.dynamic_screen_space_error_density =
                #{dynamicScreenSpaceErrorDensity}
            </if>
            <if test="deptId != null ">and c.dept_id = #{deptId}</if>
            <if test="deptId != null ">and (c.dept_id = #{deptId} OR c.dept_id IN ( SELECT t.dept_id FROM sys_dept t
                WHERE cast(#{deptId} as varchar) = any(string_to_array(ancestors,',')) ))
            </if>
            <if test="userId != null  and userId != ''">and c.user_id = #{userId}</if>
        </where>
        <!-- 数据范围过滤 -->
@@ -181,4 +183,4 @@
        from ard_tiles3d
        where dept_id = #{deptId}
    </select>
</mapper>
</mapper>