fix(database): 修复导航查询条件和信用信息搜索功能
- 修正了CmsNavigationMapper中cms_model表关联查询条件,添加model=0的过滤条件 - 扩展了CreditXgxfMapper中的关键词搜索范围,增加原告、被告、法院名称和其他当事人字段的搜索支持 - 优化了数据库查询逻辑以提高搜索准确性和性能
This commit is contained in:
@@ -7,7 +7,7 @@
|
|||||||
SELECT a.*, b.title as parentName, b.position as parentPosition, c.name as modelName
|
SELECT a.*, b.title as parentName, b.position as parentPosition, c.name as modelName
|
||||||
FROM cms_navigation a
|
FROM cms_navigation a
|
||||||
LEFT JOIN cms_navigation b ON a.parent_id = b.navigation_id
|
LEFT JOIN cms_navigation b ON a.parent_id = b.navigation_id
|
||||||
LEFT JOIN cms_model c ON a.model = c.model
|
LEFT JOIN cms_model c ON a.model = c.model AND c.model = 0
|
||||||
<where>
|
<where>
|
||||||
<if test="param.navigationId != null">
|
<if test="param.navigationId != null">
|
||||||
AND a.navigation_id = #{param.navigationId}
|
AND a.navigation_id = #{param.navigationId}
|
||||||
|
|||||||
@@ -76,6 +76,10 @@
|
|||||||
AND (a.comments LIKE CONCAT('%', #{param.keywords}, '%')
|
AND (a.comments LIKE CONCAT('%', #{param.keywords}, '%')
|
||||||
OR b.name LIKE CONCAT('%', #{param.keywords}, '%')
|
OR b.name LIKE CONCAT('%', #{param.keywords}, '%')
|
||||||
OR a.case_number = #{param.keywords}
|
OR a.case_number = #{param.keywords}
|
||||||
|
OR a.plaintiff_appellant = #{param.keywords}
|
||||||
|
OR a.appellee = #{param.keywords}
|
||||||
|
OR a.court_name = #{param.keywords}
|
||||||
|
OR a.other_parties_third_party LIKE CONCAT('%', #{param.keywords}, '%')
|
||||||
)
|
)
|
||||||
</if>
|
</if>
|
||||||
</where>
|
</where>
|
||||||
|
|||||||
Reference in New Issue
Block a user