吉安感知网项目-后端
xiebin
2026-04-03 15a4473d0578c9ddf41e8eb78b9ad15e490da5b4
opt: ST_GeomFromText-替换人大金仓-ST_SetSRID
1 files modified
2 ■■■ changed files
drone-service/drone-gd/src/main/java/org/sxkj/gd/workorder/mapper/GdManageDeviceMapper.xml 2 ●●● patch | view | raw | blame | history
drone-service/drone-gd/src/main/java/org/sxkj/gd/workorder/mapper/GdManageDeviceMapper.xml
@@ -85,7 +85,7 @@
            </if>
            <if test="geom != null and geom != ''">
                /* 确保这里是第一个条件时,and 能被 MyBatis 正确处理,或者直接去掉这个 and */
                AND ST_Intersects ( ST_SetSRID ( md.geom, 4326 ), ST_SetSRID ( ST_GeomFromText ( CONCAT( '\'', ${geom} ,'\'') ), 4326 ) )
                AND ST_Intersects ( ST_SetSRID ( md.geom, 4326 ), ST_SetSRID ( ST_GeomFromText (${geom} ) ), 4326 ) )
            </if>
            <if test="deviceType != null and deviceType != '' ">
                and md.device_type::text = #{deviceType}::text