fix(#63): 修复 GIS 关键词查询参数与 PostGIS ILIKE 类型 #64

Merged
Lijianping merged 1 commit from fix/63-gis-query-ilike into main 2026-11-02 16:28:01 +08:00
Collaborator

变更摘要

  • /txys/gis/query 同时接受 q / keyword
  • PostGIS 点/线 search 的 ILIKE 使用 CAST(#{kw} AS text),消除参数类型错误

自测步骤

  • 登录后 GET /txys/gis/query?q=P0015 返回 success,命中含该编码/名称/备注的要素
  • GET /txys/gis/query?keyword=P0015 同样成功
  • 不再出现 could not determine data type of parameter $1

文档影响

  • 无(接口行为对齐既有约定:编码/名称模糊查询)

关联 Issue: #63

## 变更摘要 - `/txys/gis/query` 同时接受 `q` / `keyword` - PostGIS 点/线 `search` 的 `ILIKE` 使用 `CAST(#{kw} AS text)`,消除参数类型错误 ## 自测步骤 - [ ] 登录后 `GET /txys/gis/query?q=P0015` 返回 success,命中含该编码/名称/备注的要素 - [ ] `GET /txys/gis/query?keyword=P0015` 同样成功 - [ ] 不再出现 `could not determine data type of parameter $1` ## 文档影响 - 无(接口行为对齐既有约定:编码/名称模糊查询) 关联 Issue: #63
fix(#63): 修复 GIS 关键词查询参数与 PostGIS ILIKE 类型
All checks were successful
CI / backend-compile (pull_request) Successful in 7m34s
32d2adf95d
Co-authored-by: Cursor <cursoragent@cursor.com>
Lijianping deleted branch fix/63-gis-query-ilike 2026-11-02 16:28:01 +08:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
jiaoce/xm_txys2_back!64
No description provided.