feat(mapper): 扩展关键词搜索功能支持更多字段
- 在CreditAdministrativeLicenseMapper中添加code字段搜索 - 在CreditBankruptcyMapper中添加code字段搜索 - 在CreditBranchMapper中添加name和curator字段搜索 - 在CreditHistoricalLegalPersonMapper中添加name字段搜索 - 在CreditJudiciaryMapper中添加code字段搜索 - 在CreditPatentMapper中添加public_no和register_no字段搜索 - 在CreditSuspectedRelationshipMapper中添加name字段搜索
This commit is contained in:
@@ -75,6 +75,7 @@
|
||||
<if test="param.keywords != null">
|
||||
AND (a.comments LIKE CONCAT('%', #{param.keywords}, '%')
|
||||
OR b.name LIKE CONCAT('%', #{param.keywords}, '%')
|
||||
OR a.code LIKE CONCAT('%', #{param.keywords}, '%')
|
||||
)
|
||||
</if>
|
||||
</where>
|
||||
|
||||
@@ -64,6 +64,7 @@
|
||||
<if test="param.keywords != null">
|
||||
AND (a.comments LIKE CONCAT('%', #{param.keywords}, '%')
|
||||
OR b.name LIKE CONCAT('%', #{param.keywords}, '%')
|
||||
OR a.code LIKE CONCAT('%', #{param.keywords}, '%')
|
||||
)
|
||||
</if>
|
||||
</where>
|
||||
|
||||
@@ -63,6 +63,8 @@
|
||||
<if test="param.keywords != null">
|
||||
AND (a.comments LIKE CONCAT('%', #{param.keywords}, '%')
|
||||
OR b.name LIKE CONCAT('%', #{param.keywords}, '%')
|
||||
OR a.name LIKE CONCAT('%', #{param.keywords}, '%')
|
||||
OR a.curator LIKE CONCAT('%', #{param.keywords}, '%')
|
||||
)
|
||||
</if>
|
||||
</where>
|
||||
|
||||
@@ -57,6 +57,7 @@
|
||||
<if test="param.keywords != null">
|
||||
AND (a.comments LIKE CONCAT('%', #{param.keywords}, '%')
|
||||
OR b.name LIKE CONCAT('%', #{param.keywords}, '%')
|
||||
OR a.name LIKE CONCAT('%', #{param.keywords}, '%')
|
||||
)
|
||||
</if>
|
||||
</where>
|
||||
|
||||
@@ -96,6 +96,7 @@
|
||||
<if test="param.keywords != null">
|
||||
AND (a.name LIKE CONCAT('%', #{param.keywords}, '%')
|
||||
OR b.name LIKE CONCAT('%', #{param.keywords}, '%')
|
||||
OR a.code LIKE CONCAT('%', #{param.keywords}, '%')
|
||||
)
|
||||
</if>
|
||||
</where>
|
||||
|
||||
@@ -75,6 +75,8 @@
|
||||
<if test="param.keywords != null">
|
||||
AND (a.comments LIKE CONCAT('%', #{param.keywords}, '%')
|
||||
OR b.name LIKE CONCAT('%', #{param.keywords}, '%')
|
||||
OR a.public_no LIKE CONCAT('%', #{param.keywords}, '%')
|
||||
OR a.register_no LIKE CONCAT('%', #{param.keywords}, '%')
|
||||
)
|
||||
</if>
|
||||
</where>
|
||||
|
||||
@@ -72,6 +72,7 @@
|
||||
<if test="param.keywords != null">
|
||||
AND (a.comments LIKE CONCAT('%', #{param.keywords}, '%')
|
||||
OR b.name LIKE CONCAT('%', #{param.keywords}, '%')
|
||||
OR a.name LIKE CONCAT('%', #{param.keywords}, '%')
|
||||
)
|
||||
</if>
|
||||
</where>
|
||||
|
||||
Reference in New Issue
Block a user