新增涉疑交易明细筛选
This commit is contained in:
@@ -11,6 +11,9 @@ public class CcdiProjectSuspiciousTransactionQueryDTO {
|
||||
/** 项目ID */
|
||||
private Long projectId;
|
||||
|
||||
/** 模型编码 */
|
||||
private String modelCode;
|
||||
|
||||
/** 涉疑类型 */
|
||||
private String suspiciousType;
|
||||
|
||||
|
||||
@@ -625,6 +625,11 @@ public class CcdiProjectOverviewServiceImpl implements ICcdiProjectOverviewServi
|
||||
}
|
||||
|
||||
private void normalizeSuspiciousTransactionQuery(CcdiProjectSuspiciousTransactionQueryDTO queryDTO) {
|
||||
if (queryDTO.getModelCode() != null && !queryDTO.getModelCode().isBlank()) {
|
||||
queryDTO.setModelCode(queryDTO.getModelCode().trim().toUpperCase());
|
||||
} else {
|
||||
queryDTO.setModelCode(null);
|
||||
}
|
||||
if (queryDTO.getSuspiciousType() == null || queryDTO.getSuspiciousType().isBlank()) {
|
||||
queryDTO.setSuspiciousType("ALL");
|
||||
return;
|
||||
|
||||
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user