From dd10192c1879961fd30fdd1cb501e6e50e3c0811 Mon Sep 17 00:00:00 2001 From: wkc <978997012@qq.com> Date: Mon, 24 Aug 2026 18:30:26 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=8C=E6=AD=A5=E4=BC=98=E5=8C=96=E4=BC=81?= =?UTF-8?q?=E4=B8=9A=E5=AE=A2=E6=88=B7=E6=B5=81=E7=A8=8B=E6=A8=A1=E5=9E=8B?= =?UTF-8?q?=E5=B1=95=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../domain/entity/ModelCorpOutputFields.java | 8 ++++ .../src/main/resources/data/corp_output.json | 4 ++ .../components/CorporateWorkflowDetail.vue | 1 + .../components/ModelOutputDisplay.vue | 46 +++++++++++-------- ...260824-corporate-workflow-optimization.sql | 5 ++ 5 files changed, 45 insertions(+), 19 deletions(-) create mode 100644 sql/20260824-corporate-workflow-optimization.sql diff --git a/ruoyi-loan-pricing/src/main/java/com/ruoyi/loanpricing/domain/entity/ModelCorpOutputFields.java b/ruoyi-loan-pricing/src/main/java/com/ruoyi/loanpricing/domain/entity/ModelCorpOutputFields.java index 0ba1231..6fc3390 100644 --- a/ruoyi-loan-pricing/src/main/java/com/ruoyi/loanpricing/domain/entity/ModelCorpOutputFields.java +++ b/ruoyi-loan-pricing/src/main/java/com/ruoyi/loanpricing/domain/entity/ModelCorpOutputFields.java @@ -110,8 +110,16 @@ public class ModelCorpOutputFields { private String blackCust; // 本金逾期 private String prinOverdue; + // BP_本金逾期 + private String bpPrinOverdue; // 利息逾期 private String interestOverdue; + // BP_利息逾期 + private String bpIinterestOverdue; + // 信用卡逾期 + private String cardOverdue; + // BP_信用卡逾期 + private String bpCardOverdue; // BP_灰名单与逾期 private String bpGreyOverdue; // TOTAL_BP_风险度 diff --git a/ruoyi-loan-pricing/src/main/resources/data/corp_output.json b/ruoyi-loan-pricing/src/main/resources/data/corp_output.json index 2456c18..5bbba9a 100644 --- a/ruoyi-loan-pricing/src/main/resources/data/corp_output.json +++ b/ruoyi-loan-pricing/src/main/resources/data/corp_output.json @@ -47,7 +47,11 @@ "greyCust": "0", "blackCust": "1", "prinOverdue": "0", + "bpPrinOverdue": "0", "interestOverdue": "3", + "bpIinterestOverdue": "0", + "cardOverdue": "0", + "bpCardOverdue": "0", "bpGreyOverdue": "0", "totalBpRisk": "1.2", "totalBp": "48.2", diff --git a/ruoyi-ui/src/views/loanPricing/workflow/components/CorporateWorkflowDetail.vue b/ruoyi-ui/src/views/loanPricing/workflow/components/CorporateWorkflowDetail.vue index 3211e89..0b73dfe 100644 --- a/ruoyi-ui/src/views/loanPricing/workflow/components/CorporateWorkflowDetail.vue +++ b/ruoyi-ui/src/views/loanPricing/workflow/components/CorporateWorkflowDetail.vue @@ -92,6 +92,7 @@ diff --git a/ruoyi-ui/src/views/loanPricing/workflow/components/ModelOutputDisplay.vue b/ruoyi-ui/src/views/loanPricing/workflow/components/ModelOutputDisplay.vue index 2c799bc..730153d 100644 --- a/ruoyi-ui/src/views/loanPricing/workflow/components/ModelOutputDisplay.vue +++ b/ruoyi-ui/src/views/loanPricing/workflow/components/ModelOutputDisplay.vue @@ -151,8 +151,12 @@ 模型输出结果影响BP - 汇总 - {{ row.bpLabel }}:{{ row.bpValue }} + 汇总 + + + {{ row.bpValue }} + + @@ -275,15 +279,13 @@ export default { }, corporateRelevanceRows() { return [ - this.groupedAnalysisRow([ - this.resultItem('中间业务_企业_企业互联', this.corpOutput.midEntConnect), - this.resultItem('中间业务_企业_有效价值客户', this.corpOutput.midEntEffect), - this.resultItem('中间业务_企业_国际业务', this.corpOutput.midEntInter), - this.resultItem('中间业务_企业_承兑', this.corpOutput.midEntAccept), - this.resultItem('中间业务_企业_贴现', this.corpOutput.midEntDiscount), - this.resultItem('中间业务_企业_电费代扣', this.corpOutput.midEntEleDdc), - this.resultItem('中间业务_企业_水费代扣', this.corpOutput.midEntWaterDdc) - ], 'BP_中间业务', this.corpOutput.bpMid, false, '中间业务'), + this.middleBusinessRow('中间业务_企业_企业互联', this.corpOutput.midEntConnect), + this.middleBusinessRow('中间业务_企业_有效价值客户', this.corpOutput.midEntEffect), + this.middleBusinessRow('中间业务_企业_国际业务', this.corpOutput.midEntInter), + this.middleBusinessRow('中间业务_企业_承兑', this.corpOutput.midEntAccept), + this.middleBusinessRow('中间业务_企业_贴现', this.corpOutput.midEntDiscount), + this.middleBusinessRow('中间业务_企业_电费代扣', this.corpOutput.midEntEleDdc), + this.middleBusinessRow('中间业务_企业_水费代扣', this.corpOutput.midEntWaterDdc), this.groupedAnalysisRow([ this.resultItem('代发工资户数', this.corpOutput.payroll), this.resultItem('存量贷款余额', this.corpOutput.invLoanAmount) @@ -299,21 +301,27 @@ export default { ] }, corporateRiskRows() { - return [ + const rows = [ this.analysisRow('借款期限', this.corpOutput.loanTerm, 'BP_贷款期限', this.corpOutput.bpLoanTerm), - this.analysisRow('申请金额', this.corpOutput.applyAmt, 'BP_贷款额度', this.corpOutput.bpLoanAmount), - this.groupedAnalysisRow([ + this.analysisRow('申请金额', this.corpOutput.applyAmt, 'BP_贷款额度', this.corpOutput.bpLoanAmount) + ] + if (this.guarType === '抵押' || this.guarType === '质押') { + rows.push(this.groupedAnalysisRow([ this.resultItem('抵质押类型', this.corpOutput.collType), this.resultItem('抵质押物三方所有', this.formatBoolean(this.corpOutput.collThirdParty)) - ], 'BP_抵押物', this.corpOutput.bpCollateral), + ], 'BP_抵押物', this.corpOutput.bpCollateral)) + } + rows.push( this.groupedAnalysisRow([ this.resultItem('灰名单客户', this.formatBoolean(this.corpOutput.greyCust)), - this.resultItem('黑名单客户', this.formatBoolean(this.corpOutput.blackCust)), - this.resultItem('本金逾期', this.formatBoolean(this.corpOutput.prinOverdue)), - this.resultItem('利息逾期', this.corpOutput.interestOverdue) + this.resultItem('黑名单客户', this.formatBoolean(this.corpOutput.blackCust)) ], 'BP_灰名单与逾期', this.corpOutput.bpGreyOverdue), + this.analysisRow('本金逾期', this.formatBoolean(this.corpOutput.prinOverdue), 'BP_本金逾期', this.corpOutput.bpPrinOverdue), + this.analysisRow('利息逾期', this.corpOutput.interestOverdue, 'BP_利息逾期', this.corpOutput.bpIinterestOverdue), + this.analysisRow('信用卡逾期', this.formatBoolean(this.corpOutput.cardOverdue), 'BP_信用卡逾期', this.corpOutput.bpCardOverdue), this.totalRow('TOTAL_BP_风险度', this.corpOutput.totalBpRisk) - ] + ) + return rows } }, methods: { diff --git a/sql/20260824-corporate-workflow-optimization.sql b/sql/20260824-corporate-workflow-optimization.sql new file mode 100644 index 0000000..5c8a7f2 --- /dev/null +++ b/sql/20260824-corporate-workflow-optimization.sql @@ -0,0 +1,5 @@ +-- 2026-08-24 corporate model output overdue BP fields +ALTER TABLE `model_corp_output_fields` + ADD COLUMN `bp_prin_overdue` varchar(100) DEFAULT NULL COMMENT 'BP_本金逾期' AFTER `prin_overdue`, + ADD COLUMN `bp_iinterest_overdue` varchar(100) DEFAULT NULL COMMENT 'BP_利息逾期' AFTER `interest_overdue`, + ADD COLUMN `bp_card_overdue` varchar(100) DEFAULT NULL COMMENT 'BP_信用卡逾期' AFTER `card_overdue`;