fix(database): 修复导航查询条件和信用信息搜索功能

- 修正了CmsNavigationMapper中cms_model表关联查询条件,添加model=0的过滤条件
- 扩展了CreditXgxfMapper中的关键词搜索范围,增加原告、被告、法院名称和其他当事人字段的搜索支持
- 优化了数据库查询逻辑以提高搜索准确性和性能
This commit is contained in:
2026-02-09 10:01:20 +08:00
parent 15744e668b
commit 01cd94e8b0
2 changed files with 5 additions and 1 deletions

View File

@@ -7,7 +7,7 @@
SELECT a.*, b.title as parentName, b.position as parentPosition, c.name as modelName
FROM cms_navigation a
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>
<if test="param.navigationId != null">
AND a.navigation_id = #{param.navigationId}

View File

@@ -76,6 +76,10 @@
AND (a.comments LIKE CONCAT('%', #{param.keywords}, '%')
OR b.name LIKE CONCAT('%', #{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>
</where>