吉安感知网项目-后端
linwei
2026-04-07 0b103838688967ec4fc79811bf7f02a770620fe8
opt: 人大金仓数据库改造
1 files modified
5 ■■■■■ changed files
drone-service/drone-fw/src/main/java/org/sxkj/fw/device/mapper/FwDeviceMapper.xml 5 ●●●●● patch | view | raw | blame | history
drone-service/drone-fw/src/main/java/org/sxkj/fw/device/mapper/FwDeviceMapper.xml
@@ -242,8 +242,9 @@
                and (
                <foreach collection="query.polygons" item="polygon" separator=" OR ">
                    public.st_contains(
                    public.st_srid(public.st_geomfromtext(#{polygon}), 4326),
                    /* 注意:Kingbase/PostGIS 坐标顺序通常是 (经度, 纬度) 即 (longitude, latitude) */
                    /* 直接在构造时指定 4326 */
                    public.st_geomfromtext(#{polygon}::text, 4326),
                    /* 将经纬度拼接为点,并指定坐标系 */
                    public.st_geomfromtext(CONCAT('POINT(', longitude, ' ', latitude, ')'), 4326)
                    )
                </foreach>