fix(search): 修复查询条件中的字段映射错误

- 移除无效的 code 字段查询条件
- 修正关键词搜索中错误的字段引用,将 code 替换为 case_number
- 清理多余的参数绑定表达式
This commit is contained in:
2026-01-23 23:15:23 +08:00
parent 08ab8da7d9
commit 0035d3cd7d

View File

@@ -24,9 +24,6 @@
<if test="param.appellee != null">
AND a.appellee LIKE CONCAT('%', #{param.defendant appellee}, '%')
</if>
<if test="param.code != null">
AND a.code LIKE CONCAT('%', #{param.code appellee}, '%')
</if>
<if test="param.caseNumber != null">
AND a.case_number LIKE CONCAT('%', #{param.caseNumber}, '%')
</if>
@@ -69,7 +66,7 @@
<if test="param.keywords != null">
AND (a.comments LIKE CONCAT('%', #{param.keywords}, '%')
OR b.name LIKE CONCAT('%', #{param.keywords}, '%')
OR a.code = #{param.keywords}
OR a.case_number = #{param.keywords}
)
</if>
</where>