62 changed files with 1265 additions and 205 deletions
@ -0,0 +1,7 @@ |
|||||
|
package erm.api.enums; |
||||
|
|
||||
|
public enum EconomicCapitalCalMethod { |
||||
|
WEIGHT_ADJUST, // 系数调整法
|
||||
|
IRS, // 内评法
|
||||
|
ADVANCED; // 高级法
|
||||
|
} |
@ -0,0 +1,215 @@ |
|||||
|
package erm.economiccapital.api; |
||||
|
|
||||
|
import erm.api.enums.EconomicCapitalCalMethod; |
||||
|
import io.sc.platform.orm.api.vo.BaseVo; |
||||
|
import io.sc.platform.orm.api.vo.CorporationAuditorVo; |
||||
|
|
||||
|
public class ResultRwaVo extends BaseVo { |
||||
|
private String id; |
||||
|
private String debtId; |
||||
|
private String custId; |
||||
|
private String custName; |
||||
|
private String orgName; |
||||
|
private String busCategory; |
||||
|
private String prodName; |
||||
|
private String stripline; |
||||
|
private Double assetEquity; |
||||
|
private Double ccf; |
||||
|
private String eadBigType; |
||||
|
private String eadSmallType; |
||||
|
private Double ead; |
||||
|
private Double uncoverageEad; |
||||
|
private Double rwa; |
||||
|
private Double rwaMitigation; |
||||
|
private Double weightIrs; |
||||
|
private Double weightArea; |
||||
|
private Double weightIndustry; |
||||
|
private Double weightProd; |
||||
|
private Double weightTerm; |
||||
|
private Double ecRwa; |
||||
|
private Double ecRwaAdjusted; |
||||
|
|
||||
|
public String getId() { |
||||
|
return id; |
||||
|
} |
||||
|
|
||||
|
public void setId(String id) { |
||||
|
this.id = id; |
||||
|
} |
||||
|
|
||||
|
public String getDebtId() { |
||||
|
return debtId; |
||||
|
} |
||||
|
|
||||
|
public void setDebtId(String debtId) { |
||||
|
this.debtId = debtId; |
||||
|
} |
||||
|
|
||||
|
public String getCustId() { |
||||
|
return custId; |
||||
|
} |
||||
|
|
||||
|
public void setCustId(String custId) { |
||||
|
this.custId = custId; |
||||
|
} |
||||
|
|
||||
|
public String getCustName() { |
||||
|
return custName; |
||||
|
} |
||||
|
|
||||
|
public void setCustName(String custName) { |
||||
|
this.custName = custName; |
||||
|
} |
||||
|
|
||||
|
public String getOrgName() { |
||||
|
return orgName; |
||||
|
} |
||||
|
|
||||
|
public void setOrgName(String orgName) { |
||||
|
this.orgName = orgName; |
||||
|
} |
||||
|
|
||||
|
public String getBusCategory() { |
||||
|
return busCategory; |
||||
|
} |
||||
|
|
||||
|
public void setBusCategory(String busCategory) { |
||||
|
this.busCategory = busCategory; |
||||
|
} |
||||
|
|
||||
|
public String getProdName() { |
||||
|
return prodName; |
||||
|
} |
||||
|
|
||||
|
public void setProdName(String prodName) { |
||||
|
this.prodName = prodName; |
||||
|
} |
||||
|
|
||||
|
public String getStripline() { |
||||
|
return stripline; |
||||
|
} |
||||
|
|
||||
|
public void setStripline(String stripline) { |
||||
|
this.stripline = stripline; |
||||
|
} |
||||
|
|
||||
|
public Double getAssetEquity() { |
||||
|
return assetEquity; |
||||
|
} |
||||
|
|
||||
|
public void setAssetEquity(Double assetEquity) { |
||||
|
this.assetEquity = assetEquity; |
||||
|
} |
||||
|
|
||||
|
public Double getCcf() { |
||||
|
return ccf; |
||||
|
} |
||||
|
|
||||
|
public void setCcf(Double ccf) { |
||||
|
this.ccf = ccf; |
||||
|
} |
||||
|
|
||||
|
public String getEadBigType() { |
||||
|
return eadBigType; |
||||
|
} |
||||
|
|
||||
|
public void setEadBigType(String eadBigType) { |
||||
|
this.eadBigType = eadBigType; |
||||
|
} |
||||
|
|
||||
|
public String getEadSmallType() { |
||||
|
return eadSmallType; |
||||
|
} |
||||
|
|
||||
|
public void setEadSmallType(String eadSmallType) { |
||||
|
this.eadSmallType = eadSmallType; |
||||
|
} |
||||
|
|
||||
|
public Double getEad() { |
||||
|
return ead; |
||||
|
} |
||||
|
|
||||
|
public void setEad(Double ead) { |
||||
|
this.ead = ead; |
||||
|
} |
||||
|
|
||||
|
public Double getUncoverageEad() { |
||||
|
return uncoverageEad; |
||||
|
} |
||||
|
|
||||
|
public void setUncoverageEad(Double uncoverageEad) { |
||||
|
this.uncoverageEad = uncoverageEad; |
||||
|
} |
||||
|
|
||||
|
public Double getRwa() { |
||||
|
return rwa; |
||||
|
} |
||||
|
|
||||
|
public void setRwa(Double rwa) { |
||||
|
this.rwa = rwa; |
||||
|
} |
||||
|
|
||||
|
public Double getRwaMitigation() { |
||||
|
return rwaMitigation; |
||||
|
} |
||||
|
|
||||
|
public void setRwaMitigation(Double rwaMitigation) { |
||||
|
this.rwaMitigation = rwaMitigation; |
||||
|
} |
||||
|
|
||||
|
public Double getWeightIrs() { |
||||
|
return weightIrs; |
||||
|
} |
||||
|
|
||||
|
public void setWeightIrs(Double weightIrs) { |
||||
|
this.weightIrs = weightIrs; |
||||
|
} |
||||
|
|
||||
|
public Double getWeightArea() { |
||||
|
return weightArea; |
||||
|
} |
||||
|
|
||||
|
public void setWeightArea(Double weightArea) { |
||||
|
this.weightArea = weightArea; |
||||
|
} |
||||
|
|
||||
|
public Double getWeightIndustry() { |
||||
|
return weightIndustry; |
||||
|
} |
||||
|
|
||||
|
public void setWeightIndustry(Double weightIndustry) { |
||||
|
this.weightIndustry = weightIndustry; |
||||
|
} |
||||
|
|
||||
|
public Double getWeightProd() { |
||||
|
return weightProd; |
||||
|
} |
||||
|
|
||||
|
public void setWeightProd(Double weightProd) { |
||||
|
this.weightProd = weightProd; |
||||
|
} |
||||
|
|
||||
|
public Double getWeightTerm() { |
||||
|
return weightTerm; |
||||
|
} |
||||
|
|
||||
|
public void setWeightTerm(Double weightTerm) { |
||||
|
this.weightTerm = weightTerm; |
||||
|
} |
||||
|
|
||||
|
public Double getEcRwa() { |
||||
|
return ecRwa; |
||||
|
} |
||||
|
|
||||
|
public void setEcRwa(Double ecRwa) { |
||||
|
this.ecRwa = ecRwa; |
||||
|
} |
||||
|
|
||||
|
public Double getEcRwaAdjusted() { |
||||
|
return ecRwaAdjusted; |
||||
|
} |
||||
|
|
||||
|
public void setEcRwaAdjusted(Double ecRwaAdjusted) { |
||||
|
this.ecRwaAdjusted = ecRwaAdjusted; |
||||
|
} |
||||
|
} |
@ -0,0 +1,61 @@ |
|||||
|
package erm.economiccapital.api; |
||||
|
|
||||
|
import erm.api.enums.EconomicCapitalCalMethod; |
||||
|
import io.sc.platform.orm.api.vo.CorporationAuditorVo; |
||||
|
|
||||
|
public class SchemaVo extends CorporationAuditorVo { |
||||
|
private String id; |
||||
|
private String code; |
||||
|
private String name; |
||||
|
private String description; |
||||
|
private Boolean enable; |
||||
|
private EconomicCapitalCalMethod calMethod; |
||||
|
|
||||
|
public String getId() { |
||||
|
return id; |
||||
|
} |
||||
|
|
||||
|
public void setId(String id) { |
||||
|
this.id = id; |
||||
|
} |
||||
|
|
||||
|
public String getCode() { |
||||
|
return code; |
||||
|
} |
||||
|
|
||||
|
public void setCode(String code) { |
||||
|
this.code = code; |
||||
|
} |
||||
|
|
||||
|
public String getName() { |
||||
|
return name; |
||||
|
} |
||||
|
|
||||
|
public void setName(String name) { |
||||
|
this.name = name; |
||||
|
} |
||||
|
|
||||
|
public String getDescription() { |
||||
|
return description; |
||||
|
} |
||||
|
|
||||
|
public void setDescription(String description) { |
||||
|
this.description = description; |
||||
|
} |
||||
|
|
||||
|
public Boolean getEnable() { |
||||
|
return enable; |
||||
|
} |
||||
|
|
||||
|
public void setEnable(Boolean enable) { |
||||
|
this.enable = enable; |
||||
|
} |
||||
|
|
||||
|
public EconomicCapitalCalMethod getCalMethod() { |
||||
|
return calMethod; |
||||
|
} |
||||
|
|
||||
|
public void setCalMethod(EconomicCapitalCalMethod calMethod) { |
||||
|
this.calMethod = calMethod; |
||||
|
} |
||||
|
} |
@ -0,0 +1,4 @@ |
|||||
|
<template> |
||||
|
<div></div> |
||||
|
</template> |
||||
|
<script setup lang="ts"></script> |
@ -0,0 +1,75 @@ |
|||||
|
<template> |
||||
|
<div style="height: 100%"> |
||||
|
<w-grid |
||||
|
ref="gridRef" |
||||
|
:title="$t('erm.capitalPlan.strategicTarget.grid.title')" |
||||
|
:config-button="true" |
||||
|
selection="multiple" |
||||
|
:checkbox-selection="true" |
||||
|
dense-body |
||||
|
:data-url="Environment.apiContextPath('/api/erm/economiccapital/schema')" |
||||
|
:pageable="false" |
||||
|
:sort-by="['order']" |
||||
|
:query-form-cols-num="3" |
||||
|
:query-form-fields="[]" |
||||
|
:toolbar-configure="{ noIcon: false }" |
||||
|
:toolbar-actions="['query', 'refresh', 'separator', 'add', 'clone', 'edit', 'remove', 'separator', 'view', 'separator', 'export']" |
||||
|
:columns="[ |
||||
|
{ width: 60, name: 'order', label: $t('order') }, |
||||
|
{ width: 100, name: 'category', label: $t('category') }, |
||||
|
{ width: 150, name: 'code', label: $t('code') }, |
||||
|
{ width: '100%', name: 'name', label: $t('name') }, |
||||
|
{ width: 100, name: 'lastModifier', label: $t('lastModifier') }, |
||||
|
{ width: 110, name: 'lastModifyDate', label: $t('lastModifyDate'), format: Formater.dateOnly() }, |
||||
|
]" |
||||
|
:editor="{ |
||||
|
dialog: { |
||||
|
width: '600px', |
||||
|
}, |
||||
|
form: { |
||||
|
colsNum: 1, |
||||
|
fields: [ |
||||
|
{ name: 'order', label: $t('order'), type: 'number' }, |
||||
|
{ name: 'category', label: $t('category'), type: 'text' }, |
||||
|
{ name: 'code', label: $t('code'), type: 'text', required: true }, |
||||
|
{ name: 'name', label: $t('name'), type: 'text', required: true }, |
||||
|
{ name: 't', label: $t('erm.capitalPlan.strategicTarget.grid.entity.t'), type: 'number', precision: 3 }, |
||||
|
{ name: 't1', label: $t('erm.capitalPlan.strategicTarget.grid.entity.t1'), type: 'number', precision: 3 }, |
||||
|
{ name: 't2', label: $t('erm.capitalPlan.strategicTarget.grid.entity.t2'), type: 'number', precision: 3 }, |
||||
|
{ name: 't3', label: $t('erm.capitalPlan.strategicTarget.grid.entity.t3'), type: 'number', precision: 3 }, |
||||
|
], |
||||
|
}, |
||||
|
}" |
||||
|
:viewer="{ |
||||
|
panel: { |
||||
|
columnNum: 1, |
||||
|
fields: [ |
||||
|
{ name: 'id', label: $t('id') }, |
||||
|
{ name: 'code', label: $t('code') }, |
||||
|
{ name: 'name', label: $t('name') }, |
||||
|
{ name: 'category', label: $t('category') }, |
||||
|
{ name: 't', label: $t('erm.capitalPlan.strategicTarget.grid.entity.t'), format: Formater.thousands() }, |
||||
|
{ name: 't1', label: $t('erm.capitalPlan.strategicTarget.grid.entity.t1'), format: Formater.thousands() }, |
||||
|
{ name: 't2', label: $t('erm.capitalPlan.strategicTarget.grid.entity.t2'), format: Formater.thousands() }, |
||||
|
{ name: 't3', label: $t('erm.capitalPlan.strategicTarget.grid.entity.t3'), format: Formater.thousands() }, |
||||
|
{ name: 'dataComeFrom', label: $t('dataComeFrom') }, |
||||
|
{ name: 'creator', label: $t('creator') }, |
||||
|
{ name: 'createDate', label: $t('createDate') }, |
||||
|
{ name: 'lastModifier', label: $t('lastModifier') }, |
||||
|
{ name: 'lastModifyDate', label: $t('lastModifyDate'), format: Formater.none() }, |
||||
|
{ name: 'corporationCode', label: $t('corporationCode') }, |
||||
|
], |
||||
|
}, |
||||
|
}" |
||||
|
@row-click="(evt, row, index) => {}" |
||||
|
@before-request-data="() => {}" |
||||
|
> |
||||
|
</w-grid> |
||||
|
</div> |
||||
|
</template> |
||||
|
<script setup lang="ts"> |
||||
|
import { ref } from 'vue'; |
||||
|
import { Environment, Formater } from 'platform-core'; |
||||
|
|
||||
|
const gridRef = ref(); |
||||
|
</script> |
@ -0,0 +1,340 @@ |
|||||
|
package erm.economiccapital.jpa.entity; |
||||
|
|
||||
|
import erm.api.enums.EconomicCapitalCalMethod; |
||||
|
import erm.economiccapital.api.ResultRwaVo; |
||||
|
import erm.economiccapital.api.SchemaVo; |
||||
|
import io.sc.platform.orm.converter.NumericBooleanConverter; |
||||
|
import io.sc.platform.orm.entity.BaseEntity; |
||||
|
import io.sc.platform.orm.entity.CorporationAuditorEntity; |
||||
|
import org.hibernate.annotations.GenericGenerator; |
||||
|
|
||||
|
import javax.persistence.*; |
||||
|
import javax.validation.constraints.Size; |
||||
|
|
||||
|
@Entity(name="erm.economiccapital.jpa.entity.ResultRwaEntity") |
||||
|
@Table(name="RP_EC_RESULT_RWA") |
||||
|
public class ResultRwaEntity extends BaseEntity<ResultRwaVo> { |
||||
|
//ID,主键
|
||||
|
@Id |
||||
|
@GeneratedValue(generator = "system-uuid") |
||||
|
@GenericGenerator(name = "system-uuid", strategy = "uuid2") |
||||
|
@Column(name="ID_", length=36) |
||||
|
@Size(max=36) |
||||
|
private String id; |
||||
|
|
||||
|
//债项ID
|
||||
|
@Column(name="DEBT_ID_",length=255) |
||||
|
@Size(min=1,max=255) |
||||
|
private String debtId; |
||||
|
|
||||
|
//客户ID
|
||||
|
@Column(name="CUST_ID_",length=255) |
||||
|
@Size(min=1,max=255) |
||||
|
private String custId; |
||||
|
|
||||
|
//客户名称
|
||||
|
@Column(name="CUST_NAME_",length=255) |
||||
|
@Size(min=1,max=255) |
||||
|
private String custName; |
||||
|
|
||||
|
//机构名称
|
||||
|
@Column(name="ORG_NAME_",length=255) |
||||
|
@Size(min=1,max=255) |
||||
|
private String orgName; |
||||
|
|
||||
|
//业务品种
|
||||
|
@Column(name="BUS_CATEGORY_",length=255) |
||||
|
@Size(min=1,max=255) |
||||
|
private String busCategory; |
||||
|
|
||||
|
//产品名称
|
||||
|
@Column(name="PROD_NAME_",length=255) |
||||
|
@Size(min=1,max=255) |
||||
|
private String prodName; |
||||
|
|
||||
|
//条线
|
||||
|
@Column(name="STRIPLINE_",length=255) |
||||
|
@Size(min=1,max=255) |
||||
|
private String stripline; |
||||
|
|
||||
|
//资产净额
|
||||
|
@Column(name="ASSET_EQUITY_") |
||||
|
private Double assetEquity; |
||||
|
|
||||
|
//CCF
|
||||
|
@Column(name="CCF_") |
||||
|
private Double ccf; |
||||
|
|
||||
|
//风险暴露大类
|
||||
|
@Column(name="EAD_BIG_TYPE_",length=255) |
||||
|
@Size(min=1,max=255) |
||||
|
private String eadBigType; |
||||
|
|
||||
|
//风险暴露小类
|
||||
|
@Column(name="EAD_SMALL_TYPE_",length=255) |
||||
|
@Size(min=1,max=255) |
||||
|
private String eadSmallType; |
||||
|
|
||||
|
//EAD
|
||||
|
@Column(name="EAD_") |
||||
|
private Double ead; |
||||
|
|
||||
|
//权重法未覆盖EAD
|
||||
|
@Column(name="UNCOVERAGE_EAD_") |
||||
|
private Double uncoverageEad; |
||||
|
|
||||
|
//RWA
|
||||
|
@Column(name="RWA_") |
||||
|
private Double rwa; |
||||
|
|
||||
|
//经济资本再缓释后RWA
|
||||
|
@Column(name="RWA_MITIGATION_") |
||||
|
private Double rwaMitigation; |
||||
|
|
||||
|
//评级调整系数
|
||||
|
@Column(name="WEIGHT_IRS_") |
||||
|
private Double weightIrs; |
||||
|
|
||||
|
//区域调整系数
|
||||
|
@Column(name="WEIGHT_AREA_") |
||||
|
private Double weightArea; |
||||
|
|
||||
|
//行业调整系数
|
||||
|
@Column(name="WEIGHT_INDUSTRY_") |
||||
|
private Double weightIndustry; |
||||
|
|
||||
|
//产品调整系数
|
||||
|
@Column(name="WEIGHT_PROD_") |
||||
|
private Double weightProd; |
||||
|
|
||||
|
//期限调整系数
|
||||
|
@Column(name="WEIGHT_TERM_") |
||||
|
private Double weightTerm; |
||||
|
|
||||
|
//经济资本RWA
|
||||
|
@Column(name="EC_RWA_") |
||||
|
private Double ecRwa; |
||||
|
|
||||
|
//调整后经济资本RWA
|
||||
|
@Column(name="EC_RWA_ADJUSTED") |
||||
|
private Double ecRwaAdjusted; |
||||
|
|
||||
|
@Override |
||||
|
public ResultRwaVo toVo() { |
||||
|
ResultRwaVo vo =new ResultRwaVo(); |
||||
|
super.toVo(vo); |
||||
|
vo.setId(this.getId()); |
||||
|
vo.setDebtId(this.getDebtId()); |
||||
|
vo.setCustId(this.getCustId()); |
||||
|
vo.setCustName(this.getCustName()); |
||||
|
vo.setOrgName(this.getOrgName()); |
||||
|
vo.setBusCategory(this.getBusCategory()); |
||||
|
vo.setProdName(this.getProdName()); |
||||
|
vo.setStripline(this.getStripline()); |
||||
|
vo.setAssetEquity(this.getAssetEquity()); |
||||
|
vo.setCcf(this.getCcf()); |
||||
|
vo.setEadBigType(this.getEadBigType()); |
||||
|
vo.setEadSmallType(this.getEadSmallType()); |
||||
|
vo.setEad(this.getEad()); |
||||
|
vo.setUncoverageEad(this.getUncoverageEad()); |
||||
|
vo.setRwa(this.getRwa()); |
||||
|
vo.setRwaMitigation(this.getRwaMitigation()); |
||||
|
vo.setWeightIrs(this.getWeightIrs()); |
||||
|
vo.setWeightArea(this.getWeightArea()); |
||||
|
vo.setWeightIndustry(this.getWeightIndustry()); |
||||
|
vo.setWeightProd(this.getWeightProd()); |
||||
|
vo.setWeightTerm(this.getWeightTerm()); |
||||
|
vo.setEcRwa(this.getEcRwa()); |
||||
|
vo.setEcRwaAdjusted(this.getEcRwaAdjusted()); |
||||
|
return vo; |
||||
|
} |
||||
|
|
||||
|
public ResultRwaEntity(){} |
||||
|
public ResultRwaEntity(String id){ |
||||
|
this.id =id; |
||||
|
} |
||||
|
|
||||
|
public @Size(max = 36) String getId() { |
||||
|
return id; |
||||
|
} |
||||
|
|
||||
|
public void setId(@Size(max = 36) String id) { |
||||
|
this.id = id; |
||||
|
} |
||||
|
|
||||
|
public @Size(min = 1, max = 255) String getDebtId() { |
||||
|
return debtId; |
||||
|
} |
||||
|
|
||||
|
public void setDebtId(@Size(min = 1, max = 255) String debtId) { |
||||
|
this.debtId = debtId; |
||||
|
} |
||||
|
|
||||
|
public @Size(min = 1, max = 255) String getCustId() { |
||||
|
return custId; |
||||
|
} |
||||
|
|
||||
|
public void setCustId(@Size(min = 1, max = 255) String custId) { |
||||
|
this.custId = custId; |
||||
|
} |
||||
|
|
||||
|
public @Size(min = 1, max = 255) String getCustName() { |
||||
|
return custName; |
||||
|
} |
||||
|
|
||||
|
public void setCustName(@Size(min = 1, max = 255) String custName) { |
||||
|
this.custName = custName; |
||||
|
} |
||||
|
|
||||
|
public @Size(min = 1, max = 255) String getOrgName() { |
||||
|
return orgName; |
||||
|
} |
||||
|
|
||||
|
public void setOrgName(@Size(min = 1, max = 255) String orgName) { |
||||
|
this.orgName = orgName; |
||||
|
} |
||||
|
|
||||
|
public @Size(min = 1, max = 255) String getBusCategory() { |
||||
|
return busCategory; |
||||
|
} |
||||
|
|
||||
|
public void setBusCategory(@Size(min = 1, max = 255) String busCategory) { |
||||
|
this.busCategory = busCategory; |
||||
|
} |
||||
|
|
||||
|
public @Size(min = 1, max = 255) String getProdName() { |
||||
|
return prodName; |
||||
|
} |
||||
|
|
||||
|
public void setProdName(@Size(min = 1, max = 255) String prodName) { |
||||
|
this.prodName = prodName; |
||||
|
} |
||||
|
|
||||
|
public @Size(min = 1, max = 255) String getStripline() { |
||||
|
return stripline; |
||||
|
} |
||||
|
|
||||
|
public void setStripline(@Size(min = 1, max = 255) String stripline) { |
||||
|
this.stripline = stripline; |
||||
|
} |
||||
|
|
||||
|
public Double getAssetEquity() { |
||||
|
return assetEquity; |
||||
|
} |
||||
|
|
||||
|
public void setAssetEquity(Double assetEquity) { |
||||
|
this.assetEquity = assetEquity; |
||||
|
} |
||||
|
|
||||
|
public Double getCcf() { |
||||
|
return ccf; |
||||
|
} |
||||
|
|
||||
|
public void setCcf(Double ccf) { |
||||
|
this.ccf = ccf; |
||||
|
} |
||||
|
|
||||
|
public Double getEad() { |
||||
|
return ead; |
||||
|
} |
||||
|
|
||||
|
public @Size(min = 1, max = 255) String getEadBigType() { |
||||
|
return eadBigType; |
||||
|
} |
||||
|
|
||||
|
public void setEadBigType(@Size(min = 1, max = 255) String eadBigType) { |
||||
|
this.eadBigType = eadBigType; |
||||
|
} |
||||
|
|
||||
|
public @Size(min = 1, max = 255) String getEadSmallType() { |
||||
|
return eadSmallType; |
||||
|
} |
||||
|
|
||||
|
public void setEadSmallType(@Size(min = 1, max = 255) String eadSmallType) { |
||||
|
this.eadSmallType = eadSmallType; |
||||
|
} |
||||
|
|
||||
|
public void setEad(Double ead) { |
||||
|
this.ead = ead; |
||||
|
} |
||||
|
|
||||
|
public Double getUncoverageEad() { |
||||
|
return uncoverageEad; |
||||
|
} |
||||
|
|
||||
|
public void setUncoverageEad(Double uncoverageEad) { |
||||
|
this.uncoverageEad = uncoverageEad; |
||||
|
} |
||||
|
|
||||
|
public Double getRwa() { |
||||
|
return rwa; |
||||
|
} |
||||
|
|
||||
|
public void setRwa(Double rwa) { |
||||
|
this.rwa = rwa; |
||||
|
} |
||||
|
|
||||
|
public Double getRwaMitigation() { |
||||
|
return rwaMitigation; |
||||
|
} |
||||
|
|
||||
|
public void setRwaMitigation(Double rwaMitigation) { |
||||
|
this.rwaMitigation = rwaMitigation; |
||||
|
} |
||||
|
|
||||
|
public Double getWeightIrs() { |
||||
|
return weightIrs; |
||||
|
} |
||||
|
|
||||
|
public void setWeightIrs(Double weightIrs) { |
||||
|
this.weightIrs = weightIrs; |
||||
|
} |
||||
|
|
||||
|
public Double getWeightArea() { |
||||
|
return weightArea; |
||||
|
} |
||||
|
|
||||
|
public void setWeightArea(Double weightArea) { |
||||
|
this.weightArea = weightArea; |
||||
|
} |
||||
|
|
||||
|
public Double getWeightIndustry() { |
||||
|
return weightIndustry; |
||||
|
} |
||||
|
|
||||
|
public void setWeightIndustry(Double weightIndustry) { |
||||
|
this.weightIndustry = weightIndustry; |
||||
|
} |
||||
|
|
||||
|
public Double getWeightProd() { |
||||
|
return weightProd; |
||||
|
} |
||||
|
|
||||
|
public void setWeightProd(Double weightProd) { |
||||
|
this.weightProd = weightProd; |
||||
|
} |
||||
|
|
||||
|
public Double getWeightTerm() { |
||||
|
return weightTerm; |
||||
|
} |
||||
|
|
||||
|
public void setWeightTerm(Double weightTerm) { |
||||
|
this.weightTerm = weightTerm; |
||||
|
} |
||||
|
|
||||
|
public Double getEcRwa() { |
||||
|
return ecRwa; |
||||
|
} |
||||
|
|
||||
|
public void setEcRwa(Double ecRwa) { |
||||
|
this.ecRwa = ecRwa; |
||||
|
} |
||||
|
|
||||
|
public Double getEcRwaAdjusted() { |
||||
|
return ecRwaAdjusted; |
||||
|
} |
||||
|
|
||||
|
public void setEcRwaAdjusted(Double ecRwaAdjusted) { |
||||
|
this.ecRwaAdjusted = ecRwaAdjusted; |
||||
|
} |
||||
|
} |
@ -0,0 +1,112 @@ |
|||||
|
package erm.economiccapital.jpa.entity; |
||||
|
|
||||
|
import erm.api.enums.EconomicCapitalCalMethod; |
||||
|
import erm.economiccapital.api.SchemaVo; |
||||
|
import io.sc.platform.orm.converter.NumericBooleanConverter; |
||||
|
import io.sc.platform.orm.entity.CorporationAuditorEntity; |
||||
|
import org.hibernate.annotations.GenericGenerator; |
||||
|
|
||||
|
import javax.persistence.*; |
||||
|
import javax.validation.constraints.Size; |
||||
|
|
||||
|
@Entity(name="erm.economiccapital.jpa.entity.SchemaEntity") |
||||
|
@Table(name="RP_EC_SCHEMA") |
||||
|
public class SchemaEntity extends CorporationAuditorEntity<SchemaVo> { |
||||
|
//ID,主键
|
||||
|
@Id |
||||
|
@GeneratedValue(generator = "system-uuid") |
||||
|
@GenericGenerator(name = "system-uuid", strategy = "uuid2") |
||||
|
@Column(name="ID_", length=36) |
||||
|
@Size(max=36) |
||||
|
private String id; |
||||
|
|
||||
|
//代码
|
||||
|
@Column(name="CODE_",nullable=false,length=255) |
||||
|
@Size(max=255) |
||||
|
private String code; |
||||
|
|
||||
|
//名称
|
||||
|
@Column(name="NAME_",nullable=false, length=255) |
||||
|
@Size(min=1,max=255) |
||||
|
private String name; |
||||
|
|
||||
|
//描述
|
||||
|
@Column(name="DESCRIPTION_",nullable=false, length=255) |
||||
|
@Size(min=1,max=255) |
||||
|
private String description; |
||||
|
|
||||
|
@Column(name="ENABLE_") |
||||
|
@Convert(converter= NumericBooleanConverter.class) |
||||
|
private Boolean enable; |
||||
|
|
||||
|
// 计算方法
|
||||
|
@Column(name="CAL_METHOD_",length=20) |
||||
|
@Size(max=20) |
||||
|
private EconomicCapitalCalMethod calMethod; |
||||
|
|
||||
|
@Override |
||||
|
public SchemaVo toVo() { |
||||
|
SchemaVo vo =new SchemaVo(); |
||||
|
super.toVo(vo); |
||||
|
vo.setId(this.getId()); |
||||
|
vo.setCode(this.getCode()); |
||||
|
vo.setName(this.getName()); |
||||
|
vo.setDescription(this.getDescription()); |
||||
|
vo.setEnable(this.getEnable()); |
||||
|
vo.setCalMethod(this.getCalMethod()); |
||||
|
return vo; |
||||
|
} |
||||
|
|
||||
|
public SchemaEntity(){} |
||||
|
public SchemaEntity(String id){ |
||||
|
this.id =id; |
||||
|
} |
||||
|
|
||||
|
public @Size(max = 36) String getId() { |
||||
|
return id; |
||||
|
} |
||||
|
|
||||
|
public void setId(@Size(max = 36) String id) { |
||||
|
this.id = id; |
||||
|
} |
||||
|
|
||||
|
public @Size(max = 255) String getCode() { |
||||
|
return code; |
||||
|
} |
||||
|
|
||||
|
public void setCode(@Size(max = 255) String code) { |
||||
|
this.code = code; |
||||
|
} |
||||
|
|
||||
|
public @Size(min = 1, max = 255) String getName() { |
||||
|
return name; |
||||
|
} |
||||
|
|
||||
|
public void setName(@Size(min = 1, max = 255) String name) { |
||||
|
this.name = name; |
||||
|
} |
||||
|
|
||||
|
public @Size(min = 1, max = 255) String getDescription() { |
||||
|
return description; |
||||
|
} |
||||
|
|
||||
|
public void setDescription(@Size(min = 1, max = 255) String description) { |
||||
|
this.description = description; |
||||
|
} |
||||
|
|
||||
|
public Boolean getEnable() { |
||||
|
return enable; |
||||
|
} |
||||
|
|
||||
|
public void setEnable(Boolean enable) { |
||||
|
this.enable = enable; |
||||
|
} |
||||
|
|
||||
|
public @Size(max = 20) EconomicCapitalCalMethod getCalMethod() { |
||||
|
return calMethod; |
||||
|
} |
||||
|
|
||||
|
public void setCalMethod(@Size(max = 20) EconomicCapitalCalMethod calMethod) { |
||||
|
this.calMethod = calMethod; |
||||
|
} |
||||
|
} |
@ -0,0 +1,85 @@ |
|||||
|
<?xml version="1.0" encoding="UTF-8"?> |
||||
|
<databaseChangeLog |
||||
|
xmlns="http://www.liquibase.org/xml/ns/dbchangelog" |
||||
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
||||
|
xmlns:ext="http://www.liquibase.org/xml/ns/dbchangelog-ext" |
||||
|
xsi:schemaLocation=" |
||||
|
http://www.liquibase.org/xml/ns/dbchangelog |
||||
|
http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-4.1.xsd |
||||
|
http://www.liquibase.org/xml/ns/dbchangelog-ext |
||||
|
http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd |
||||
|
" |
||||
|
> |
||||
|
<changeSet id="erm.capitalpan_1.0.0_20221020__ERM Economic Capital Schema DDL" author="platform"> |
||||
|
<!-- 经济资本计算方案表 --> |
||||
|
<createTable tableName="RP_EC_SCHEMA" remarks="经济资本计算方案表"> |
||||
|
<column name="ID_" type="NVARCHAR(36)" remarks="ID"> |
||||
|
<constraints primaryKey="true"/> |
||||
|
</column> |
||||
|
<column name="CODE_" type="NVARCHAR(255)" remarks="代码"/> |
||||
|
<column name="NAME_" type="NVARCHAR(255)" remarks="名称"/> |
||||
|
<column name="DESCRIPTION_" type="NVARCHAR(255)" remarks="描述"></column> |
||||
|
<column name="ENABLE_" type="SMALLINT" remarks="是否可用(0:不可用,1:可用)"></column> |
||||
|
<column name="CAL_METHOD" type="NVARCHAR(20)" remarks="计算方法"></column> |
||||
|
|
||||
|
<column name="JPA_VERSION_" type="INTEGER" remarks="JPA乐观锁版本"/> |
||||
|
<column name="DATA_COME_FROM_" type="NVARCHAR(10)" remarks="数据来源(INPUT:手工录入,IMPORT:系统自动导入)"/> |
||||
|
<column name="CREATOR_" type="NVARCHAR(255)" remarks="创建人"/> |
||||
|
<column name="CREATE_DATE_" type="DATETIME" remarks="创建日期"/> |
||||
|
<column name="LAST_MODIFIER_" type="NVARCHAR(255)" remarks="最后修改人"/> |
||||
|
<column name="LAST_MODIFYDATE_" type="DATETIME" remarks="最后修改日期"/> |
||||
|
<column name="CORP_CODE_" type="NVARCHAR(255)" remarks="所属法人代码"/> |
||||
|
</createTable> |
||||
|
<addUniqueConstraint tableName="RP_EC_SCHEMA" columnNames="CODE_,CORP_CODE_"></addUniqueConstraint> |
||||
|
<addNotNullConstraint columnName="CODE_" columnDataType="NVARCHAR(255)" tableName="RP_EC_SCHEMA" constraintName="CONST_RP_EC_SCHEMA_CODE"/> |
||||
|
<addNotNullConstraint columnName="DATA_COME_FROM_" columnDataType="NVARCHAR(10)" tableName="RP_EC_SCHEMA" constraintName="CONST_RP_EC_SCHEMA_DCF"/> |
||||
|
<addNotNullConstraint columnName="CORP_CODE_" columnDataType="NVARCHAR(255)" tableName="RP_EC_SCHEMA" constraintName="CONST_RP_EC_SCHEMA_CORP"/> |
||||
|
<addDefaultValue columnName="DATA_COME_FROM_" columnDataType="NVARCHAR(10)" tableName="RP_EC_SCHEMA" defaultValue="INPUT"/> |
||||
|
<addDefaultValue columnName="CORP_CODE_" columnDataType="NVARCHAR(255)" tableName="RP_EC_SCHEMA" defaultValue="_PRIMARY_"/> |
||||
|
|
||||
|
|
||||
|
<!-- 经济资本计算结果表(RWA) --> |
||||
|
<createTable tableName="RP_EC_RESULT_RWA" remarks="经济资本计算结果表(RWA)"> |
||||
|
<column name="ID_" type="NVARCHAR(36)" remarks="ID"> |
||||
|
<constraints primaryKey="true"/> |
||||
|
</column> |
||||
|
<column name="DEBT_ID_" type="NVARCHAR(255)" remarks="债项ID"/> |
||||
|
<column name="CUST_ID_" type="NVARCHAR(255)" remarks="客户ID"/> |
||||
|
<column name="CUST_NAME_" type="NVARCHAR(255)" remarks="客户名称"/> |
||||
|
<column name="ORG_NAME_" type="NVARCHAR(255)" remarks="机构名称"/> |
||||
|
<column name="BUS_CATEGORY_" type="NVARCHAR(255)" remarks="业务品种"/> |
||||
|
<column name="PROD_NAME_" type="NVARCHAR(255)" remarks="产品名称"/> |
||||
|
<column name="ASSET_EQUITY_" type="NUMERIC(22,6)" remarks="资产净额"/> |
||||
|
<column name="CCF_" type="NUMERIC(22,6)" remarks="CCF"/> |
||||
|
<column name="EAD_BIG_TYPE_" type="NVARCHAR(255)" remarks="风险暴露大类"/> |
||||
|
<column name="EAD_SMALL_TYPE_" type="NVARCHAR(255)" remarks="风险暴露小类"/> |
||||
|
<column name="EAD_" type="NUMERIC(22,6)" remarks="EAD"/> |
||||
|
<column name="UNCOVERAGE_EAD_" type="NUMERIC(22,6)" remarks="权重法未覆盖EAD"/> |
||||
|
<column name="RWA" type="NUMERIC(22,6)" remarks="RWA"/> |
||||
|
<column name="RWA_MITIGATION_" type="NUMERIC(22,6)" remarks="经济资本再缓释后RWA"/> |
||||
|
<column name="STRIPLINE_" type="NVARCHAR(255)" remarks="条线"/> |
||||
|
<column name="WEIGHT_IRS_" type="NUMERIC(22,6)" remarks="评级调整系数"/> |
||||
|
<column name="WEIGHT_AREA_" type="NUMERIC(22,6)" remarks="区域调整系数"/> |
||||
|
<column name="WEIGHT_INDUSTRY_" type="NUMERIC(22,6)" remarks="行业调整系数"/> |
||||
|
<column name="WEIGHT_PROD_" type="NUMERIC(22,6)" remarks="产品调整系数"/> |
||||
|
<column name="WEIGHT_TERM_" type="NUMERIC(22,6)" remarks="期限调整系数"/> |
||||
|
<column name="EC_RWA_" type="NUMERIC(22,6)" remarks="经济资本RWA"/> |
||||
|
<column name="EC_RWA_ADJUSTED" type="NUMERIC(22,6)" remarks="调整后经济资本RWA"/> |
||||
|
</createTable> |
||||
|
|
||||
|
<!-- 经济资本计算结果表(风险暴露缓释) --> |
||||
|
<createTable tableName="RP_EC_RESULT_MITIGATION" remarks="经济资本计算结果表(风险暴露缓释)"> |
||||
|
<column name="ID_" type="NVARCHAR(36)" remarks="ID"> |
||||
|
<constraints primaryKey="true"/> |
||||
|
</column> |
||||
|
</createTable> |
||||
|
|
||||
|
<!-- 经济资本计算结果表(其他) --> |
||||
|
<createTable tableName="RP_EC_RESULT_OTHER" remarks="经济资本计算结果表(其他)"> |
||||
|
<column name="ID_" type="NVARCHAR(36)" remarks="ID"> |
||||
|
<constraints primaryKey="true"/> |
||||
|
</column> |
||||
|
</createTable> |
||||
|
</changeSet> |
||||
|
</databaseChangeLog> |
||||
|
|
@ -0,0 +1,4 @@ |
|||||
|
[appendix] |
||||
|
= Docker 安装 |
||||
|
|
||||
|
include::ubuntu/ubuntu.adoc[leveloffset] |
@ -0,0 +1,47 @@ |
|||||
|
== Ubuntu 24.04 LTS |
||||
|
=== 卸载 |
||||
|
[source,bash] |
||||
|
---- |
||||
|
sudo apt remove docker docker-engine docker.io containerd runc |
||||
|
---- |
||||
|
|
||||
|
=== 安装依赖 |
||||
|
[source,bash] |
||||
|
---- |
||||
|
sudo apt -y install ca-certificates curl gnupg lsb-release |
||||
|
---- |
||||
|
|
||||
|
=== 添加密钥 |
||||
|
[source,bash] |
||||
|
---- |
||||
|
curl -fsSL http://mirrors.aliyun.com/docker-ce/linux/ubuntu/gpg | sudo apt-key add - |
||||
|
---- |
||||
|
|
||||
|
=== 添加 Docker 软件源 |
||||
|
[source,bash] |
||||
|
---- |
||||
|
sudo add-apt-repository "deb [arch=$(dpkg --print-architecture)] http://mirrors.aliyun.com/docker-ce/linux/ubuntu $(lsb_release -cs) stable" |
||||
|
---- |
||||
|
|
||||
|
=== 安装 docker |
||||
|
[source,bash] |
||||
|
---- |
||||
|
sudo apt -y install docker-ce docker-ce-cli containerd.io docker-compose-plugin |
||||
|
---- |
||||
|
|
||||
|
=== 将当前用户添加到 docker 组中 |
||||
|
[source,bash] |
||||
|
---- |
||||
|
sudo gpasswd -a 当前登录用户名(name) docker |
||||
|
---- |
||||
|
|
||||
|
=== 启动 docker |
||||
|
---- |
||||
|
systemctl start docker |
||||
|
---- |
||||
|
|
||||
|
=== 查看 docker 状态 |
||||
|
---- |
||||
|
systemctl status docker |
||||
|
---- |
||||
|
|
@ -1,17 +1,5 @@ |
|||||
[appendix] |
[appendix] |
||||
= Linux |
= Ubuntu |
||||
== 将二进制文件以16进制形式显示 |
|
||||
[source,bash] |
|
||||
---- |
|
||||
xxd 文件.zip > 文件.hex |
|
||||
---- |
|
||||
|
|
||||
== 文件比较 |
include::ubuntu/ubuntu.adoc[leveloffset] |
||||
[source,bash] |
|
||||
---- |
|
||||
# 将 文件1 和 文件2 的比较结果输出到控制台中 |
|
||||
diff 文件1 文件2 |
|
||||
|
|
||||
# 将 文件1 和 文件2 的比较结果输出到 diff.txt 文件中 |
|
||||
diff 文件1 文件2 > diff.txt |
|
||||
---- |
|
@ -0,0 +1,27 @@ |
|||||
|
== 将二进制文件以16进制形式显示 |
||||
|
[source,bash] |
||||
|
---- |
||||
|
xxd 文件.zip > 文件.hex |
||||
|
---- |
||||
|
|
||||
|
== 文件比较 |
||||
|
[source,bash] |
||||
|
---- |
||||
|
# 将 文件1 和 文件2 的比较结果输出到控制台中 |
||||
|
diff 文件1 文件2 |
||||
|
|
||||
|
# 将 文件1 和 文件2 的比较结果输出到 diff.txt 文件中 |
||||
|
diff 文件1 文件2 > diff.txt |
||||
|
---- |
||||
|
|
||||
|
== vi 无法正常使用方向键和退回键 |
||||
|
[source,bash] |
||||
|
---- |
||||
|
vi /etc/vim/vimrc.tiny |
||||
|
|
||||
|
# 添加或修改以下内容 |
||||
|
set nocompatible # 方向键 |
||||
|
set backspace=2 # 退回键 |
||||
|
|
||||
|
# 保存并退出,重新运行 vi 后就可以正常使用方向键和退回键了 |
||||
|
---- |
@ -0,0 +1,21 @@ |
|||||
|
== 设置 IP 地址 |
||||
|
|
||||
|
|
||||
|
curl -X POST http://172.16.70.100:8000/service/rest/v1/repositories/maven/proxy -H "Content-Type: application/json" --user "admin:admin" --data @./maven/aliyun-apache-snapshots.json |
||||
|
curl -X POST http://172.16.70.100:8000/service/rest/v1/repositories/maven/proxy -H "Content-Type: application/json" --user "admin:admin" --data @./maven/aliyun-google.json |
||||
|
curl -X POST http://172.16.70.100:8000/service/rest/v1/repositories/maven/proxy -H "Content-Type: application/json" --user "admin:admin" --data @./maven/aliyun-gradle-plugin.json |
||||
|
curl -X POST http://172.16.70.100:8000/service/rest/v1/repositories/maven/proxy -H "Content-Type: application/json" --user "admin:admin" --data @./maven/aliyun-grails-core.json |
||||
|
curl -X POST http://172.16.70.100:8000/service/rest/v1/repositories/maven/proxy -H "Content-Type: application/json" --user "admin:admin" --data @./maven/aliyun-public.json |
||||
|
curl -X POST http://172.16.70.100:8000/service/rest/v1/repositories/maven/proxy -H "Content-Type: application/json" --user "admin:admin" --data @./maven/aliyun-spring.json |
||||
|
curl -X POST http://172.16.70.100:8000/service/rest/v1/repositories/maven/proxy -H "Content-Type: application/json" --user "admin:admin" --data @./maven/aliyun-spring-plugin.json |
||||
|
|
||||
|
# 更新 maven-public |
||||
|
curl -X PUT http://172.16.70.100:8000/service/rest/v1/repositories/maven/group/maven-public -H "Content-Type: application/json" --user "admin:admin" --data @./maven/group-public.json |
||||
|
|
||||
|
# 构建 npm 仓库 |
||||
|
curl -X POST http://172.16.70.100:8000/service/rest/v1/repositories/npm/hosted -H "Content-Type: application/json" --user "admin:admin" --data @./npm/npm-releases.json |
||||
|
curl -X POST http://172.16.70.100:8000/service/rest/v1/repositories/npm/proxy -H "Content-Type: application/json" --user "admin:admin" --data @./npm/npmjs.json |
||||
|
curl -X POST http://172.16.70.100:8000/service/rest/v1/repositories/npm/proxy -H "Content-Type: application/json" --user "admin:admin" --data @./npm/npmmirror.json |
||||
|
curl -X POST http://172.16.70.100:8000/service/rest/v1/repositories/npm/proxy -H "Content-Type: application/json" --user "admin:admin" --data @./npm/taobao.json |
||||
|
|
||||
|
curl -X POST http://172.16.70.100:8000/service/rest/v1/repositories/npm/group -H "Content-Type: application/json" --user "admin:admin" --data @./npm/npm-public.json |
Loading…
Reference in new issue