fix(search): 修复查询条件中的字段映射错误
- 移除无效的 code 字段查询条件 - 修正关键词搜索中错误的字段引用,将 code 替换为 case_number - 清理多余的参数绑定表达式
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user