### Error querying database. Cause: org.postgresql.util.PSQLException: 错误: ST_Intersects: Operation on mixed SRID geometries (Polygon, 4326)
!= (Point, 0)
### The error may exist in URL [jar:nested:/home/palm/dashboard-map-api-0.0.1-SNAPSHOT.jar/!BOOT-INF/classes/!/mapper/AdsEntBaseInfoNanshanMappe
r.xml]
### The error may involve defaultParameterMap
### The error occurred while setting parameters
### SQL: WITH polygon AS (SELECT ST_MakePolygon(ST_GeomFromText(?, 4326)) AS geom) SELECT bus_address, busines
s_scope, cancel_date, city, community, declared_capital_atm, district, dom_code, ent_nam
e, ent_org_code, ent_status, ent_type, ent_type_code, est_date, etl_create_time, etl_dat
a_source, etl_update_time, filing_date, grid, id_num, industry, industry_category, is_de
lete, safe_cast_to_numeric(lat) AS lat, legal_person, safe_cast_to_numeric(lon) AS lon, operation_period,
province, register_address, registered_capital_amt, registered_no, registration_institution, revoke_da
te, street, uni_credit_code, ent_id FROM ads_ent_base_info_nanshan CROSS JOIN polygon WHERE uni_credit
_code LIKE CONCAT(?,'%') AND ST_Within(ST_SetSRID(ST_MakePoint(safe_cast_to_numeric(lon), safe_cast_to_n
umeric(lat)),4326),polygon.geom) AND ST_Intersects(ST_MakeEnvelope( ST_XMin(polygon.geom),
ST_YMin(polygon.geom), ST_XMax(polygon.geom),
ST_YMax(polygon.geom), 4326),ST_MakePoint(safe_cast_to_numeric(lon), safe_cast_to_numeric(lat)))
ORDER BY ent_id DESC LIMIT ? OFFSET ?
### Cause: org.postgresql.util.PSQLException: 错误: ST_Intersects: Operation on mixed SRID geometries (Polygon, 4326) != (Point, 0)
; uncategorized SQLException; SQL state [XX000]; error code [0]; 错误: ST_Intersects: Operation on mixed SRID geometries (Polygon, 4326) != (Poi
nt, 0)] with root cause
org.postgresql.util.PSQLException: 错误: ST_Intersects: Operation on mixed SRID geometries (Polygon, 4326) != (Point, 0)
at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2733)
最新发布