吉安感知网项目-后端
linwei
2026-04-07 0565a01de2888b0fb03e0ced9f4ed9d92f3e62b7
opt: 人大金仓数据库改造
1 files modified
6 ■■■■ changed files
drone-service/drone-fw/src/main/java/org/sxkj/fw/device/mapper/FwDeviceMapper.xml 6 ●●●● patch | view | raw | blame | history
drone-service/drone-fw/src/main/java/org/sxkj/fw/device/mapper/FwDeviceMapper.xml
@@ -241,10 +241,10 @@
            <if test="query.polygons != null and query.polygons.size > 0">
                and (
                <foreach collection="query.polygons" item="polygon" separator=" OR ">
                    ST_Contains(
                    ST_SRID(ST_GeomFromText(#{polygon}), 4326),
                    public.st_contains(
                    public.st_srid(public.st_geomfromtext(#{polygon}), 4326),
                    /* 注意:Kingbase/PostGIS 坐标顺序通常是 (经度, 纬度) 即 (longitude, latitude) */
                    ST_GeomFromText(CONCAT('POINT(', longitude, ' ', latitude, ')'), 4326)
                    public.st_geomfromtext(CONCAT('POINT(', longitude, ' ', latitude, ')'), 4326)
                    )
                </foreach>
                )