新增涉疑交易明细筛选

This commit is contained in:
wjj
2026-07-03 09:15:14 +08:00
parent 6d2f40843a
commit 8b9226643c
7 changed files with 169 additions and 25 deletions

View File

@@ -972,6 +972,9 @@
from ccdi_bank_statement_tag_result tr
where tr.project_id = #{query.projectId}
and tr.bank_statement_id is not null
<if test="query.modelCode != null and query.modelCode != ''">
and tr.model_code = #{query.modelCode}
</if>
</sql>
<sql id="suspiciousTransactionNameHitSql">
@@ -1203,6 +1206,15 @@
where final_result.hasModelRuleHit = 1 or final_result.hasNameListHit = 1
</otherwise>
</choose>
<if test="query.modelCode != null and query.modelCode != ''">
and exists (
select 1
from ccdi_bank_statement_tag_result model_filter
where model_filter.project_id = #{query.projectId}
and model_filter.bank_statement_id = final_result.bankStatementId
and model_filter.model_code = #{query.modelCode}
)
</if>
</sql>
<select id="selectSuspiciousTransactionPage" resultMap="SuspiciousTransactionItemResultMap">