吉安感知网项目-后端
xiebin
2026-04-03 2358538cb53e2784caf8f4e09d9f638f30e55211
drone-service/drone-fw/src/main/java/org/sxkj/fw/area/mapper/FwDefenseZoneMapper.xml
@@ -146,7 +146,7 @@
                and ST_Equals(
                    geom,
                    ST_SRID(
                        ST_GeomFromText(
                        ST_GeometryFromText(
                            trim(case when instr(#{param2.geom}, '|') > 0 then substring_index(#{param2.geom}, '|', 1) else #{param2.geom} end)
                        ),
                        case when instr(#{param2.geom}, '|') > 0 then cast(trim(substring_index(#{param2.geom}, '|', -1)) as unsigned) else 4326 end
@@ -251,11 +251,11 @@
            <choose>
                <when test="geom != null and geom != ''">
                    case
                        when instr(#{geom}, '|') &gt; 0 then ST_GeomFromText(
                        when instr(#{geom}, '|') &gt; 0 then ST_GeometryFromText(
                            trim(substring_index(#{geom}, '|', 1)),
                            cast(trim(substring_index(#{geom}, '|', -1)) as unsigned)
                        )
                        else ST_GeomFromText(trim(#{geom}))
                        else ST_GeometryFromText(trim(#{geom}))
                    end
                </when>
                <otherwise>null</otherwise>
@@ -281,11 +281,11 @@
            <if test="deviceIds != null">device_ids = #{deviceIds},</if>
            <if test="geom != null and geom != ''">
                geom = case
                    when instr(#{geom}, '|') &gt; 0 then ST_GeomFromText(
                    when instr(#{geom}, '|') &gt; 0 then ST_GeometryFromText(
                        trim(substring_index(#{geom}, '|', 1)),
                        cast(trim(substring_index(#{geom}, '|', -1)) as unsigned)
                    )
                    else ST_GeomFromText(trim(#{geom}))
                    else ST_GeometryFromText(trim(#{geom}))
                end,
            </if>
            <if test="areaCode != null">area_code = #{areaCode},</if>