113 changed files with 28625 additions and 641 deletions
@ -0,0 +1,25 @@ |
|||||
|
/* |
||||
|
* 数据库建表 Liquibase ChangeLog XML 插件配置 |
||||
|
* 功能: 该插件配置为框架提供数据库无关的建表脚本 |
||||
|
* 使用说明: |
||||
|
* category: 建表脚本分类,可能的值包括: |
||||
|
* install : 系统安装时自动执行 |
||||
|
* order: 执行顺序 |
||||
|
* description: 描述信息 |
||||
|
* locations: 建表 liquibase changelog xml 文件位置 |
||||
|
*/ |
||||
|
|
||||
|
/* 示例 */ |
||||
|
[ |
||||
|
{ |
||||
|
"category" : "install", |
||||
|
"order" : 1000, |
||||
|
"description":"授权与认证相关数据库表结构", |
||||
|
"locations":[ |
||||
|
"liquibase/20240326_ALL_TABLES_DDL.xml", |
||||
|
"liquibase/20240401_REPORTS_TABLES_DDL.xml", |
||||
|
"liquibase/20240401_REPORTS_TABLES_DATA.xml", |
||||
|
"liquibase/20240401_REPORTS_VIEW.xml" |
||||
|
] |
||||
|
} |
||||
|
] |
@ -0,0 +1,190 @@ |
|||||
|
<?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-3.5.xsd http://www.liquibase.org/xml/ns/dbchangelog-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd"> |
||||
|
<property name="now" value="CURRENT TIMESTAMP" dbms="db2"/> |
||||
|
<property name="now" value="CURRENT_TIMESTAMP" dbms="h2"/> |
||||
|
<property name="now" value="sysdate" dbms="oracle"/> |
||||
|
<property name="now" value="now()" dbms="mysql"/> |
||||
|
<property name="now" value="now()" dbms="postgresql"/> |
||||
|
<changeSet id="20240326_ALL_TABLES_DDL" author="platform"> |
||||
|
<createTable tableName="FR_AA_ORG" remarks="机构表"> |
||||
|
<column name="ID_" type="java.sql.Types.VARCHAR(36)" remarks="ID"> |
||||
|
<constraints primaryKey="true"/> |
||||
|
</column> |
||||
|
<column name="FD_CODE" type="java.sql.Types.VARCHAR(255)" remarks="机构代码"/> |
||||
|
<column name="FD_NAME" type="java.sql.Types.VARCHAR(255)" remarks="机构名称"/> |
||||
|
<column name="FD_ENABLE" type="java.sql.Types.NUMERIC(5, 0)" remarks="是否可用"/> |
||||
|
<column name="FD_DESCRIPTION" type="java.sql.Types.VARCHAR(255)" remarks="描述"/> |
||||
|
<column name="FD_IS_DEPARTMENT" type="java.sql.Types.NUMERIC(5, 0)" remarks="是否是部门"/> |
||||
|
<column name="FD_PARENT_ID" type="java.sql.Types.VARCHAR(255)" remarks="父机构ID"/> |
||||
|
<column name="FD_DATA_COME_FROM" type="java.sql.Types.VARCHAR(10)" remarks="数据来源(MANUAL:手工录入,AUTO:系统自动导入)"/> |
||||
|
<column name="FD_CREATOR" type="java.sql.Types.VARCHAR(255)" remarks="创建人"/> |
||||
|
<column name="FD_CREATE_DATE" type="DATETIME" remarks="创建日期"/> |
||||
|
<column name="FD_LAST_MODIFIER" type="java.sql.Types.VARCHAR(255)" remarks="最后修改人"/> |
||||
|
<column name="FD_LAST_MODIFYDATE" type="DATETIME" remarks="最后修改日期"/> |
||||
|
<column name="FD_CORPORATION_CODE" type="java.sql.Types.VARCHAR(255)" remarks="所属法人代码"/> |
||||
|
</createTable> |
||||
|
<createTable tableName="IRBS_CUST_CP_INFO" remarks=""> |
||||
|
<column name="DATA_DT" type="java.sql.Types.VARCHAR(100)" remarks=""/> |
||||
|
<column name="CUST_NO" type="java.sql.Types.VARCHAR(100)" remarks="客户编号"/> |
||||
|
<column name="CUST_CNA" type="java.sql.Types.VARCHAR(300)" remarks="客户名称"/> |
||||
|
<column name="CUST_TYPE_CD" type="java.sql.Types.VARCHAR(100)" remarks="客户类型"/> |
||||
|
<column name="ORGN_CD" type="java.sql.Types.VARCHAR(100)" remarks="组织机构代码"/> |
||||
|
<column name="LEGA_BOOK_NO" type="java.sql.Types.VARCHAR(100)" remarks="法人证书号"/> |
||||
|
<column name="ORG_CRDT_CD" type="java.sql.Types.VARCHAR(100)" remarks="统一信用代码证号"/> |
||||
|
<column name="CUST_SORT_CD" type="java.sql.Types.VARCHAR(100)" remarks="客户分类"/> |
||||
|
<column name="CORP_SIZE_CD" type="java.sql.Types.VARCHAR(100)" remarks="企业规模"/> |
||||
|
<column name="INDU_SORT_CD" type="java.sql.Types.VARCHAR(100)" remarks="国标行业分类"/> |
||||
|
<column name="CHASTEN_CUST_FLAG" type="java.sql.Types.VARCHAR(100)" remarks="是否为联合惩戒名单客户"/> |
||||
|
<column name="FIRST_CRTD_CRDT_RELA_DT" type="java.sql.Types.VARCHAR(100)" remarks="与我行建立信贷关系时间"/> |
||||
|
<column name="BUILD_DT" type="java.sql.Types.VARCHAR(100)" remarks="成立日期"/> |
||||
|
<column name="UPDATE_DT" type="java.sql.Types.VARCHAR(100)" remarks="更新日期"/> |
||||
|
<column name="LEGAL_REP" type="java.sql.Types.VARCHAR(500)" remarks="法人代表"/> |
||||
|
<column name="RGST_GROUND" type="java.sql.Types.VARCHAR(300)" remarks="注册地址"/> |
||||
|
<column name="MGER_NO" type="java.sql.Types.VARCHAR(100)" remarks="管户人编号"/> |
||||
|
<column name="MGER_CNA" type="java.sql.Types.VARCHAR(100)" remarks="管户人"/> |
||||
|
<column name="MGER_ORG_NM" type="java.sql.Types.VARCHAR(100)" remarks="管户机构"/> |
||||
|
<column name="MGER_ORG_NO" type="java.sql.Types.VARCHAR(100)" remarks="管户机构编号"/> |
||||
|
<column name="MGER_ORG_NO_UP" type="java.sql.Types.VARCHAR(100)" remarks="管户机构上级"/> |
||||
|
<column name="CORP_SUBJ" type="java.sql.Types.VARCHAR(100)" remarks="企业隶属"/> |
||||
|
<column name="NATION_CD" type="java.sql.Types.VARCHAR(100)" remarks="所在国家地区"/> |
||||
|
<column name="RGST_GROUND_ADMIN_REGION_CD" type="java.sql.Types.VARCHAR(100)" remarks="所在行政区域"/> |
||||
|
<column name="LT_TRD_YEAR_INCOME_FLAG" type="java.sql.Types.VARCHAR(100)" remarks="近三年营业收入不大于三亿"/> |
||||
|
<column name="GOVER_FIN_FLT_FLAG" type="java.sql.Types.VARCHAR(100)" remarks="是否政府融资平台"/> |
||||
|
<column name="PRI_RIGHT_LIST_FLAG" type="java.sql.Types.VARCHAR(100)" remarks="是否主权名单"/> |
||||
|
<column name="YEARS3_OVDUE_30_DAY_FLAG" type="java.sql.Types.VARCHAR(100)" remarks="3年内借据逾期超过30天标志"/> |
||||
|
<column name="YEARS3_EXPAND_2_CNT_FLAG" type="java.sql.Types.VARCHAR(100)" remarks="3年内贷款展期次数2次及以上标志"/> |
||||
|
<column name="YEARS3_ADV_MONEY_30_DAY_FLAG" type="java.sql.Types.VARCHAR(100)" remarks="3年内垫款超过30天标志"/> |
||||
|
<column name="YEARS3_BOR_REPAY_2_CNT_FLAG" type="java.sql.Types.VARCHAR(100)" remarks="3年内借新还旧次数2次及以上标志"/> |
||||
|
<column name="YEARS3_MODE_MODIF_OVERDUE_2_CNT_FLAG" type="java.sql.Types.VARCHAR(100)" remarks="3年内结息方式变更后是否出现逾期2次及以上标志"/> |
||||
|
<column name="YEARS3_PRIN_REPAY_PLAN_MODIF_2_CNT_FLAG" type="java.sql.Types.VARCHAR(100)" remarks="3年内合同的本金还款计划是否变更2次及以上标志"/> |
||||
|
<column name="YEARS3_REGROUP_2_CNT_FLAG" type="java.sql.Types.CHAR" remarks="3年内重组2次及以上标志"/> |
||||
|
</createTable> |
||||
|
<createTable tableName="IRBS_LOAN_BORR_INFO" remarks=""> |
||||
|
<column name="DATA_DT" type="java.sql.Types.VARCHAR(100)" remarks=""/> |
||||
|
<column name="CUST_NO" type="java.sql.Types.VARCHAR(100)" remarks="客户号"/> |
||||
|
<column name="CUST_CNA" type="java.sql.Types.VARCHAR(300)" remarks="客户名称"/> |
||||
|
<column name="DEBENTURE_NO" type="java.sql.Types.VARCHAR(100)" remarks="借据编号"/> |
||||
|
<column name="CONT_NO" type="java.sql.Types.VARCHAR(100)" remarks="合同编号"/> |
||||
|
<column name="ORG_NO" type="java.sql.Types.VARCHAR(100)" remarks="借据所属机构编号"/> |
||||
|
<column name="FIN_ORG_NO" type="java.sql.Types.VARCHAR(100)" remarks="借据入账机构编号"/> |
||||
|
<column name="PRD_CD" type="java.sql.Types.VARCHAR(100)" remarks="借据相关产品编号"/> |
||||
|
<column name="BUSI_STATUS_CD" type="java.sql.Types.VARCHAR(100)" remarks="借据状态代码"/> |
||||
|
<column name="PRD_CD_DESC" type="java.sql.Types.VARCHAR(100)" remarks="借据业务品种"/> |
||||
|
<column name="BORR_START_DT" type="java.sql.Types.VARCHAR(100)" remarks="借据起始日期"/> |
||||
|
<column name="BORR_GIVE_DT" type="java.sql.Types.VARCHAR(100)" remarks="借据放款日期"/> |
||||
|
<column name="BORR_MATURE_DT" type="java.sql.Types.VARCHAR(100)" remarks="借据到期日期"/> |
||||
|
<column name="BORR_GIVE_AMT" type="java.sql.Types.VARCHAR(100)" remarks="借据发放金额"/> |
||||
|
<column name="TERM_UNIT_CD" type="java.sql.Types.VARCHAR(100)" remarks="期限单位代码"/> |
||||
|
<column name="CONT_TERM" type="java.sql.Types.NUMERIC(38, 6)" remarks="贷款期限"/> |
||||
|
<column name="BORR_BAL" type="java.sql.Types.NUMERIC(38, 6)" remarks="借据余额"/> |
||||
|
<column name="GUAR_TYPE_CD" type="java.sql.Types.VARCHAR(100)" remarks="担保方式"/> |
||||
|
<column name="OVERDUE_FLAG" type="java.sql.Types.VARCHAR(100)" remarks="借据逾期标志"/> |
||||
|
<column name="OVERDUE_DAYS" type="java.sql.Types.NUMERIC(38, 6)" remarks="借据逾期天数"/> |
||||
|
<column name="INT_OVER_DAYS" type="java.sql.Types.NUMERIC(38, 6)" remarks="利息逾期天数"/> |
||||
|
<column name="PRIN_OVER_DAYS" type="java.sql.Types.NUMERIC(38, 6)" remarks="本金逾期天数"/> |
||||
|
<column name="BORR_OVERDUE_BAL" type="java.sql.Types.NUMERIC(38, 6)" remarks="借据逾期余额"/> |
||||
|
<column name="OFF_OWEINT_BAL" type="java.sql.Types.NUMERIC(38, 6)" remarks="表外欠息余额"/> |
||||
|
<column name="IN_OWEINT_BAL" type="java.sql.Types.NUMERIC(38, 6)" remarks="表内欠息余额"/> |
||||
|
<column name="RECE_INT_CUMU" type="java.sql.Types.NUMERIC(38, 6)" remarks="应收利息累计"/> |
||||
|
<column name="STOP_INT_FLAG" type="java.sql.Types.VARCHAR(100)" remarks="停止计息标识"/> |
||||
|
<column name="CCY_CD" type="java.sql.Types.VARCHAR(100)" remarks="借据结算币种"/> |
||||
|
<column name="TEN_CLASS_CD" type="java.sql.Types.VARCHAR(100)" remarks="借据十级分类结果"/> |
||||
|
<column name="CANCEL_FLAG" type="java.sql.Types.VARCHAR(100)" remarks="核销标识"/> |
||||
|
<column name="CANCEL_DT" type="java.sql.Types.VARCHAR(100)" remarks="核销日期"/> |
||||
|
<column name="LOAN_USAGE" type="java.sql.Types.VARCHAR(100)" remarks="贷款用途"/> |
||||
|
<column name="EXTEND_FLAG" type="java.sql.Types.VARCHAR(100)" remarks="是否发生展期"/> |
||||
|
<column name="EXTEND_NUM" type="java.sql.Types.NUMERIC(38, 6)" remarks="贷款展期次数"/> |
||||
|
<column name="ADV_MONEY_FLAG" type="java.sql.Types.VARCHAR(100)" remarks="垫款标志"/> |
||||
|
<column name="ADV_MONEY_DAYS" type="java.sql.Types.NUMERIC(38, 6)" remarks="垫款天数"/> |
||||
|
<column name="ADV_MONEY_DAYS_LX" type="java.sql.Types.NUMERIC(38, 6)" remarks="连续垫款天数"/> |
||||
|
<column name="BOR_REPAY_CNT" type="java.sql.Types.VARCHAR(100)" remarks="借新还旧次数"/> |
||||
|
<column name="MODE_MODIF_OVERDUE_FLAG" type="java.sql.Types.VARCHAR(100)" remarks="结息方式变更后是否出现逾期"/> |
||||
|
<column name="MAJOR_LOAN_LIST_FLAG" type="java.sql.Types.VARCHAR(100)" remarks="是否符合专业贷款名单"/> |
||||
|
</createTable> |
||||
|
<createTable tableName="IRBS_ORG_INFO_CORE" remarks=""> |
||||
|
<column name="DATA_DT" type="java.sql.Types.VARCHAR(100)" remarks="数据日期"/> |
||||
|
<column name="ORG_NO" type="java.sql.Types.VARCHAR(100)" remarks="机构编号"/> |
||||
|
<column name="ORG_NAME" type="java.sql.Types.VARCHAR(100)" remarks="机构名称"/> |
||||
|
<column name="ORG_SNAME" type="java.sql.Types.VARCHAR(100)" remarks="机构简称"/> |
||||
|
<column name="UP_ORG_NO" type="java.sql.Types.VARCHAR(100)" remarks="上级机构编号"/> |
||||
|
<column name="UP_ORG_NAME" type="java.sql.Types.VARCHAR(100)" remarks="上级机构名称"/> |
||||
|
<column name="ORG_LVL" type="java.sql.Types.VARCHAR(100)" remarks="机构等级"/> |
||||
|
<column name="LEGAL_TYPE" type="java.sql.Types.VARCHAR(100)" remarks="法人类型"/> |
||||
|
<column name="VM_FLAG" type="java.sql.Types.VARCHAR(100)" remarks="虚体机构标识"/> |
||||
|
<column name="ORG_TYPE" type="java.sql.Types.VARCHAR(100)" remarks="机构类型代码"/> |
||||
|
<column name="ORG_EXELVL" type="java.sql.Types.VARCHAR(100)" remarks="机构级别代码"/> |
||||
|
<column name="ORG_STATUS" type="java.sql.Types.VARCHAR(100)" remarks="机构状态代码"/> |
||||
|
</createTable> |
||||
|
<createTable tableName="NS_CFG_MAIN_SCALE" remarks=""> |
||||
|
<column name="ID_" type="java.sql.Types.VARCHAR(36)" remarks=""> |
||||
|
<constraints primaryKey="true"/> |
||||
|
</column> |
||||
|
<column name="SCALE_LEVEL" type="java.sql.Types.VARCHAR(10)" remarks=""/> |
||||
|
<column name="PD" type="java.sql.Types.NUMERIC(10, 4)" remarks=""/> |
||||
|
<column name="SCALE_TYPE" type="java.sql.Types.VARCHAR(10)" remarks=""/> |
||||
|
<column name="ORDER_NUM" type="java.sql.Types.NUMERIC(10, 0)" remarks=""/> |
||||
|
<column name="ADMISSION_SUGGEST" type="java.sql.Types.VARCHAR(60)" remarks=""/> |
||||
|
<column name="CREATOR" type="java.sql.Types.VARCHAR(255)" remarks=""/> |
||||
|
<column name="CREATE_DATE" type="DATETIME" remarks=""/> |
||||
|
<column name="LAST_MODIFIER" type="java.sql.Types.VARCHAR(255)" remarks=""/> |
||||
|
<column name="LAST_MODIFY_DATE" type="DATETIME" remarks=""/> |
||||
|
<column name="UP_LIMIT" type="java.sql.Types.NUMERIC(10, 4)" remarks=""/> |
||||
|
<column name="DOWN_LIMIT" type="java.sql.Types.NUMERIC(10, 4)" remarks=""/> |
||||
|
</createTable> |
||||
|
<!-- 公司客户评级主表 --> |
||||
|
<createTable tableName="NS_COMPANY_RATING" remarks="公司客户评级主表"> |
||||
|
<column name="ID_" type="java.sql.Types.NVARCHAR(50)" remarks="ID主键"> |
||||
|
<constraints primaryKey="true"/> |
||||
|
</column> |
||||
|
<column name="CUST_ID" type="java.sql.Types.NVARCHAR(50)" remarks="客户ID"></column> |
||||
|
<column name="CUST_NO" type="java.sql.Types.NVARCHAR(100)" remarks="客户编号"></column> |
||||
|
<column name="CUST_NAME" type="java.sql.Types.NVARCHAR(200)" remarks="客户中文名称"></column> |
||||
|
<column name="CUST_TYPE" type="java.sql.Types.NVARCHAR(10)" remarks="客户类别(1:一般公司客户;2:金融机构及发债企业客户)"></column> |
||||
|
<column name="MANAGER_NAME" type="java.sql.Types.NVARCHAR(50)" remarks="客户经理名称"></column> |
||||
|
<column name="MANAGER_CODE" type="java.sql.Types.NVARCHAR(50)" remarks="客户经理编号"></column> |
||||
|
<column name="MANAGER_ORG_CODE" type="java.sql.Types.NVARCHAR(50)" remarks="客户经理所在机构编号"></column> |
||||
|
<column name="MANAGER_ORG_NAME" type="java.sql.Types.NVARCHAR(200)" remarks="客户经理所在机构名称"></column> |
||||
|
<column name="LAUNCH_USER" type="java.sql.Types.NVARCHAR(100)" remarks="发起人"></column> |
||||
|
<column name="QUAN_SCORE" type="java.sql.Types.NUMERIC(24, 8)" remarks="定量得分"></column> |
||||
|
<column name="QUAL_SCORE" type="java.sql.Types.NUMERIC(24, 8)" remarks="定性得分"></column> |
||||
|
<column name="MODEL_SCORE" type="java.sql.Types.NUMERIC(24, 8)" remarks="模型得分"></column> |
||||
|
<column name="INIT_LEVEL" type="java.sql.Types.NVARCHAR(10)" remarks="初始级别"></column> |
||||
|
<column name="ADJ_LEVEL" type="java.sql.Types.NVARCHAR(10)" remarks="调整项级别"></column> |
||||
|
<column name="SP_LEVEL" type="java.sql.Types.NVARCHAR(10)" remarks="评级推翻级别"></column> |
||||
|
<column name="FINAL_LEVEL" type="java.sql.Types.NVARCHAR(10)" remarks="最终认定级别"></column> |
||||
|
<column name="PD" type="java.sql.Types.NUMERIC(24, 8)" remarks="违约概率"></column> |
||||
|
<column name="PROCESS_INSTANCE_ID" type="java.sql.Types.NVARCHAR(50)" remarks="流程实例主键"></column> |
||||
|
<column name="PROCESS_STATUS" type="java.sql.Types.NVARCHAR(50)" remarks="流程状态"></column> |
||||
|
<column name="RATING_STATUS" type="java.sql.Types.NVARCHAR(50)" remarks="评级状态"></column> |
||||
|
<column name="TRIGGER_TYPE" type="java.sql.Types.NVARCHAR(50)" remarks="评级任务触发类型"></column> |
||||
|
<column name="TRIGGER_REA" type="java.sql.Types.NVARCHAR(500)" remarks="评级任务触发原因"></column> |
||||
|
<column name="RATE_TYPE" type="java.sql.Types.NVARCHAR(10)" remarks="评级类型"></column> |
||||
|
<column name="RATE_TYPE_DES" type="java.sql.Types.NVARCHAR(500)" remarks="评级类型描述"></column> |
||||
|
<column name="START_TIME" type="DATETIME" remarks="评级发起日期"></column> |
||||
|
<column name="EFFECTIVE_TIME" type="DATETIME" remarks="评级生效时间"></column> |
||||
|
<column name="MATURE_TIME" type="DATETIME" remarks="评级到期时间"></column> |
||||
|
<column name="MODEL_ID" type="java.sql.Types.NVARCHAR(50)" remarks="评级模型ID"></column> |
||||
|
<column name="MODEL_CODE" type="java.sql.Types.NVARCHAR(50)" remarks="评级模型编号"></column> |
||||
|
<column name="MODEL_NAME" type="java.sql.Types.NVARCHAR(100)" remarks="评级模型名称"></column> |
||||
|
<column name="RATING_CFG_ID" type="java.sql.Types.NVARCHAR(50)" remarks="评级配置ID"></column> |
||||
|
<column name="IS_ADMIT" type="java.sql.Types.SMALLINT" remarks="准入建议"></column> |
||||
|
<column name="IS_TRIAL" type="java.sql.Types.SMALLINT" remarks="是否试算"></column> |
||||
|
<column name="MODEL_LEVEL" type="java.sql.Types.NVARCHAR(50)" remarks="模型评级等级"></column> |
||||
|
<column name="CURRENT_STEP" type="java.sql.Types.NVARCHAR(50)" remarks="当前评级步骤(页面位置)"></column> |
||||
|
<column name="OVER_NUM" type="java.sql.Types.SMALLINT" remarks="意见位置"></column> |
||||
|
<column name="OUT_IMAGE_ID" type="java.sql.Types.NVARCHAR(50)" remarks="外部数据授权标志"></column> |
||||
|
<column name="ACCESS_LEVEL" type="java.sql.Types.NVARCHAR(10)" remarks="准入级别"></column> |
||||
|
<column name="DEFAULT_IND" type="java.sql.Types.NVARCHAR(10)" remarks="违约标识"></column> |
||||
|
<column name="QUAL_CALC_COUNT" type="java.sql.Types.SMALLINT" remarks="定性计算次数"></column> |
||||
|
<column name="PWH_COMMITTEE_NUM" type="java.sql.Types.SMALLINT" remarks="评级委员会人数"></column> |
||||
|
<column name="GX_END_TIME" type="DATETIME" remarks="评级更新任务到期时间"></column> |
||||
|
<column name="DATA_COME_FROM_" type="java.sql.Types.NVARCHAR(10)" remarks="数据来源(INPUT:手工录入,IMPORT:系统自动导入)" defaultValue="INPUT"></column> |
||||
|
<column name="CREATOR_" type="java.sql.Types.NVARCHAR(255)" remarks="创建人"></column> |
||||
|
<column name="CREATE_DATE_" type="DATETIME" remarks="创建日期"></column> |
||||
|
<column name="LAST_MODIFIER_" type="java.sql.Types.NVARCHAR(255)" remarks="最后修改人"></column> |
||||
|
<column name="LAST_MODIFYDATE_" type="DATETIME" remarks="最后修改日期"></column> |
||||
|
<column name="CORP_CODE_" type="java.sql.Types.NVARCHAR(255)" remarks="所属法人代码" defaultValue="_PRIMARY_"> |
||||
|
<constraints nullable="false"/> |
||||
|
</column> |
||||
|
</createTable> |
||||
|
</changeSet> |
||||
|
</databaseChangeLog> |
@ -0,0 +1,32 @@ |
|||||
|
<?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="20240401_REPORTS_TABLES_DATA" author="platform"> |
||||
|
<customChange class="io.sc.platform.jdbc.liquibase.task.CsvImportTaskChange"> |
||||
|
<param name="dataFile" value="classpath:/liquibase/data/ns_r_cfg_rpt_sql.csv"/> |
||||
|
</customChange> |
||||
|
<customChange class="io.sc.platform.jdbc.liquibase.task.CsvImportTaskChange"> |
||||
|
<param name="dataFile" value="classpath:/liquibase/data/rpt_init_data.csv"/> |
||||
|
</customChange> |
||||
|
<customChange class="io.sc.platform.jdbc.liquibase.task.CsvImportTaskChange"> |
||||
|
<param name="dataFile" value="classpath:/liquibase/data/ns_company_rating.csv"/> |
||||
|
</customChange> |
||||
|
<customChange class="io.sc.platform.jdbc.liquibase.task.CsvImportTaskChange"> |
||||
|
<param name="dataFile" value="classpath:/liquibase/data/irbs_cust_cp_info.csv"/> |
||||
|
</customChange> |
||||
|
<customChange class="io.sc.platform.jdbc.liquibase.task.CsvImportTaskChange"> |
||||
|
<param name="dataFile" value="classpath:/liquibase/data/irbs_loan_borr_info.csv"/> |
||||
|
</customChange> |
||||
|
<customChange class="io.sc.platform.jdbc.liquibase.task.CsvImportTaskChange"> |
||||
|
<param name="dataFile" value="classpath:/liquibase/data/ns_cfg_main_scale.csv"/> |
||||
|
</customChange> |
||||
|
</changeSet> |
||||
|
</databaseChangeLog> |
@ -0,0 +1,44 @@ |
|||||
|
<?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-3.5.xsd |
||||
|
http://www.liquibase.org/xml/ns/dbchangelog-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd"> |
||||
|
|
||||
|
<changeSet id="20240401_REPORTS_TABLES_DDL" author="platform"> |
||||
|
<!-- 报表sql配置表 --> |
||||
|
<createTable tableName="NS_R_CFG_RPT_SQL" remarks="报表sql配置表"> |
||||
|
<column name="ID_" type="java.sql.Types.NVARCHAR(50)" remarks="ID主键"> |
||||
|
<constraints primaryKey="true"/> |
||||
|
</column> |
||||
|
<column name="REPORT_ID" type="java.sql.Types.NVARCHAR(255)" remarks="报表ID"></column> |
||||
|
<column name="REPORT_NAME" type="java.sql.Types.NVARCHAR(255)" remarks="报表名称"></column> |
||||
|
<column name="DATABASE_TYPE" type="java.sql.Types.NVARCHAR(255)" remarks="数据库类型"></column> |
||||
|
<column name="SQL_TEXT" type="CLOB" remarks="报表的sql语句"></column> |
||||
|
<column name="DATA_COME_FROM_" type="java.sql.Types.NVARCHAR(10)" remarks="数据来源(INPUT:手工录入,IMPORT:系统自动导入)" defaultValue="INPUT"></column> |
||||
|
<column name="CREATOR_" type="java.sql.Types.NVARCHAR(255)" remarks="创建人"></column> |
||||
|
<column name="CREATE_DATE_" type="DATETIME" remarks="创建日期"></column> |
||||
|
<column name="LAST_MODIFIER_" type="java.sql.Types.NVARCHAR(255)" remarks="最后修改人"></column> |
||||
|
<column name="LAST_MODIFYDATE_" type="DATETIME" remarks="最后修改日期"></column> |
||||
|
<column name="CORP_CODE_" type="java.sql.Types.NVARCHAR(255)" remarks="所属法人代码" defaultValue="_PRIMARY_"> |
||||
|
<constraints nullable="false"/> |
||||
|
</column> |
||||
|
</createTable> |
||||
|
<!-- 报表初始数据表 --> |
||||
|
<createTable tableName="RPT_INIT_DATA" remarks="报表初始数据表"> |
||||
|
<column name="DATA_TP_CD" type="java.sql.Types.NVARCHAR(50)" remarks="数据类型"></column> |
||||
|
<column name="DATA_TP_NM" type="java.sql.Types.NVARCHAR(255)" remarks="数据类型名称"></column> |
||||
|
<column name="ITEM_NAME" type="java.sql.Types.NVARCHAR(255)" remarks="数据项名称"></column> |
||||
|
<column name="ITEM_VALUE" type="java.sql.Types.NVARCHAR(255)" remarks="数据项值"></column> |
||||
|
<column name="DATA_COME_FROM_" type="java.sql.Types.NVARCHAR(10)" remarks="数据来源(INPUT:手工录入,IMPORT:系统自动导入)" defaultValue="INPUT"></column> |
||||
|
<column name="CREATOR_" type="java.sql.Types.NVARCHAR(255)" remarks="创建人"></column> |
||||
|
<column name="CREATE_DATE_" type="DATETIME" remarks="创建日期"></column> |
||||
|
<column name="LAST_MODIFIER_" type="java.sql.Types.NVARCHAR(255)" remarks="最后修改人"></column> |
||||
|
<column name="LAST_MODIFYDATE_" type="DATETIME" remarks="最后修改日期"></column> |
||||
|
<column name="CORP_CODE_" type="java.sql.Types.NVARCHAR(255)" remarks="所属法人代码" defaultValue="_PRIMARY_"> |
||||
|
<constraints nullable="false"/> |
||||
|
</column> |
||||
|
</createTable> |
||||
|
</changeSet> |
||||
|
</databaseChangeLog> |
@ -0,0 +1,13 @@ |
|||||
|
<?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-3.5.xsd |
||||
|
http://www.liquibase.org/xml/ns/dbchangelog-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd"> |
||||
|
|
||||
|
<changeSet id="20240401_REPORTS_VIEW" author="platform"> |
||||
|
<!-- 初始化基础数据 --> |
||||
|
<sqlFile dbms="oracle, mysql" path="classpath:/liquibase/sql/rpt_views.sql"/> |
||||
|
</changeSet> |
||||
|
</databaseChangeLog> |
File diff suppressed because it is too large
|
|
File diff suppressed because it is too large
|
|
@ -0,0 +1,35 @@ |
|||||
|
CREATE OR REPLACE VIEW VIEW_RPT_BASE_INFO AS |
||||
|
SELECT |
||||
|
T.CUST_NO, |
||||
|
IFNULL(T.CUST_TYPE,'1') AS CUST_TYPE, |
||||
|
T.FINAL_LEVEL AS ORIGINAL_LEVEL, |
||||
|
T.INIT_LEVEL AS INIT_LEVEL, |
||||
|
T.ADJ_LEVEL AS ADJ_LEVEL, |
||||
|
CASE WHEN T.DEFAULT_IND = '1' THEN 'D' ELSE T.FINAL_LEVEL END AS FINAL_LEVEL, |
||||
|
S.PD, |
||||
|
CAST(DATE_FORMAT(T.EFFECTIVE_TIME,'%Y%m') AS DECIMAL) AS EFFECTIVE_MONTH, |
||||
|
D.ITEM_VALUE AS EFFECTIVE_Q, |
||||
|
LEFT(D.ITEM_VALUE,4) EFFECTIVE_Y, |
||||
|
IFNULL(T.MANAGER_ORG_CODE, '01002') MANAGER_ORG_CODE, |
||||
|
T.MODEL_CODE, |
||||
|
T.MODEL_NAME, |
||||
|
SUBSTR(IFNULL(C.INDU_SORT_CD, 'X'),1,1) AS INDUSTRY_CODE, |
||||
|
S.ORDER_NUM, |
||||
|
S1.ORDER_NUM AS INIT_ORDER_NUM, |
||||
|
S2.ORDER_NUM AS ADJ_ORDER_NUM, |
||||
|
T.MODEL_SCORE, |
||||
|
T.RATING_STATUS, |
||||
|
T.EFFECTIVE_TIME, |
||||
|
MAX(T.EFFECTIVE_TIME) OVER(PARTITION BY T.CUST_NO) AS MAX_EFFECTIVE_TIME, |
||||
|
SUM(BORR.BORR_BAL) OVER(PARTITION BY T.CUST_NO) AS BORR_BAL |
||||
|
FROM NS_COMPANY_RATING T |
||||
|
LEFT JOIN IRBS_CUST_CP_INFO C ON C.CUST_NO = T.CUST_NO |
||||
|
LEFT JOIN NS_CFG_MAIN_SCALE S ON S.SCALE_LEVEL = T.FINAL_LEVEL |
||||
|
LEFT JOIN NS_CFG_MAIN_SCALE S1 ON S1.SCALE_LEVEL = T.INIT_LEVEL |
||||
|
LEFT JOIN NS_CFG_MAIN_SCALE S2 ON S2.SCALE_LEVEL = T.ADJ_LEVEL |
||||
|
LEFT JOIN RPT_INIT_DATA D ON D.DATA_TP_CD = 'MONTH2QUARTER' |
||||
|
AND D.ITEM_NAME = LEFT(T.EFFECTIVE_TIME,7) |
||||
|
LEFT JOIN ( |
||||
|
select t.CUST_NO, t.BORR_BAL from irbs_loan_borr_info t |
||||
|
) BORR ON BORR.CUST_NO = T.CUST_NO |
||||
|
WHERE T.RATING_STATUS IN ('010','020') AND T.FINAL_LEVEL IS NOT NULL |
File diff suppressed because it is too large
@ -0,0 +1,95 @@ |
|||||
|
<template> |
||||
|
<div> |
||||
|
<w-grid |
||||
|
ref="rptModelMonitorBinomialCheckGridRef" |
||||
|
title="模型审慎性监控报表" |
||||
|
:data-url="Environment.apiContextPath('api/irbs/rptModelMonitorBinomialCheck/list')" |
||||
|
:sort-no="true" |
||||
|
:checkbox-selection="false" |
||||
|
:query-form-cols-num="4" |
||||
|
:query-form-fields="rptModelMonitorBinomialCheckGrid.queryFormFields" |
||||
|
:columns="rptModelMonitorBinomialCheckGrid.columns" |
||||
|
:toolbar-actions="rptModelMonitorBinomialCheckGrid.buttons" |
||||
|
:pageable="false" |
||||
|
></w-grid> |
||||
|
</div> |
||||
|
</template> |
||||
|
|
||||
|
<script setup lang="ts"> |
||||
|
import { ref, reactive } from 'vue'; |
||||
|
import { useQuasar } from 'quasar'; |
||||
|
import { Environment, EnumTools, DictionaryTools, Options, Formater, axios, NotifyManager } from 'platform-core'; |
||||
|
|
||||
|
const $q = useQuasar(); |
||||
|
const rptModelMonitorBinomialCheckGridRef = ref(); |
||||
|
|
||||
|
const rptModelMonitorBinomialCheckGrid = { |
||||
|
buttons: [ |
||||
|
{ |
||||
|
extend: 'query', |
||||
|
click: () => { |
||||
|
const QueryParams = rptModelMonitorBinomialCheckGridRef.value.getQueryForm().getData(); |
||||
|
axios.get(Environment.apiContextPath('api/irbs/rptModelMonitorBinomialCheck/list'), { params: QueryParams }).then((resp) => { |
||||
|
rptModelMonitorBinomialCheckGridRef.value.setLocalData(resp.data); |
||||
|
}); |
||||
|
}, |
||||
|
}, |
||||
|
'reset', |
||||
|
'separator', |
||||
|
], |
||||
|
queryFormFields: [ |
||||
|
{ label: '报表日期', name: 'ratingMonth', type: 'date', defaultValue: '2023-07-01' }, |
||||
|
{ |
||||
|
label: '模型敞口', |
||||
|
name: 'modelCode', |
||||
|
type: 'select', |
||||
|
options: [ |
||||
|
{ value: 'WHM1', label: '政府投融资平台' }, |
||||
|
{ value: 'WHM2', label: '事业单位' }, |
||||
|
{ value: 'WHM3', label: '银行类金融机构' }, |
||||
|
{ value: 'WHM41', label: '金融租赁与消费金融公司' }, |
||||
|
{ value: 'WHM42', label: '证券公司' }, |
||||
|
{ value: 'WHM43', label: '其他非银行金融机构' }, |
||||
|
{ value: 'WHM44', label: '基金公司' }, |
||||
|
{ value: 'WHM5', label: '新建企业' }, |
||||
|
{ value: 'WHM6', label: '综合性集团' }, |
||||
|
{ value: 'WHM7', label: '大型其他行业' }, |
||||
|
{ value: 'WHM8', label: '中小微其他行业' }, |
||||
|
{ value: 'WHM9', label: '大中型租赁和商务服务行业' }, |
||||
|
{ value: 'WHM10', label: '小微租赁和商务服务业' }, |
||||
|
{ value: 'WHM12', label: '房地产业' }, |
||||
|
{ value: 'WHM13', label: '大中型农林牧渔业' }, |
||||
|
{ value: 'WHM14', label: '小微农林牧渔业' }, |
||||
|
{ value: 'WHM15', label: '大型建筑业' }, |
||||
|
{ value: 'WHM16', label: '中小微建筑业' }, |
||||
|
{ value: 'WHM17', label: '大中型制造业' }, |
||||
|
{ value: 'WHM18', label: '小微制造业' }, |
||||
|
{ value: 'WHM19', label: '大中型批发和零售业' }, |
||||
|
{ value: 'WHM20', label: '小微批发和零售业' }, |
||||
|
{ value: 'WHM22', label: '科技行业' }, |
||||
|
], |
||||
|
defaultValue: 'WHM8', |
||||
|
}, |
||||
|
], |
||||
|
columns: [ |
||||
|
{ label: '时间区间', name: 'ratingYear', align: 'center' }, |
||||
|
{ |
||||
|
label: '审慎性', |
||||
|
name: 'prudentHeader', |
||||
|
columns: [ |
||||
|
{ label: '二项检验', name: 'binomialCheck', align: 'center' }, |
||||
|
{ label: '风险等级', name: 'riskLevel', align: 'center' }, |
||||
|
], |
||||
|
}, |
||||
|
{ |
||||
|
label: '客户数', |
||||
|
name: 'custCntHeader', |
||||
|
columns: [ |
||||
|
{ label: '正常客户数', name: 'totalNormalCnt', align: 'center' }, |
||||
|
{ label: '违约客户数', name: 'totalBadCnt', align: 'center' }, |
||||
|
{ label: '总客户数', name: 'totalCustCnt', align: 'center' }, |
||||
|
], |
||||
|
}, |
||||
|
], |
||||
|
}; |
||||
|
</script> |
@ -0,0 +1,109 @@ |
|||||
|
<template> |
||||
|
<div> |
||||
|
<w-grid |
||||
|
ref="rptModelMonitorDiffGridRef" |
||||
|
title="模型区分能力监控报表" |
||||
|
:data-url="Environment.apiContextPath('api/irbs/rptModelMonitorDiff/list')" |
||||
|
:sort-no="true" |
||||
|
:checkbox-selection="false" |
||||
|
:query-form-cols-num="4" |
||||
|
:query-form-fields="rptModelMonitorDiffGrid.queryFormFields" |
||||
|
:columns="rptModelMonitorDiffGrid.columns" |
||||
|
:toolbar-actions="rptModelMonitorDiffGrid.buttons" |
||||
|
:pageable="false" |
||||
|
></w-grid> |
||||
|
</div> |
||||
|
</template> |
||||
|
|
||||
|
<script setup lang="ts"> |
||||
|
import { ref, reactive } from 'vue'; |
||||
|
import { useQuasar } from 'quasar'; |
||||
|
import { Environment, EnumTools, DictionaryTools, Options, Formater, axios, NotifyManager } from 'platform-core'; |
||||
|
|
||||
|
const $q = useQuasar(); |
||||
|
const rptModelMonitorDiffGridRef = ref(); |
||||
|
|
||||
|
const rptModelMonitorDiffGrid = { |
||||
|
buttons: [ |
||||
|
{ |
||||
|
extend: 'query', |
||||
|
click: () => { |
||||
|
const QueryParams = rptModelMonitorDiffGridRef.value.getQueryForm().getData(); |
||||
|
axios.get(Environment.apiContextPath('api/irbs/rptRatingDistribution/list'), { params: QueryParams }).then((resp) => { |
||||
|
rptModelMonitorDiffGridRef.value.setLocalData(resp.data); |
||||
|
}); |
||||
|
}, |
||||
|
}, |
||||
|
'reset', |
||||
|
'separator', |
||||
|
], |
||||
|
queryFormFields: [ |
||||
|
{ label: '报表日期', name: 'ratingMonth', type: 'date', defaultValue: '2023-07-01' }, |
||||
|
{ |
||||
|
label: '报告期', |
||||
|
name: 'yearPeriod', |
||||
|
type: 'select', |
||||
|
options: [ |
||||
|
{ label: '往前推1年', value: '1' }, |
||||
|
{ label: '往前推2年', value: '2' }, |
||||
|
{ label: '往前推3年', value: '3' }, |
||||
|
{ label: '往前推4年', value: '4' }, |
||||
|
{ label: '往前推5年', value: '5' }, |
||||
|
], |
||||
|
defaultValue: '1', |
||||
|
}, |
||||
|
{ |
||||
|
label: '模型敞口', |
||||
|
name: 'modelCode', |
||||
|
type: 'select', |
||||
|
options: [ |
||||
|
{ value: 'WHM1', label: '政府投融资平台' }, |
||||
|
{ value: 'WHM2', label: '事业单位' }, |
||||
|
{ value: 'WHM3', label: '银行类金融机构' }, |
||||
|
{ value: 'WHM41', label: '金融租赁与消费金融公司' }, |
||||
|
{ value: 'WHM42', label: '证券公司' }, |
||||
|
{ value: 'WHM43', label: '其他非银行金融机构' }, |
||||
|
{ value: 'WHM44', label: '基金公司' }, |
||||
|
{ value: 'WHM5', label: '新建企业' }, |
||||
|
{ value: 'WHM6', label: '综合性集团' }, |
||||
|
{ value: 'WHM7', label: '大型其他行业' }, |
||||
|
{ value: 'WHM8', label: '中小微其他行业' }, |
||||
|
{ value: 'WHM9', label: '大中型租赁和商务服务行业' }, |
||||
|
{ value: 'WHM10', label: '小微租赁和商务服务业' }, |
||||
|
{ value: 'WHM12', label: '房地产业' }, |
||||
|
{ value: 'WHM13', label: '大中型农林牧渔业' }, |
||||
|
{ value: 'WHM14', label: '小微农林牧渔业' }, |
||||
|
{ value: 'WHM15', label: '大型建筑业' }, |
||||
|
{ value: 'WHM16', label: '中小微建筑业' }, |
||||
|
{ value: 'WHM17', label: '大中型制造业' }, |
||||
|
{ value: 'WHM18', label: '小微制造业' }, |
||||
|
{ value: 'WHM19', label: '大中型批发和零售业' }, |
||||
|
{ value: 'WHM20', label: '小微批发和零售业' }, |
||||
|
{ value: 'WHM22', label: '科技行业' }, |
||||
|
], |
||||
|
defaultValue: 'WHM18', |
||||
|
}, |
||||
|
], |
||||
|
columns: [ |
||||
|
{ label: '时间区间', name: 'ratingQuarter', align: 'center' }, |
||||
|
{ |
||||
|
label: '区分能力', |
||||
|
name: 'diffHeader', |
||||
|
columns: [ |
||||
|
{ label: 'AR', name: 'ar', align: 'center' }, |
||||
|
{ label: 'KS', name: 'ks', align: 'center' }, |
||||
|
{ label: '风险等级', name: 'riskLevel', align: 'center' }, |
||||
|
], |
||||
|
}, |
||||
|
{ |
||||
|
label: '客户数', |
||||
|
name: 'custCntHeader', |
||||
|
columns: [ |
||||
|
{ label: '正常客户数', name: 'totalNormalCnt', align: 'center' }, |
||||
|
{ label: '违约客户数', name: 'totalBadCnt', align: 'center' }, |
||||
|
{ label: '总客户数', name: 'totalCustCnt', align: 'center' }, |
||||
|
], |
||||
|
}, |
||||
|
], |
||||
|
}; |
||||
|
</script> |
@ -0,0 +1,86 @@ |
|||||
|
<template> |
||||
|
<div> |
||||
|
<w-grid |
||||
|
ref="rptModelMonitorStableGridRef" |
||||
|
title="模型稳定性监控报表" |
||||
|
:data-url="Environment.apiContextPath('api/irbs/rptModelMonitorStable/list')" |
||||
|
:sort-no="true" |
||||
|
:checkbox-selection="false" |
||||
|
:query-form-cols-num="4" |
||||
|
:query-form-fields="rptModelMonitorStableGrid.queryFormFields" |
||||
|
:columns="rptModelMonitorStableGrid.columns" |
||||
|
:toolbar-actions="rptModelMonitorStableGrid.buttons" |
||||
|
:pageable="false" |
||||
|
></w-grid> |
||||
|
</div> |
||||
|
</template> |
||||
|
|
||||
|
<script setup lang="ts"> |
||||
|
import { ref, reactive } from 'vue'; |
||||
|
import { useQuasar } from 'quasar'; |
||||
|
import { Environment, EnumTools, DictionaryTools, Options, Formater, axios, NotifyManager } from 'platform-core'; |
||||
|
|
||||
|
const $q = useQuasar(); |
||||
|
const rptModelMonitorStableGridRef = ref(); |
||||
|
|
||||
|
const rptModelMonitorStableGrid = { |
||||
|
buttons: [ |
||||
|
{ |
||||
|
extend: 'query', |
||||
|
click: () => { |
||||
|
const QueryParams = rptModelMonitorStableGridRef.value.getQueryForm().getData(); |
||||
|
axios.get(Environment.apiContextPath('api/irbs/rptModelMonitorStable/list'), { params: QueryParams }).then((resp) => { |
||||
|
rptModelMonitorStableGridRef.value.setLocalData(resp.data); |
||||
|
}); |
||||
|
}, |
||||
|
}, |
||||
|
'reset', |
||||
|
'separator', |
||||
|
], |
||||
|
queryFormFields: [ |
||||
|
{ label: '报表日期', name: 'ratingMonth', type: 'date', defaultValue: '2023-07-01' }, |
||||
|
{ |
||||
|
label: '模型敞口', |
||||
|
name: 'modelCode', |
||||
|
type: 'select', |
||||
|
options: [ |
||||
|
{ value: 'WHM1', label: '政府投融资平台' }, |
||||
|
{ value: 'WHM2', label: '事业单位' }, |
||||
|
{ value: 'WHM3', label: '银行类金融机构' }, |
||||
|
{ value: 'WHM41', label: '金融租赁与消费金融公司' }, |
||||
|
{ value: 'WHM42', label: '证券公司' }, |
||||
|
{ value: 'WHM43', label: '其他非银行金融机构' }, |
||||
|
{ value: 'WHM44', label: '基金公司' }, |
||||
|
{ value: 'WHM5', label: '新建企业' }, |
||||
|
{ value: 'WHM6', label: '综合性集团' }, |
||||
|
{ value: 'WHM7', label: '大型其他行业' }, |
||||
|
{ value: 'WHM8', label: '中小微其他行业' }, |
||||
|
{ value: 'WHM9', label: '大中型租赁和商务服务行业' }, |
||||
|
{ value: 'WHM10', label: '小微租赁和商务服务业' }, |
||||
|
{ value: 'WHM12', label: '房地产业' }, |
||||
|
{ value: 'WHM13', label: '大中型农林牧渔业' }, |
||||
|
{ value: 'WHM14', label: '小微农林牧渔业' }, |
||||
|
{ value: 'WHM15', label: '大型建筑业' }, |
||||
|
{ value: 'WHM16', label: '中小微建筑业' }, |
||||
|
{ value: 'WHM17', label: '大中型制造业' }, |
||||
|
{ value: 'WHM18', label: '小微制造业' }, |
||||
|
{ value: 'WHM19', label: '大中型批发和零售业' }, |
||||
|
{ value: 'WHM20', label: '小微批发和零售业' }, |
||||
|
{ value: 'WHM22', label: '科技行业' }, |
||||
|
], |
||||
|
defaultValue: 'WHM18', |
||||
|
}, |
||||
|
], |
||||
|
columns: [ |
||||
|
{ label: '时间区间', name: 'ratingQuarter', align: 'center' }, |
||||
|
{ |
||||
|
label: '稳定性', |
||||
|
name: 'stableHeader', |
||||
|
columns: [ |
||||
|
{ label: 'PSI', name: 'psi', align: 'center' }, |
||||
|
{ label: '风险等级', name: 'riskLevel', align: 'center' }, |
||||
|
], |
||||
|
}, |
||||
|
], |
||||
|
}; |
||||
|
</script> |
@ -0,0 +1,121 @@ |
|||||
|
<template> |
||||
|
<div> |
||||
|
<w-grid |
||||
|
ref="rptRatingAdjustGridRef" |
||||
|
title="客户评级特例调整情况报表" |
||||
|
:data-url="Environment.apiContextPath('api/irbs/rptRatingAdjust/list')" |
||||
|
:sort-no="true" |
||||
|
:checkbox-selection="false" |
||||
|
:query-form-cols-num="4" |
||||
|
:query-form-fields="rptRatingAdjustGrid.queryFormFields" |
||||
|
:columns="rptRatingAdjustGrid.columns" |
||||
|
:toolbar-actions="rptRatingAdjustGrid.buttons" |
||||
|
:pageable="false" |
||||
|
></w-grid> |
||||
|
</div> |
||||
|
</template> |
||||
|
|
||||
|
<script setup lang="ts"> |
||||
|
import { ref, reactive } from 'vue'; |
||||
|
import { useQuasar } from 'quasar'; |
||||
|
import { Environment, EnumTools, DictionaryTools, Options, Formater, axios, NotifyManager } from 'platform-core'; |
||||
|
|
||||
|
const $q = useQuasar(); |
||||
|
const rptRatingAdjustGridRef = ref(); |
||||
|
|
||||
|
const rptRatingAdjustGrid = { |
||||
|
buttons: [ |
||||
|
{ |
||||
|
extend: 'query', |
||||
|
click: () => { |
||||
|
const QueryParams = rptRatingAdjustGridRef.value.getQueryForm().getData(); |
||||
|
axios.get(Environment.apiContextPath('api/irbs/rptRatingAdjust/list'), { params: QueryParams }).then((resp) => { |
||||
|
rptRatingAdjustGridRef.value.setLocalData(resp.data); |
||||
|
}); |
||||
|
}, |
||||
|
}, |
||||
|
'reset', |
||||
|
'separator', |
||||
|
'export', |
||||
|
], |
||||
|
queryFormFields: [ |
||||
|
{ label: '报表日期', name: 'ratingMonth', type: 'date', defaultValue: '2023-07-01' }, |
||||
|
{ |
||||
|
label: '模型敞口', |
||||
|
name: 'modelCode', |
||||
|
type: 'select', |
||||
|
options: [ |
||||
|
{ value: 'WHM1', label: '政府投融资平台' }, |
||||
|
{ value: 'WHM2', label: '事业单位' }, |
||||
|
{ value: 'WHM3', label: '银行类金融机构' }, |
||||
|
{ value: 'WHM41', label: '金融租赁与消费金融公司' }, |
||||
|
{ value: 'WHM42', label: '证券公司' }, |
||||
|
{ value: 'WHM43', label: '其他非银行金融机构' }, |
||||
|
{ value: 'WHM44', label: '基金公司' }, |
||||
|
{ value: 'WHM5', label: '新建企业' }, |
||||
|
{ value: 'WHM6', label: '综合性集团' }, |
||||
|
{ value: 'WHM7', label: '大型其他行业' }, |
||||
|
{ value: 'WHM8', label: '中小微其他行业' }, |
||||
|
{ value: 'WHM9', label: '大中型租赁和商务服务行业' }, |
||||
|
{ value: 'WHM10', label: '小微租赁和商务服务业' }, |
||||
|
{ value: 'WHM12', label: '房地产业' }, |
||||
|
{ value: 'WHM13', label: '大中型农林牧渔业' }, |
||||
|
{ value: 'WHM14', label: '小微农林牧渔业' }, |
||||
|
{ value: 'WHM15', label: '大型建筑业' }, |
||||
|
{ value: 'WHM16', label: '中小微建筑业' }, |
||||
|
{ value: 'WHM17', label: '大中型制造业' }, |
||||
|
{ value: 'WHM18', label: '小微制造业' }, |
||||
|
{ value: 'WHM19', label: '大中型批发和零售业' }, |
||||
|
{ value: 'WHM20', label: '小微批发和零售业' }, |
||||
|
{ value: 'WHM22', label: '科技行业' }, |
||||
|
], |
||||
|
}, |
||||
|
{ |
||||
|
label: '分支机构', |
||||
|
name: 'managerOrgCode', |
||||
|
type: 'select', |
||||
|
options: [ |
||||
|
{ value: '01002', label: '总行营业部' }, |
||||
|
{ value: '01003', label: 'JJJS开发区支行' }, |
||||
|
{ value: '01005', label: 'XF支行' }, |
||||
|
{ value: '01006', label: 'GCZ支行' }, |
||||
|
{ value: '01007', label: 'ZL支行' }, |
||||
|
{ value: '01008', label: 'HKJ支行' }, |
||||
|
{ value: '01009', label: 'HL支行' }, |
||||
|
{ value: '01010', label: 'LJ支行' }, |
||||
|
{ value: '01012', label: 'GG分行' }, |
||||
|
{ value: '01013', label: 'ZY支行' }, |
||||
|
{ value: '01014', label: 'ZD支行' }, |
||||
|
{ value: '01015', label: 'HK支行' }, |
||||
|
{ value: '01016', label: 'DS支行' }, |
||||
|
{ value: '01017', label: 'LF支行' }, |
||||
|
{ value: '01018', label: 'GS支行' }, |
||||
|
{ value: '01019', label: 'LX支行' }, |
||||
|
{ value: '01020', label: 'BX支行' }, |
||||
|
{ value: '01021', label: 'ZQ支行' }, |
||||
|
{ value: '01022', label: 'JF支行' }, |
||||
|
{ value: '01023', label: 'CC支行' }, |
||||
|
{ value: '01024', label: 'LQ支行' }, |
||||
|
{ value: '01025', label: 'DH支行' }, |
||||
|
{ value: '01027', label: 'SGH支行' }, |
||||
|
], |
||||
|
}, |
||||
|
], |
||||
|
columns: [ |
||||
|
{ label: '评级时间', name: 'ratingMonth', align: 'center' }, |
||||
|
{ label: '评级客户数', name: 'custCnt', align: 'center' }, |
||||
|
{ label: '调整客户数', name: 'adjCnt', align: 'center' }, |
||||
|
{ label: '调整客户占比', name: 'adjRatio', align: 'center' }, |
||||
|
{ |
||||
|
label: '调整级别', |
||||
|
name: 'adjustLevelHeader', |
||||
|
columns: [ |
||||
|
{ label: '1级', name: 'oneLvlRatio' }, |
||||
|
{ label: '2级', name: 'twoLvlRatio' }, |
||||
|
{ label: '3级', name: 'threeLvlRatio' }, |
||||
|
{ label: '3级以上', name: 'threeMoreLvlRatio' }, |
||||
|
], |
||||
|
}, |
||||
|
], |
||||
|
}; |
||||
|
</script> |
@ -0,0 +1,140 @@ |
|||||
|
<template> |
||||
|
<div> |
||||
|
<w-grid |
||||
|
ref="rptRatingDistributionGridRef" |
||||
|
title="客户评级分布报表" |
||||
|
:data-url="Environment.apiContextPath('api/irbs/rptRatingDistribution/list')" |
||||
|
:sort-no="true" |
||||
|
:checkbox-selection="false" |
||||
|
:query-form-cols-num="3" |
||||
|
:query-form-fields="rptRatingDistributionGrid.queryFormFields" |
||||
|
:columns="rptRatingDistributionGrid.columns" |
||||
|
:toolbar-actions="rptRatingDistributionGrid.buttons" |
||||
|
:pageable="false" |
||||
|
></w-grid> |
||||
|
</div> |
||||
|
</template> |
||||
|
|
||||
|
<script setup lang="ts"> |
||||
|
import { ref, reactive } from 'vue'; |
||||
|
import { useQuasar } from 'quasar'; |
||||
|
import { Environment, EnumTools, DictionaryTools, Options, Formater, axios, NotifyManager } from 'platform-core'; |
||||
|
|
||||
|
const $q = useQuasar(); |
||||
|
const rptRatingDistributionGridRef = ref(); |
||||
|
|
||||
|
const rptRatingDistributionGrid = { |
||||
|
buttons: [ |
||||
|
{ |
||||
|
extend: 'query', |
||||
|
click: () => { |
||||
|
const QueryParams = rptRatingDistributionGridRef.value.getQueryForm().getData(); |
||||
|
axios.get(Environment.apiContextPath('api/irbs/rptRatingDistribution/list'), { params: QueryParams }).then((resp) => { |
||||
|
rptRatingDistributionGridRef.value.setLocalData(resp.data); |
||||
|
}); |
||||
|
}, |
||||
|
}, |
||||
|
'reset', |
||||
|
'separator', |
||||
|
'export', |
||||
|
], |
||||
|
queryFormFields: [ |
||||
|
{ label: '报表日期', name: 'ratingMonth', type: 'date', defaultValue: '2023-07-01' }, |
||||
|
{ |
||||
|
label: '模型敞口', |
||||
|
name: 'modelCode', |
||||
|
type: 'select', |
||||
|
options: [ |
||||
|
{ value: 'WHM1', label: '政府投融资平台' }, |
||||
|
{ value: 'WHM2', label: '事业单位' }, |
||||
|
{ value: 'WHM3', label: '银行类金融机构' }, |
||||
|
{ value: 'WHM41', label: '金融租赁与消费金融公司' }, |
||||
|
{ value: 'WHM42', label: '证券公司' }, |
||||
|
{ value: 'WHM43', label: '其他非银行金融机构' }, |
||||
|
{ value: 'WHM44', label: '基金公司' }, |
||||
|
{ value: 'WHM5', label: '新建企业' }, |
||||
|
{ value: 'WHM6', label: '综合性集团' }, |
||||
|
{ value: 'WHM7', label: '大型其他行业' }, |
||||
|
{ value: 'WHM8', label: '中小微其他行业' }, |
||||
|
{ value: 'WHM9', label: '大中型租赁和商务服务行业' }, |
||||
|
{ value: 'WHM10', label: '小微租赁和商务服务业' }, |
||||
|
{ value: 'WHM12', label: '房地产业' }, |
||||
|
{ value: 'WHM13', label: '大中型农林牧渔业' }, |
||||
|
{ value: 'WHM14', label: '小微农林牧渔业' }, |
||||
|
{ value: 'WHM15', label: '大型建筑业' }, |
||||
|
{ value: 'WHM16', label: '中小微建筑业' }, |
||||
|
{ value: 'WHM17', label: '大中型制造业' }, |
||||
|
{ value: 'WHM18', label: '小微制造业' }, |
||||
|
{ value: 'WHM19', label: '大中型批发和零售业' }, |
||||
|
{ value: 'WHM20', label: '小微批发和零售业' }, |
||||
|
{ value: 'WHM22', label: '科技行业' }, |
||||
|
], |
||||
|
}, |
||||
|
{ |
||||
|
label: '分支机构', |
||||
|
name: 'managerOrgCode', |
||||
|
type: 'select', |
||||
|
options: [ |
||||
|
{ value: '01002', label: '总行营业部' }, |
||||
|
{ value: '01003', label: 'JJJS开发区支行' }, |
||||
|
{ value: '01005', label: 'XF支行' }, |
||||
|
{ value: '01006', label: 'GCZ支行' }, |
||||
|
{ value: '01007', label: 'ZL支行' }, |
||||
|
{ value: '01008', label: 'HKJ支行' }, |
||||
|
{ value: '01009', label: 'HL支行' }, |
||||
|
{ value: '01010', label: 'LJ支行' }, |
||||
|
{ value: '01012', label: 'GG分行' }, |
||||
|
{ value: '01013', label: 'ZY支行' }, |
||||
|
{ value: '01014', label: 'ZD支行' }, |
||||
|
{ value: '01015', label: 'HK支行' }, |
||||
|
{ value: '01016', label: 'DS支行' }, |
||||
|
{ value: '01017', label: 'LF支行' }, |
||||
|
{ value: '01018', label: 'GS支行' }, |
||||
|
{ value: '01019', label: 'LX支行' }, |
||||
|
{ value: '01020', label: 'BX支行' }, |
||||
|
{ value: '01021', label: 'ZQ支行' }, |
||||
|
{ value: '01022', label: 'JF支行' }, |
||||
|
{ value: '01023', label: 'CC支行' }, |
||||
|
{ value: '01024', label: 'LQ支行' }, |
||||
|
{ value: '01025', label: 'DH支行' }, |
||||
|
{ value: '01027', label: 'SGH支行' }, |
||||
|
], |
||||
|
}, |
||||
|
], |
||||
|
columns: [ |
||||
|
{ label: '评级等级', name: 'ratingLevel', align: 'center' }, |
||||
|
{ |
||||
|
label: '全部客户', |
||||
|
name: 'totalCustHeader', |
||||
|
columns: [ |
||||
|
{ label: '客户数', name: 'custCnt', align: 'center' }, |
||||
|
{ label: '占比', name: 'custRatio', align: 'center' }, |
||||
|
], |
||||
|
}, |
||||
|
{ |
||||
|
label: '本月新增客户', |
||||
|
name: 'currInctCustHeader', |
||||
|
columns: [ |
||||
|
{ label: '客户数', name: 'currInctCnt', align: 'center' }, |
||||
|
{ label: '占比', name: 'currInctRatio', align: 'center' }, |
||||
|
], |
||||
|
}, |
||||
|
{ |
||||
|
label: '违约客户', |
||||
|
name: 'defCustHeader', |
||||
|
columns: [ |
||||
|
{ label: '客户数', name: 'defCustCnt', align: 'center' }, |
||||
|
{ label: '违约率', name: 'defCustRatio', align: 'center' }, |
||||
|
], |
||||
|
}, |
||||
|
{ |
||||
|
label: '信贷余额', |
||||
|
name: 'borrBalHeader', |
||||
|
columns: [ |
||||
|
{ label: '余额', name: 'borrBal', align: 'center' }, |
||||
|
{ label: '占比', name: 'borrBalRatio', align: 'center' }, |
||||
|
], |
||||
|
}, |
||||
|
], |
||||
|
}; |
||||
|
</script> |
@ -0,0 +1,227 @@ |
|||||
|
<template> |
||||
|
<div> |
||||
|
<w-grid |
||||
|
ref="rptRatingIndustryFocusDistGridRef" |
||||
|
title="客户评级行业集中度分布报表" |
||||
|
:data-url="Environment.apiContextPath('api/irbs/rptRatingIndustryFocusDist/list')" |
||||
|
:sort-no="true" |
||||
|
:checkbox-selection="false" |
||||
|
:query-form-cols-num="4" |
||||
|
:query-form-fields="rptRatingIndustryFocusDistGrid.queryFormFields" |
||||
|
:columns="rptRatingIndustryFocusDistGrid.tableColumns" |
||||
|
:toolbar-actions="rptRatingIndustryFocusDistGrid.buttons" |
||||
|
:pageable="false" |
||||
|
></w-grid> |
||||
|
</div> |
||||
|
</template> |
||||
|
|
||||
|
<script setup lang="ts"> |
||||
|
import { ref, reactive } from 'vue'; |
||||
|
import { useQuasar } from 'quasar'; |
||||
|
import { Environment, EnumTools, DictionaryTools, Options, Formater, axios, NotifyManager } from 'platform-core'; |
||||
|
|
||||
|
const $q = useQuasar(); |
||||
|
const rptRatingIndustryFocusDistGridRef = ref(); |
||||
|
|
||||
|
const rptRatingIndustryFocusDistGrid = { |
||||
|
buttons: [ |
||||
|
{ |
||||
|
extend: 'query', |
||||
|
click: () => { |
||||
|
const QueryParams = rptRatingIndustryFocusDistGridRef.value.getQueryForm().getData(); |
||||
|
axios.get(Environment.apiContextPath('api/irbs/rptRatingIndustryFocusDist/list'), { params: QueryParams }).then((resp) => { |
||||
|
rptRatingIndustryFocusDistGridRef.value.setLocalData(resp.data); |
||||
|
}); |
||||
|
}, |
||||
|
}, |
||||
|
'reset', |
||||
|
'separator', |
||||
|
], |
||||
|
queryFormFields: [ |
||||
|
{ label: '报表日期', name: 'ratingMonth', type: 'date', defaultValue: '2023-07-01' }, |
||||
|
{ |
||||
|
label: '模型敞口', |
||||
|
name: 'modelCode', |
||||
|
type: 'select', |
||||
|
options: [ |
||||
|
{ value: 'WHM1', label: '政府投融资平台' }, |
||||
|
{ value: 'WHM2', label: '事业单位' }, |
||||
|
{ value: 'WHM3', label: '银行类金融机构' }, |
||||
|
{ value: 'WHM41', label: '金融租赁与消费金融公司' }, |
||||
|
{ value: 'WHM42', label: '证券公司' }, |
||||
|
{ value: 'WHM43', label: '其他非银行金融机构' }, |
||||
|
{ value: 'WHM44', label: '基金公司' }, |
||||
|
{ value: 'WHM5', label: '新建企业' }, |
||||
|
{ value: 'WHM6', label: '综合性集团' }, |
||||
|
{ value: 'WHM7', label: '大型其他行业' }, |
||||
|
{ value: 'WHM8', label: '中小微其他行业' }, |
||||
|
{ value: 'WHM9', label: '大中型租赁和商务服务行业' }, |
||||
|
{ value: 'WHM10', label: '小微租赁和商务服务业' }, |
||||
|
{ value: 'WHM12', label: '房地产业' }, |
||||
|
{ value: 'WHM13', label: '大中型农林牧渔业' }, |
||||
|
{ value: 'WHM14', label: '小微农林牧渔业' }, |
||||
|
{ value: 'WHM15', label: '大型建筑业' }, |
||||
|
{ value: 'WHM16', label: '中小微建筑业' }, |
||||
|
{ value: 'WHM17', label: '大中型制造业' }, |
||||
|
{ value: 'WHM18', label: '小微制造业' }, |
||||
|
{ value: 'WHM19', label: '大中型批发和零售业' }, |
||||
|
{ value: 'WHM20', label: '小微批发和零售业' }, |
||||
|
{ value: 'WHM22', label: '科技行业' }, |
||||
|
], |
||||
|
}, |
||||
|
{ |
||||
|
label: '分支机构', |
||||
|
name: 'managerOrgCode', |
||||
|
type: 'select', |
||||
|
options: [ |
||||
|
{ value: '01002', label: '总行营业部' }, |
||||
|
{ value: '01003', label: 'JJJS开发区支行' }, |
||||
|
{ value: '01005', label: 'XF支行' }, |
||||
|
{ value: '01006', label: 'GCZ支行' }, |
||||
|
{ value: '01007', label: 'ZL支行' }, |
||||
|
{ value: '01008', label: 'HKJ支行' }, |
||||
|
{ value: '01009', label: 'HL支行' }, |
||||
|
{ value: '01010', label: 'LJ支行' }, |
||||
|
{ value: '01012', label: 'GG分行' }, |
||||
|
{ value: '01013', label: 'ZY支行' }, |
||||
|
{ value: '01014', label: 'ZD支行' }, |
||||
|
{ value: '01015', label: 'HK支行' }, |
||||
|
{ value: '01016', label: 'DS支行' }, |
||||
|
{ value: '01017', label: 'LF支行' }, |
||||
|
{ value: '01018', label: 'GS支行' }, |
||||
|
{ value: '01019', label: 'LX支行' }, |
||||
|
{ value: '01020', label: 'BX支行' }, |
||||
|
{ value: '01021', label: 'ZQ支行' }, |
||||
|
{ value: '01022', label: 'JF支行' }, |
||||
|
{ value: '01023', label: 'CC支行' }, |
||||
|
{ value: '01024', label: 'LQ支行' }, |
||||
|
{ value: '01025', label: 'DH支行' }, |
||||
|
{ value: '01027', label: 'SGH支行' }, |
||||
|
], |
||||
|
}, |
||||
|
], |
||||
|
tableColumns: [ |
||||
|
{ label: '所属行业', name: 'industryName', align: 'center' }, |
||||
|
{ |
||||
|
name: 'AAA', |
||||
|
label: 'AAA', |
||||
|
columns: [ |
||||
|
{ label: '客户数', name: 'aaaCnt', align: 'center' }, |
||||
|
{ label: '占比', name: 'aaaRatio', align: 'center' }, |
||||
|
], |
||||
|
}, |
||||
|
{ |
||||
|
name: 'AA', |
||||
|
label: 'AA', |
||||
|
columns: [ |
||||
|
{ label: '客户数', name: 'aaCnt', align: 'center' }, |
||||
|
{ label: '占比', name: 'aaRatio', align: 'center' }, |
||||
|
], |
||||
|
}, |
||||
|
{ |
||||
|
name: 'A+', |
||||
|
label: 'A+', |
||||
|
columns: [ |
||||
|
{ label: '客户数', name: 'aPlusCnt', align: 'center' }, |
||||
|
{ label: '占比', name: 'aPlusRatio', align: 'center' }, |
||||
|
], |
||||
|
}, |
||||
|
{ |
||||
|
name: 'A', |
||||
|
label: 'A', |
||||
|
columns: [ |
||||
|
{ label: '客户数', name: 'aCnt', align: 'center' }, |
||||
|
{ label: '占比', name: 'aRatio', align: 'center' }, |
||||
|
], |
||||
|
}, |
||||
|
{ |
||||
|
name: 'A-', |
||||
|
label: 'A-', |
||||
|
columns: [ |
||||
|
{ label: '客户数', name: 'aMinusCnt', align: 'center' }, |
||||
|
{ label: '占比', name: 'aMinusRatio', align: 'center' }, |
||||
|
], |
||||
|
}, |
||||
|
{ |
||||
|
name: 'BBB', |
||||
|
label: 'BBB', |
||||
|
columns: [ |
||||
|
{ label: '客户数', name: 'bbbCnt', align: 'center' }, |
||||
|
{ label: '占比', name: 'bbbRatio', align: 'center' }, |
||||
|
], |
||||
|
}, |
||||
|
{ |
||||
|
name: 'BB+', |
||||
|
label: 'BB+', |
||||
|
columns: [ |
||||
|
{ label: '客户数', name: 'bbPlusCnt', align: 'center' }, |
||||
|
{ label: '占比', name: 'bbPlusRatio', align: 'center' }, |
||||
|
], |
||||
|
}, |
||||
|
{ |
||||
|
name: 'BB', |
||||
|
label: 'BB', |
||||
|
columns: [ |
||||
|
{ label: '客户数', name: 'bbCnt', align: 'center' }, |
||||
|
{ label: '占比', name: 'bbRatio', align: 'center' }, |
||||
|
], |
||||
|
}, |
||||
|
{ |
||||
|
name: 'BB-', |
||||
|
label: 'BB-', |
||||
|
columns: [ |
||||
|
{ label: '客户数', name: 'bbMinusCnt', align: 'center' }, |
||||
|
{ label: '占比', name: 'bbMinusRatio', align: 'center' }, |
||||
|
], |
||||
|
}, |
||||
|
{ |
||||
|
name: 'B+', |
||||
|
label: 'B+', |
||||
|
columns: [ |
||||
|
{ label: '客户数', name: 'bPlusCnt', align: 'center' }, |
||||
|
{ label: '占比', name: 'bPlusRatio', align: 'center' }, |
||||
|
], |
||||
|
}, |
||||
|
{ |
||||
|
name: 'B', |
||||
|
label: 'B', |
||||
|
columns: [ |
||||
|
{ label: '客户数', name: 'bCnt', align: 'center' }, |
||||
|
{ label: '占比', name: 'bRatio', align: 'center' }, |
||||
|
], |
||||
|
}, |
||||
|
{ |
||||
|
name: 'CCC', |
||||
|
label: 'CCC', |
||||
|
columns: [ |
||||
|
{ label: '客户数', name: 'cccCnt', align: 'center' }, |
||||
|
{ label: '占比', name: 'cccRatio', align: 'center' }, |
||||
|
], |
||||
|
}, |
||||
|
{ |
||||
|
name: 'CC', |
||||
|
label: 'CC', |
||||
|
columns: [ |
||||
|
{ label: '客户数', name: 'ccCnt', align: 'center' }, |
||||
|
{ label: '占比', name: 'ccRatio', align: 'center' }, |
||||
|
], |
||||
|
}, |
||||
|
{ |
||||
|
name: 'C', |
||||
|
label: 'C', |
||||
|
columns: [ |
||||
|
{ label: '客户数', name: 'cCnt', align: 'center' }, |
||||
|
{ label: '占比', name: 'cRatio', align: 'center' }, |
||||
|
], |
||||
|
}, |
||||
|
{ |
||||
|
name: 'D', |
||||
|
label: 'D', |
||||
|
columns: [ |
||||
|
{ label: '客户数', name: 'dCnt', align: 'center' }, |
||||
|
{ label: '占比', name: 'dRatio', align: 'center' }, |
||||
|
], |
||||
|
}, |
||||
|
], |
||||
|
}; |
||||
|
</script> |
@ -0,0 +1,147 @@ |
|||||
|
<template> |
||||
|
<div> |
||||
|
<w-grid |
||||
|
ref="rptRatingLoanBalanceMigrateRef" |
||||
|
title="客户评级迁移报表(信贷余额)" |
||||
|
:data-url="Environment.apiContextPath('api/irbs/rptRatingLoanBalanceMigrate/list')" |
||||
|
:sort-no="true" |
||||
|
:checkbox-selection="false" |
||||
|
:query-form-cols-num="2" |
||||
|
:query-form-fields="rptRatingLoanBalanceMigrateGrid.queryFormFields" |
||||
|
:columns="rptRatingLoanBalanceMigrateGrid.tableColumns" |
||||
|
:toolbar-actions="rptRatingLoanBalanceMigrateGrid.buttons" |
||||
|
:pageable="false" |
||||
|
></w-grid> |
||||
|
</div> |
||||
|
</template> |
||||
|
|
||||
|
<script setup lang="ts"> |
||||
|
import { ref, reactive } from 'vue'; |
||||
|
import { useQuasar } from 'quasar'; |
||||
|
import { Environment, EnumTools, DictionaryTools, Options, Formater, axios, NotifyManager } from 'platform-core'; |
||||
|
|
||||
|
const $q = useQuasar(); |
||||
|
const rptRatingLoanBalanceMigrateRef = ref(); |
||||
|
|
||||
|
const rptRatingLoanBalanceMigrateGrid = { |
||||
|
buttons: [ |
||||
|
{ |
||||
|
extend: 'query', |
||||
|
click: () => { |
||||
|
const QueryParams = rptRatingLoanBalanceMigrateRef.value.getQueryForm().getData(); |
||||
|
axios.get(Environment.apiContextPath('api/irbs/rptRatingLoanBalanceMigrate/list'), { params: QueryParams }).then((resp) => { |
||||
|
rptRatingLoanBalanceMigrateRef.value.setLocalData(resp.data); |
||||
|
}); |
||||
|
}, |
||||
|
}, |
||||
|
'reset', |
||||
|
'separator', |
||||
|
], |
||||
|
queryFormFields: [ |
||||
|
{ label: '报表日期', name: 'ratingMonth', type: 'date', defaultValue: '2023-07-01' }, |
||||
|
{ |
||||
|
label: '模型敞口', |
||||
|
name: 'modelCode', |
||||
|
type: 'select', |
||||
|
options: [ |
||||
|
{ value: 'WHM1', label: '政府投融资平台' }, |
||||
|
{ value: 'WHM2', label: '事业单位' }, |
||||
|
{ value: 'WHM3', label: '银行类金融机构' }, |
||||
|
{ value: 'WHM41', label: '金融租赁与消费金融公司' }, |
||||
|
{ value: 'WHM42', label: '证券公司' }, |
||||
|
{ value: 'WHM43', label: '其他非银行金融机构' }, |
||||
|
{ value: 'WHM44', label: '基金公司' }, |
||||
|
{ value: 'WHM5', label: '新建企业' }, |
||||
|
{ value: 'WHM6', label: '综合性集团' }, |
||||
|
{ value: 'WHM7', label: '大型其他行业' }, |
||||
|
{ value: 'WHM8', label: '中小微其他行业' }, |
||||
|
{ value: 'WHM9', label: '大中型租赁和商务服务行业' }, |
||||
|
{ value: 'WHM10', label: '小微租赁和商务服务业' }, |
||||
|
{ value: 'WHM12', label: '房地产业' }, |
||||
|
{ value: 'WHM13', label: '大中型农林牧渔业' }, |
||||
|
{ value: 'WHM14', label: '小微农林牧渔业' }, |
||||
|
{ value: 'WHM15', label: '大型建筑业' }, |
||||
|
{ value: 'WHM16', label: '中小微建筑业' }, |
||||
|
{ value: 'WHM17', label: '大中型制造业' }, |
||||
|
{ value: 'WHM18', label: '小微制造业' }, |
||||
|
{ value: 'WHM19', label: '大中型批发和零售业' }, |
||||
|
{ value: 'WHM20', label: '小微批发和零售业' }, |
||||
|
{ value: 'WHM22', label: '科技行业' }, |
||||
|
], |
||||
|
defaultValue: 'WHM18', |
||||
|
}, |
||||
|
{ |
||||
|
label: '分支机构', |
||||
|
name: 'managerOrgCode', |
||||
|
type: 'select', |
||||
|
options: [ |
||||
|
{ value: '01002', label: '总行营业部' }, |
||||
|
{ value: '01003', label: 'JJJS开发区支行' }, |
||||
|
{ value: '01005', label: 'XF支行' }, |
||||
|
{ value: '01006', label: 'GCZ支行' }, |
||||
|
{ value: '01007', label: 'ZL支行' }, |
||||
|
{ value: '01008', label: 'HKJ支行' }, |
||||
|
{ value: '01009', label: 'HL支行' }, |
||||
|
{ value: '01010', label: 'LJ支行' }, |
||||
|
{ value: '01012', label: 'GG分行' }, |
||||
|
{ value: '01013', label: 'ZY支行' }, |
||||
|
{ value: '01014', label: 'ZD支行' }, |
||||
|
{ value: '01015', label: 'HK支行' }, |
||||
|
{ value: '01016', label: 'DS支行' }, |
||||
|
{ value: '01017', label: 'LF支行' }, |
||||
|
{ value: '01018', label: 'GS支行' }, |
||||
|
{ value: '01019', label: 'LX支行' }, |
||||
|
{ value: '01020', label: 'BX支行' }, |
||||
|
{ value: '01021', label: 'ZQ支行' }, |
||||
|
{ value: '01022', label: 'JF支行' }, |
||||
|
{ value: '01023', label: 'CC支行' }, |
||||
|
{ value: '01024', label: 'LQ支行' }, |
||||
|
{ value: '01025', label: 'DH支行' }, |
||||
|
{ value: '01027', label: 'SGH支行' }, |
||||
|
], |
||||
|
}, |
||||
|
], |
||||
|
tableColumns: [ |
||||
|
{ label: '上期客户评级分布', name: 'ratingLevel', align: 'center' }, |
||||
|
{ |
||||
|
name: 'currRatingDist', |
||||
|
label: '本期客户评级分布', |
||||
|
columns: [ |
||||
|
{ label: 'AAA', name: 'aaaBal', align: 'center' }, |
||||
|
{ label: 'AA', name: 'aaBal', align: 'center' }, |
||||
|
{ label: 'A+', name: 'aPlusBal', align: 'center' }, |
||||
|
{ label: 'A', name: 'aBal', align: 'center' }, |
||||
|
{ label: 'A-', name: 'aMinusBal', align: 'center' }, |
||||
|
{ label: 'BBB', name: 'bbbBal', align: 'center' }, |
||||
|
{ label: 'BB+', name: 'bbPlusBal', align: 'center' }, |
||||
|
{ label: 'BB', name: 'bbBal', align: 'center' }, |
||||
|
{ label: 'BB-', name: 'bbMinusBal', align: 'center' }, |
||||
|
{ label: 'B+', name: 'bPlusBal', align: 'center' }, |
||||
|
{ label: 'B', name: 'bBal', align: 'center' }, |
||||
|
{ label: 'CCC', name: 'cccBal', align: 'center' }, |
||||
|
{ label: 'CC', name: 'ccBal', align: 'center' }, |
||||
|
{ label: 'C', name: 'cBal', align: 'center' }, |
||||
|
{ label: 'D', name: 'dBal', align: 'center' }, |
||||
|
{ label: '未评级', name: 'notRatingBal', align: 'center' }, |
||||
|
], |
||||
|
}, |
||||
|
{ |
||||
|
name: 'ratingUpMigrate', |
||||
|
label: '向上迁移', |
||||
|
columns: [ |
||||
|
{ label: '信贷余额', name: 'upBal', align: 'center' }, |
||||
|
{ label: '占比', name: 'upRatio', align: 'center' }, |
||||
|
], |
||||
|
}, |
||||
|
{ |
||||
|
name: 'ratingDownMigrate', |
||||
|
label: '向下迁移', |
||||
|
columns: [ |
||||
|
{ label: '信贷余额', name: 'downBal', align: 'center' }, |
||||
|
{ label: '占比', name: 'downRatio', align: 'center' }, |
||||
|
], |
||||
|
}, |
||||
|
{ label: '迁移指数', name: 'chgExponent', align: 'center' }, |
||||
|
], |
||||
|
}; |
||||
|
</script> |
@ -0,0 +1,197 @@ |
|||||
|
<template> |
||||
|
<div> |
||||
|
<w-grid |
||||
|
ref="rptRatingModelFocusDistGridRef" |
||||
|
title="客户评级模型敞口集中度分布报表" |
||||
|
:data-url="Environment.apiContextPath('api/irbs/rptRatingModelFocusDist/list')" |
||||
|
:sort-no="true" |
||||
|
:checkbox-selection="false" |
||||
|
:query-form-cols-num="4" |
||||
|
:query-form-fields="rptRatingModelFocusDistGrid.queryFormFields" |
||||
|
:columns="rptRatingModelFocusDistGrid.tableColumns" |
||||
|
:toolbar-actions="rptRatingModelFocusDistGrid.buttons" |
||||
|
:pageable="false" |
||||
|
></w-grid> |
||||
|
</div> |
||||
|
</template> |
||||
|
|
||||
|
<script setup lang="ts"> |
||||
|
import { ref, reactive } from 'vue'; |
||||
|
import { useQuasar } from 'quasar'; |
||||
|
import { Environment, EnumTools, DictionaryTools, Options, Formater, axios, NotifyManager } from 'platform-core'; |
||||
|
|
||||
|
const $q = useQuasar(); |
||||
|
const rptRatingModelFocusDistGridRef = ref(); |
||||
|
|
||||
|
const rptRatingModelFocusDistGrid = { |
||||
|
buttons: [ |
||||
|
{ |
||||
|
extend: 'query', |
||||
|
click: () => { |
||||
|
const QueryParams = rptRatingModelFocusDistGridRef.value.getQueryForm().getData(); |
||||
|
axios.get(Environment.apiContextPath('api/irbs/rptRatingModelFocusDist/list'), { params: QueryParams }).then((resp) => { |
||||
|
rptRatingModelFocusDistGridRef.value.setLocalData(resp.data); |
||||
|
}); |
||||
|
}, |
||||
|
}, |
||||
|
'reset', |
||||
|
'separator', |
||||
|
], |
||||
|
queryFormFields: [ |
||||
|
{ label: '报表日期', name: 'ratingMonth', type: 'date', defaultValue: '2023-07-01' }, |
||||
|
{ |
||||
|
label: '分支机构', |
||||
|
name: 'managerOrgCode', |
||||
|
type: 'select', |
||||
|
options: [ |
||||
|
{ value: '01002', label: '总行营业部' }, |
||||
|
{ value: '01003', label: 'JJJS开发区支行' }, |
||||
|
{ value: '01005', label: 'XF支行' }, |
||||
|
{ value: '01006', label: 'GCZ支行' }, |
||||
|
{ value: '01007', label: 'ZL支行' }, |
||||
|
{ value: '01008', label: 'HKJ支行' }, |
||||
|
{ value: '01009', label: 'HL支行' }, |
||||
|
{ value: '01010', label: 'LJ支行' }, |
||||
|
{ value: '01012', label: 'GG分行' }, |
||||
|
{ value: '01013', label: 'ZY支行' }, |
||||
|
{ value: '01014', label: 'ZD支行' }, |
||||
|
{ value: '01015', label: 'HK支行' }, |
||||
|
{ value: '01016', label: 'DS支行' }, |
||||
|
{ value: '01017', label: 'LF支行' }, |
||||
|
{ value: '01018', label: 'GS支行' }, |
||||
|
{ value: '01019', label: 'LX支行' }, |
||||
|
{ value: '01020', label: 'BX支行' }, |
||||
|
{ value: '01021', label: 'ZQ支行' }, |
||||
|
{ value: '01022', label: 'JF支行' }, |
||||
|
{ value: '01023', label: 'CC支行' }, |
||||
|
{ value: '01024', label: 'LQ支行' }, |
||||
|
{ value: '01025', label: 'DH支行' }, |
||||
|
{ value: '01027', label: 'SGH支行' }, |
||||
|
], |
||||
|
}, |
||||
|
], |
||||
|
tableColumns: [ |
||||
|
{ label: '模型敞口', name: 'modelName', align: 'center' }, |
||||
|
{ |
||||
|
name: 'AAA', |
||||
|
label: 'AAA', |
||||
|
columns: [ |
||||
|
{ label: '客户数', name: 'aaaCnt', align: 'center' }, |
||||
|
{ label: '占比', name: 'aaaRatio', align: 'center' }, |
||||
|
], |
||||
|
}, |
||||
|
{ |
||||
|
name: 'AA', |
||||
|
label: 'AA', |
||||
|
columns: [ |
||||
|
{ label: '客户数', name: 'aaCnt', align: 'center' }, |
||||
|
{ label: '占比', name: 'aaRatio', align: 'center' }, |
||||
|
], |
||||
|
}, |
||||
|
{ |
||||
|
name: 'A+', |
||||
|
label: 'A+', |
||||
|
columns: [ |
||||
|
{ label: '客户数', name: 'aPlusCnt', align: 'center' }, |
||||
|
{ label: '占比', name: 'aPlusRatio', align: 'center' }, |
||||
|
], |
||||
|
}, |
||||
|
{ |
||||
|
name: 'A', |
||||
|
label: 'A', |
||||
|
columns: [ |
||||
|
{ label: '客户数', name: 'aCnt', align: 'center' }, |
||||
|
{ label: '占比', name: 'aRatio', align: 'center' }, |
||||
|
], |
||||
|
}, |
||||
|
{ |
||||
|
name: 'A-', |
||||
|
label: 'A-', |
||||
|
columns: [ |
||||
|
{ label: '客户数', name: 'aMinusCnt', align: 'center' }, |
||||
|
{ label: '占比', name: 'aMinusRatio', align: 'center' }, |
||||
|
], |
||||
|
}, |
||||
|
{ |
||||
|
name: 'BBB', |
||||
|
label: 'BBB', |
||||
|
columns: [ |
||||
|
{ label: '客户数', name: 'bbbCnt', align: 'center' }, |
||||
|
{ label: '占比', name: 'bbbRatio', align: 'center' }, |
||||
|
], |
||||
|
}, |
||||
|
{ |
||||
|
name: 'BB+', |
||||
|
label: 'BB+', |
||||
|
columns: [ |
||||
|
{ label: '客户数', name: 'bbPlusCnt', align: 'center' }, |
||||
|
{ label: '占比', name: 'bbPlusRatio', align: 'center' }, |
||||
|
], |
||||
|
}, |
||||
|
{ |
||||
|
name: 'BB', |
||||
|
label: 'BB', |
||||
|
columns: [ |
||||
|
{ label: '客户数', name: 'bbCnt', align: 'center' }, |
||||
|
{ label: '占比', name: 'bbRatio', align: 'center' }, |
||||
|
], |
||||
|
}, |
||||
|
{ |
||||
|
name: 'BB-', |
||||
|
label: 'BB-', |
||||
|
columns: [ |
||||
|
{ label: '客户数', name: 'bbMinusCnt', align: 'center' }, |
||||
|
{ label: '占比', name: 'bbMinusRatio', align: 'center' }, |
||||
|
], |
||||
|
}, |
||||
|
{ |
||||
|
name: 'B+', |
||||
|
label: 'B+', |
||||
|
columns: [ |
||||
|
{ label: '客户数', name: 'bPlusCnt', align: 'center' }, |
||||
|
{ label: '占比', name: 'bPlusRatio', align: 'center' }, |
||||
|
], |
||||
|
}, |
||||
|
{ |
||||
|
name: 'B', |
||||
|
label: 'B', |
||||
|
columns: [ |
||||
|
{ label: '客户数', name: 'bCnt', align: 'center' }, |
||||
|
{ label: '占比', name: 'bRatio', align: 'center' }, |
||||
|
], |
||||
|
}, |
||||
|
{ |
||||
|
name: 'CCC', |
||||
|
label: 'CCC', |
||||
|
columns: [ |
||||
|
{ label: '客户数', name: 'cccCnt', align: 'center' }, |
||||
|
{ label: '占比', name: 'cccRatio', align: 'center' }, |
||||
|
], |
||||
|
}, |
||||
|
{ |
||||
|
name: 'CC', |
||||
|
label: 'CC', |
||||
|
columns: [ |
||||
|
{ label: '客户数', name: 'ccCnt', align: 'center' }, |
||||
|
{ label: '占比', name: 'ccRatio', align: 'center' }, |
||||
|
], |
||||
|
}, |
||||
|
{ |
||||
|
name: 'C', |
||||
|
label: 'C', |
||||
|
columns: [ |
||||
|
{ label: '客户数', name: 'cCnt', align: 'center' }, |
||||
|
{ label: '占比', name: 'cRatio', align: 'center' }, |
||||
|
], |
||||
|
}, |
||||
|
{ |
||||
|
name: 'D', |
||||
|
label: 'D', |
||||
|
columns: [ |
||||
|
{ label: '客户数', name: 'dCnt', align: 'center' }, |
||||
|
{ label: '占比', name: 'dRatio', align: 'center' }, |
||||
|
], |
||||
|
}, |
||||
|
], |
||||
|
}; |
||||
|
</script> |
@ -0,0 +1,146 @@ |
|||||
|
<template> |
||||
|
<div> |
||||
|
<w-grid |
||||
|
ref="rptRatingNumberMigrateRef" |
||||
|
title="客户评级迁移报表(客户数)" |
||||
|
:data-url="Environment.apiContextPath('api/irbs/rptRatingNumberMigrate/list')" |
||||
|
:sort-no="true" |
||||
|
:checkbox-selection="false" |
||||
|
:query-form-cols-num="2" |
||||
|
:query-form-fields="rptRatingNumberMigrateGrid.queryFormFields" |
||||
|
:columns="rptRatingNumberMigrateGrid.tableColumns" |
||||
|
:toolbar-actions="rptRatingNumberMigrateGrid.buttons" |
||||
|
:pageable="false" |
||||
|
></w-grid> |
||||
|
</div> |
||||
|
</template> |
||||
|
|
||||
|
<script setup lang="ts"> |
||||
|
import { ref, reactive } from 'vue'; |
||||
|
import { useQuasar } from 'quasar'; |
||||
|
import { Environment, EnumTools, DictionaryTools, Options, Formater, axios, NotifyManager } from 'platform-core'; |
||||
|
|
||||
|
const $q = useQuasar(); |
||||
|
const rptRatingNumberMigrateRef = ref(); |
||||
|
|
||||
|
const rptRatingNumberMigrateGrid = { |
||||
|
buttons: [ |
||||
|
{ |
||||
|
extend: 'query', |
||||
|
click: () => { |
||||
|
const QueryParams = rptRatingNumberMigrateRef.value.getQueryForm().getData(); |
||||
|
axios.get(Environment.apiContextPath('api/irbs/rptRatingNumberMigrate/list'), { params: QueryParams }).then((resp) => { |
||||
|
rptRatingNumberMigrateRef.value.setLocalData(resp.data); |
||||
|
}); |
||||
|
}, |
||||
|
}, |
||||
|
'reset', |
||||
|
'separator', |
||||
|
], |
||||
|
queryFormFields: [ |
||||
|
{ label: '报表日期', name: 'ratingMonth', type: 'date', defaultValue: '2023-07-01' }, |
||||
|
{ |
||||
|
label: '模型敞口', |
||||
|
name: 'modelCode', |
||||
|
type: 'select', |
||||
|
options: [ |
||||
|
{ value: 'WHM1', label: '政府投融资平台' }, |
||||
|
{ value: 'WHM2', label: '事业单位' }, |
||||
|
{ value: 'WHM3', label: '银行类金融机构' }, |
||||
|
{ value: 'WHM41', label: '金融租赁与消费金融公司' }, |
||||
|
{ value: 'WHM42', label: '证券公司' }, |
||||
|
{ value: 'WHM43', label: '其他非银行金融机构' }, |
||||
|
{ value: 'WHM44', label: '基金公司' }, |
||||
|
{ value: 'WHM5', label: '新建企业' }, |
||||
|
{ value: 'WHM6', label: '综合性集团' }, |
||||
|
{ value: 'WHM7', label: '大型其他行业' }, |
||||
|
{ value: 'WHM8', label: '中小微其他行业' }, |
||||
|
{ value: 'WHM9', label: '大中型租赁和商务服务行业' }, |
||||
|
{ value: 'WHM10', label: '小微租赁和商务服务业' }, |
||||
|
{ value: 'WHM12', label: '房地产业' }, |
||||
|
{ value: 'WHM13', label: '大中型农林牧渔业' }, |
||||
|
{ value: 'WHM14', label: '小微农林牧渔业' }, |
||||
|
{ value: 'WHM15', label: '大型建筑业' }, |
||||
|
{ value: 'WHM16', label: '中小微建筑业' }, |
||||
|
{ value: 'WHM17', label: '大中型制造业' }, |
||||
|
{ value: 'WHM18', label: '小微制造业' }, |
||||
|
{ value: 'WHM19', label: '大中型批发和零售业' }, |
||||
|
{ value: 'WHM20', label: '小微批发和零售业' }, |
||||
|
{ value: 'WHM22', label: '科技行业' }, |
||||
|
], |
||||
|
}, |
||||
|
{ |
||||
|
label: '分支机构', |
||||
|
name: 'managerOrgCode', |
||||
|
type: 'select', |
||||
|
options: [ |
||||
|
{ value: '01002', label: '总行营业部' }, |
||||
|
{ value: '01003', label: 'JJJS开发区支行' }, |
||||
|
{ value: '01005', label: 'XF支行' }, |
||||
|
{ value: '01006', label: 'GCZ支行' }, |
||||
|
{ value: '01007', label: 'ZL支行' }, |
||||
|
{ value: '01008', label: 'HKJ支行' }, |
||||
|
{ value: '01009', label: 'HL支行' }, |
||||
|
{ value: '01010', label: 'LJ支行' }, |
||||
|
{ value: '01012', label: 'GG分行' }, |
||||
|
{ value: '01013', label: 'ZY支行' }, |
||||
|
{ value: '01014', label: 'ZD支行' }, |
||||
|
{ value: '01015', label: 'HK支行' }, |
||||
|
{ value: '01016', label: 'DS支行' }, |
||||
|
{ value: '01017', label: 'LF支行' }, |
||||
|
{ value: '01018', label: 'GS支行' }, |
||||
|
{ value: '01019', label: 'LX支行' }, |
||||
|
{ value: '01020', label: 'BX支行' }, |
||||
|
{ value: '01021', label: 'ZQ支行' }, |
||||
|
{ value: '01022', label: 'JF支行' }, |
||||
|
{ value: '01023', label: 'CC支行' }, |
||||
|
{ value: '01024', label: 'LQ支行' }, |
||||
|
{ value: '01025', label: 'DH支行' }, |
||||
|
{ value: '01027', label: 'SGH支行' }, |
||||
|
], |
||||
|
}, |
||||
|
], |
||||
|
tableColumns: [ |
||||
|
{ label: '上期客户评级分布', name: 'ratingLevel', align: 'center' }, |
||||
|
{ |
||||
|
name: 'currRatingDist', |
||||
|
label: '本期客户评级分布', |
||||
|
columns: [ |
||||
|
{ label: 'AAA', name: 'aaaCnt', align: 'center' }, |
||||
|
{ label: 'AA', name: 'aaCnt', align: 'center' }, |
||||
|
{ label: 'A+', name: 'aPlusCnt', align: 'center' }, |
||||
|
{ label: 'A', name: 'aCnt', align: 'center' }, |
||||
|
{ label: 'A-', name: 'aMinusCnt', align: 'center' }, |
||||
|
{ label: 'BBB', name: 'bbbCnt', align: 'center' }, |
||||
|
{ label: 'BB+', name: 'bbPlusCnt', align: 'center' }, |
||||
|
{ label: 'BB', name: 'bbCnt', align: 'center' }, |
||||
|
{ label: 'BB-', name: 'bbMinusCnt', align: 'center' }, |
||||
|
{ label: 'B+', name: 'bPlusCnt', align: 'center' }, |
||||
|
{ label: 'B', name: 'bCnt', align: 'center' }, |
||||
|
{ label: 'CCC', name: 'cccCnt', align: 'center' }, |
||||
|
{ label: 'CC', name: 'ccCnt', align: 'center' }, |
||||
|
{ label: 'C', name: 'cCnt', align: 'center' }, |
||||
|
{ label: 'D', name: 'dCnt', align: 'center' }, |
||||
|
{ label: '未评级', name: 'notRatingCnt', align: 'center' }, |
||||
|
], |
||||
|
}, |
||||
|
{ |
||||
|
name: 'ratingUpMigrate', |
||||
|
label: '向上迁移', |
||||
|
columns: [ |
||||
|
{ label: '客户数', name: 'upCnt', align: 'center' }, |
||||
|
{ label: '占比', name: 'upRatio', align: 'center' }, |
||||
|
], |
||||
|
}, |
||||
|
{ |
||||
|
name: 'ratingDownMigrate', |
||||
|
label: '向下迁移', |
||||
|
columns: [ |
||||
|
{ label: '客户数', name: 'downCnt', align: 'center' }, |
||||
|
{ label: '占比', name: 'downRatio', align: 'center' }, |
||||
|
], |
||||
|
}, |
||||
|
{ label: '迁移指数', name: 'chgExponent', align: 'center' }, |
||||
|
], |
||||
|
}; |
||||
|
</script> |
@ -0,0 +1,197 @@ |
|||||
|
<template> |
||||
|
<div> |
||||
|
<w-grid |
||||
|
ref="rptRatingOrgFocusDistGridRef" |
||||
|
title="客户评级分支机构集中度分布报表" |
||||
|
:data-url="Environment.apiContextPath('api/irbs/rptRatingOrgFocusDist/list')" |
||||
|
:sort-no="true" |
||||
|
:checkbox-selection="false" |
||||
|
:query-form-cols-num="4" |
||||
|
:query-form-fields="rptRatingOrgFocusDistGrid.queryFormFields" |
||||
|
:columns="rptRatingOrgFocusDistGrid.tableColumns" |
||||
|
:toolbar-actions="rptRatingOrgFocusDistGrid.buttons" |
||||
|
:pageable="false" |
||||
|
></w-grid> |
||||
|
</div> |
||||
|
</template> |
||||
|
|
||||
|
<script setup lang="ts"> |
||||
|
import { ref, reactive } from 'vue'; |
||||
|
import { useQuasar } from 'quasar'; |
||||
|
import { Environment, EnumTools, DictionaryTools, Options, Formater, axios, NotifyManager } from 'platform-core'; |
||||
|
|
||||
|
const $q = useQuasar(); |
||||
|
const rptRatingOrgFocusDistGridRef = ref(); |
||||
|
|
||||
|
const rptRatingOrgFocusDistGrid = { |
||||
|
buttons: [ |
||||
|
{ |
||||
|
extend: 'query', |
||||
|
click: () => { |
||||
|
const QueryParams = rptRatingOrgFocusDistGridRef.value.getQueryForm().getData(); |
||||
|
axios.get(Environment.apiContextPath('api/irbs/rptRatingOrgFocusDist/list'), { params: QueryParams }).then((resp) => { |
||||
|
rptRatingOrgFocusDistGridRef.value.setLocalData(resp.data); |
||||
|
}); |
||||
|
}, |
||||
|
}, |
||||
|
'reset', |
||||
|
'separator', |
||||
|
], |
||||
|
queryFormFields: [ |
||||
|
{ label: '报表日期', name: 'ratingMonth', type: 'date', defaultValue: '2023-07-01' }, |
||||
|
{ |
||||
|
label: '模型敞口', |
||||
|
name: 'modelCode', |
||||
|
type: 'select', |
||||
|
options: [ |
||||
|
{ value: 'WHM1', label: '政府投融资平台' }, |
||||
|
{ value: 'WHM2', label: '事业单位' }, |
||||
|
{ value: 'WHM3', label: '银行类金融机构' }, |
||||
|
{ value: 'WHM41', label: '金融租赁与消费金融公司' }, |
||||
|
{ value: 'WHM42', label: '证券公司' }, |
||||
|
{ value: 'WHM43', label: '其他非银行金融机构' }, |
||||
|
{ value: 'WHM44', label: '基金公司' }, |
||||
|
{ value: 'WHM5', label: '新建企业' }, |
||||
|
{ value: 'WHM6', label: '综合性集团' }, |
||||
|
{ value: 'WHM7', label: '大型其他行业' }, |
||||
|
{ value: 'WHM8', label: '中小微其他行业' }, |
||||
|
{ value: 'WHM9', label: '大中型租赁和商务服务行业' }, |
||||
|
{ value: 'WHM10', label: '小微租赁和商务服务业' }, |
||||
|
{ value: 'WHM12', label: '房地产业' }, |
||||
|
{ value: 'WHM13', label: '大中型农林牧渔业' }, |
||||
|
{ value: 'WHM14', label: '小微农林牧渔业' }, |
||||
|
{ value: 'WHM15', label: '大型建筑业' }, |
||||
|
{ value: 'WHM16', label: '中小微建筑业' }, |
||||
|
{ value: 'WHM17', label: '大中型制造业' }, |
||||
|
{ value: 'WHM18', label: '小微制造业' }, |
||||
|
{ value: 'WHM19', label: '大中型批发和零售业' }, |
||||
|
{ value: 'WHM20', label: '小微批发和零售业' }, |
||||
|
{ value: 'WHM22', label: '科技行业' }, |
||||
|
], |
||||
|
}, |
||||
|
], |
||||
|
tableColumns: [ |
||||
|
{ label: '分支机构', name: 'managerOrgName', align: 'center' }, |
||||
|
{ |
||||
|
name: 'AAA', |
||||
|
label: 'AAA', |
||||
|
columns: [ |
||||
|
{ label: '客户数', name: 'aaaCnt', align: 'center' }, |
||||
|
{ label: '占比', name: 'aaaRatio', align: 'center' }, |
||||
|
], |
||||
|
}, |
||||
|
{ |
||||
|
name: 'AA', |
||||
|
label: 'AA', |
||||
|
columns: [ |
||||
|
{ label: '客户数', name: 'aaCnt', align: 'center' }, |
||||
|
{ label: '占比', name: 'aaRatio', align: 'center' }, |
||||
|
], |
||||
|
}, |
||||
|
{ |
||||
|
name: 'A+', |
||||
|
label: 'A+', |
||||
|
columns: [ |
||||
|
{ label: '客户数', name: 'aPlusCnt', align: 'center' }, |
||||
|
{ label: '占比', name: 'aPlusRatio', align: 'center' }, |
||||
|
], |
||||
|
}, |
||||
|
{ |
||||
|
name: 'A', |
||||
|
label: 'A', |
||||
|
columns: [ |
||||
|
{ label: '客户数', name: 'aCnt', align: 'center' }, |
||||
|
{ label: '占比', name: 'aRatio', align: 'center' }, |
||||
|
], |
||||
|
}, |
||||
|
{ |
||||
|
name: 'A-', |
||||
|
label: 'A-', |
||||
|
columns: [ |
||||
|
{ label: '客户数', name: 'aMinusCnt', align: 'center' }, |
||||
|
{ label: '占比', name: 'aMinusRatio', align: 'center' }, |
||||
|
], |
||||
|
}, |
||||
|
{ |
||||
|
name: 'BBB', |
||||
|
label: 'BBB', |
||||
|
columns: [ |
||||
|
{ label: '客户数', name: 'bbbCnt', align: 'center' }, |
||||
|
{ label: '占比', name: 'bbbRatio', align: 'center' }, |
||||
|
], |
||||
|
}, |
||||
|
{ |
||||
|
name: 'BB+', |
||||
|
label: 'BB+', |
||||
|
columns: [ |
||||
|
{ label: '客户数', name: 'bbPlusCnt', align: 'center' }, |
||||
|
{ label: '占比', name: 'bbPlusRatio', align: 'center' }, |
||||
|
], |
||||
|
}, |
||||
|
{ |
||||
|
name: 'BB', |
||||
|
label: 'BB', |
||||
|
columns: [ |
||||
|
{ label: '客户数', name: 'bbCnt', align: 'center' }, |
||||
|
{ label: '占比', name: 'bbRatio', align: 'center' }, |
||||
|
], |
||||
|
}, |
||||
|
{ |
||||
|
name: 'BB-', |
||||
|
label: 'BB-', |
||||
|
columns: [ |
||||
|
{ label: '客户数', name: 'bbMinusCnt', align: 'center' }, |
||||
|
{ label: '占比', name: 'bbMinusRatio', align: 'center' }, |
||||
|
], |
||||
|
}, |
||||
|
{ |
||||
|
name: 'B+', |
||||
|
label: 'B+', |
||||
|
columns: [ |
||||
|
{ label: '客户数', name: 'bPlusCnt', align: 'center' }, |
||||
|
{ label: '占比', name: 'bPlusRatio', align: 'center' }, |
||||
|
], |
||||
|
}, |
||||
|
{ |
||||
|
name: 'B', |
||||
|
label: 'B', |
||||
|
columns: [ |
||||
|
{ label: '客户数', name: 'bCnt', align: 'center' }, |
||||
|
{ label: '占比', name: 'bRatio', align: 'center' }, |
||||
|
], |
||||
|
}, |
||||
|
{ |
||||
|
name: 'CCC', |
||||
|
label: 'CCC', |
||||
|
columns: [ |
||||
|
{ label: '客户数', name: 'cccCnt', align: 'center' }, |
||||
|
{ label: '占比', name: 'cccRatio', align: 'center' }, |
||||
|
], |
||||
|
}, |
||||
|
{ |
||||
|
name: 'CC', |
||||
|
label: 'CC', |
||||
|
columns: [ |
||||
|
{ label: '客户数', name: 'ccCnt', align: 'center' }, |
||||
|
{ label: '占比', name: 'ccRatio', align: 'center' }, |
||||
|
], |
||||
|
}, |
||||
|
{ |
||||
|
name: 'C', |
||||
|
label: 'C', |
||||
|
columns: [ |
||||
|
{ label: '客户数', name: 'cCnt', align: 'center' }, |
||||
|
{ label: '占比', name: 'cRatio', align: 'center' }, |
||||
|
], |
||||
|
}, |
||||
|
{ |
||||
|
name: 'D', |
||||
|
label: 'D', |
||||
|
columns: [ |
||||
|
{ label: '客户数', name: 'dCnt', align: 'center' }, |
||||
|
{ label: '占比', name: 'dRatio', align: 'center' }, |
||||
|
], |
||||
|
}, |
||||
|
], |
||||
|
}; |
||||
|
</script> |
@ -0,0 +1,129 @@ |
|||||
|
<template> |
||||
|
<div> |
||||
|
<w-grid |
||||
|
ref="rptRatingOverturnGridRef" |
||||
|
title="客户评级推翻情况报表" |
||||
|
:data-url="Environment.apiContextPath('api/irbs/rptRatingOverturn/list')" |
||||
|
:sort-no="true" |
||||
|
:checkbox-selection="false" |
||||
|
:query-form-cols-num="4" |
||||
|
:query-form-fields="rptRatingOverturnGrid.queryFormFields" |
||||
|
:columns="rptRatingOverturnGrid.columns" |
||||
|
:toolbar-actions="rptRatingOverturnGrid.buttons" |
||||
|
:pageable="false" |
||||
|
></w-grid> |
||||
|
</div> |
||||
|
</template> |
||||
|
|
||||
|
<script setup lang="ts"> |
||||
|
import { ref, reactive } from 'vue'; |
||||
|
import { useQuasar } from 'quasar'; |
||||
|
import { Environment, EnumTools, DictionaryTools, Options, Formater, axios, NotifyManager } from 'platform-core'; |
||||
|
|
||||
|
const $q = useQuasar(); |
||||
|
const rptRatingOverturnGridRef = ref(); |
||||
|
|
||||
|
const rptRatingOverturnGrid = { |
||||
|
buttons: [ |
||||
|
{ |
||||
|
extend: 'query', |
||||
|
click: () => { |
||||
|
const QueryParams = rptRatingOverturnGridRef.value.getQueryForm().getData(); |
||||
|
axios.get(Environment.apiContextPath('api/irbs/rptRatingOverturn/list'), { params: QueryParams }).then((resp) => { |
||||
|
rptRatingOverturnGridRef.value.setLocalData(resp.data); |
||||
|
}); |
||||
|
}, |
||||
|
}, |
||||
|
'reset', |
||||
|
'separator', |
||||
|
'export', |
||||
|
], |
||||
|
queryFormFields: [ |
||||
|
{ label: '报表日期', name: 'ratingMonth', type: 'date', defaultValue: '2023-07-01' }, |
||||
|
{ |
||||
|
label: '模型敞口', |
||||
|
name: 'modelCode', |
||||
|
type: 'select', |
||||
|
options: [ |
||||
|
{ value: 'WHM1', label: '政府投融资平台' }, |
||||
|
{ value: 'WHM2', label: '事业单位' }, |
||||
|
{ value: 'WHM3', label: '银行类金融机构' }, |
||||
|
{ value: 'WHM41', label: '金融租赁与消费金融公司' }, |
||||
|
{ value: 'WHM42', label: '证券公司' }, |
||||
|
{ value: 'WHM43', label: '其他非银行金融机构' }, |
||||
|
{ value: 'WHM44', label: '基金公司' }, |
||||
|
{ value: 'WHM5', label: '新建企业' }, |
||||
|
{ value: 'WHM6', label: '综合性集团' }, |
||||
|
{ value: 'WHM7', label: '大型其他行业' }, |
||||
|
{ value: 'WHM8', label: '中小微其他行业' }, |
||||
|
{ value: 'WHM9', label: '大中型租赁和商务服务行业' }, |
||||
|
{ value: 'WHM10', label: '小微租赁和商务服务业' }, |
||||
|
{ value: 'WHM12', label: '房地产业' }, |
||||
|
{ value: 'WHM13', label: '大中型农林牧渔业' }, |
||||
|
{ value: 'WHM14', label: '小微农林牧渔业' }, |
||||
|
{ value: 'WHM15', label: '大型建筑业' }, |
||||
|
{ value: 'WHM16', label: '中小微建筑业' }, |
||||
|
{ value: 'WHM17', label: '大中型制造业' }, |
||||
|
{ value: 'WHM18', label: '小微制造业' }, |
||||
|
{ value: 'WHM19', label: '大中型批发和零售业' }, |
||||
|
{ value: 'WHM20', label: '小微批发和零售业' }, |
||||
|
{ value: 'WHM22', label: '科技行业' }, |
||||
|
], |
||||
|
}, |
||||
|
{ |
||||
|
label: '分支机构', |
||||
|
name: 'managerOrgCode', |
||||
|
type: 'select', |
||||
|
options: [ |
||||
|
{ value: '01002', label: '总行营业部' }, |
||||
|
{ value: '01003', label: 'JJJS开发区支行' }, |
||||
|
{ value: '01005', label: 'XF支行' }, |
||||
|
{ value: '01006', label: 'GCZ支行' }, |
||||
|
{ value: '01007', label: 'ZL支行' }, |
||||
|
{ value: '01008', label: 'HKJ支行' }, |
||||
|
{ value: '01009', label: 'HL支行' }, |
||||
|
{ value: '01010', label: 'LJ支行' }, |
||||
|
{ value: '01012', label: 'GG分行' }, |
||||
|
{ value: '01013', label: 'ZY支行' }, |
||||
|
{ value: '01014', label: 'ZD支行' }, |
||||
|
{ value: '01015', label: 'HK支行' }, |
||||
|
{ value: '01016', label: 'DS支行' }, |
||||
|
{ value: '01017', label: 'LF支行' }, |
||||
|
{ value: '01018', label: 'GS支行' }, |
||||
|
{ value: '01019', label: 'LX支行' }, |
||||
|
{ value: '01020', label: 'BX支行' }, |
||||
|
{ value: '01021', label: 'ZQ支行' }, |
||||
|
{ value: '01022', label: 'JF支行' }, |
||||
|
{ value: '01023', label: 'CC支行' }, |
||||
|
{ value: '01024', label: 'LQ支行' }, |
||||
|
{ value: '01025', label: 'DH支行' }, |
||||
|
{ value: '01027', label: 'SGH支行' }, |
||||
|
], |
||||
|
}, |
||||
|
], |
||||
|
columns: [ |
||||
|
{ label: '评级时间', name: 'ratingMonth', align: 'center' }, |
||||
|
{ label: '评级客户数', name: 'custCnt', align: 'center' }, |
||||
|
{ label: '推翻客户数', name: 'overturnCnt', align: 'center' }, |
||||
|
{ label: '推翻率', name: 'overturnRatio', align: 'center' }, |
||||
|
{ |
||||
|
label: '推翻方向', |
||||
|
name: 'overturnPositionHeader', |
||||
|
columns: [ |
||||
|
{ label: '向下推翻', name: 'upOverturnRatio', align: 'center' }, |
||||
|
{ label: '向上推翻', name: 'downOverturnRatio', align: 'center' }, |
||||
|
], |
||||
|
}, |
||||
|
{ |
||||
|
label: '推翻幅度', |
||||
|
name: 'overturnRangeHeader', |
||||
|
columns: [ |
||||
|
{ label: '1级', name: 'oneLvlRatio' }, |
||||
|
{ label: '2级', name: 'twoLvlRatio' }, |
||||
|
{ label: '3级', name: 'threeLvlRatio' }, |
||||
|
{ label: '3级以上', name: 'threeMoreLvlRatio' }, |
||||
|
], |
||||
|
}, |
||||
|
], |
||||
|
}; |
||||
|
</script> |
@ -0,0 +1,5 @@ |
|||||
|
dependencies { |
||||
|
api( |
||||
|
"io.sc:io.sc.platform.mvc:${platform_version}", |
||||
|
) |
||||
|
} |
@ -0,0 +1,23 @@ |
|||||
|
package irbs.reports.controller; |
||||
|
|
||||
|
import irbs.reports.jpa.support.RptModelBinomialCheckVo; |
||||
|
import irbs.reports.service.RptModelBinomialCheckService; |
||||
|
import irbs.reports.service.support.QueryParams; |
||||
|
import org.springframework.beans.factory.annotation.Autowired; |
||||
|
import org.springframework.web.bind.annotation.GetMapping; |
||||
|
import org.springframework.web.bind.annotation.RequestMapping; |
||||
|
import org.springframework.web.bind.annotation.RestController; |
||||
|
|
||||
|
import java.util.List; |
||||
|
|
||||
|
@RestController |
||||
|
@RequestMapping("/api/irbs/rptModelMonitorBinomialCheck") |
||||
|
public class RptModelBinomialCheckController { |
||||
|
|
||||
|
@Autowired |
||||
|
private RptModelBinomialCheckService rptModelBinomialCheckService; |
||||
|
@GetMapping("list") |
||||
|
public List<RptModelBinomialCheckVo> list(QueryParams queryParams) throws Exception{ |
||||
|
return rptModelBinomialCheckService.query(queryParams); |
||||
|
} |
||||
|
} |
@ -0,0 +1,23 @@ |
|||||
|
package irbs.reports.controller; |
||||
|
|
||||
|
import irbs.reports.jpa.support.RptModelMonitorDiffVo; |
||||
|
import irbs.reports.service.RptModelMonitorDiffService; |
||||
|
import irbs.reports.service.support.QueryParams; |
||||
|
import org.springframework.beans.factory.annotation.Autowired; |
||||
|
import org.springframework.web.bind.annotation.GetMapping; |
||||
|
import org.springframework.web.bind.annotation.RequestMapping; |
||||
|
import org.springframework.web.bind.annotation.RestController; |
||||
|
|
||||
|
import java.util.List; |
||||
|
|
||||
|
@RestController |
||||
|
@RequestMapping("/api/irbs/rptModelMonitorDiff") |
||||
|
public class RptModelMonitorDiffController { |
||||
|
|
||||
|
@Autowired |
||||
|
private RptModelMonitorDiffService rptModelMonitorDiffService; |
||||
|
@GetMapping("list") |
||||
|
public List<RptModelMonitorDiffVo> list(QueryParams queryParams) throws Exception{ |
||||
|
return rptModelMonitorDiffService.query(queryParams); |
||||
|
} |
||||
|
} |
@ -0,0 +1,25 @@ |
|||||
|
package irbs.reports.controller; |
||||
|
|
||||
|
import irbs.reports.jpa.support.RptModelMonitorDiffVo; |
||||
|
import irbs.reports.jpa.support.RptModelMonitorStableVo; |
||||
|
import irbs.reports.service.RptModelMonitorDiffService; |
||||
|
import irbs.reports.service.RptModelMonitorStableService; |
||||
|
import irbs.reports.service.support.QueryParams; |
||||
|
import org.springframework.beans.factory.annotation.Autowired; |
||||
|
import org.springframework.web.bind.annotation.GetMapping; |
||||
|
import org.springframework.web.bind.annotation.RequestMapping; |
||||
|
import org.springframework.web.bind.annotation.RestController; |
||||
|
|
||||
|
import java.util.List; |
||||
|
|
||||
|
@RestController |
||||
|
@RequestMapping("/api/irbs/rptModelMonitorStable") |
||||
|
public class RptModelMonitorStableController { |
||||
|
|
||||
|
@Autowired |
||||
|
private RptModelMonitorStableService rptModelMonitorStableService; |
||||
|
@GetMapping("list") |
||||
|
public List<RptModelMonitorStableVo> list(QueryParams queryParams) throws Exception{ |
||||
|
return rptModelMonitorStableService.query(queryParams); |
||||
|
} |
||||
|
} |
@ -0,0 +1,24 @@ |
|||||
|
package irbs.reports.controller; |
||||
|
|
||||
|
import irbs.reports.jpa.support.RptRatingAdjustVo; |
||||
|
import irbs.reports.service.RptRatingAdjustService; |
||||
|
import irbs.reports.service.support.QueryParams; |
||||
|
import org.springframework.beans.factory.annotation.Autowired; |
||||
|
import org.springframework.web.bind.annotation.GetMapping; |
||||
|
import org.springframework.web.bind.annotation.RequestMapping; |
||||
|
import org.springframework.web.bind.annotation.RestController; |
||||
|
|
||||
|
import java.util.List; |
||||
|
|
||||
|
@RestController |
||||
|
@RequestMapping("/api/irbs/rptRatingAdjust") |
||||
|
public class RptRatingAdjustController { |
||||
|
|
||||
|
@Autowired |
||||
|
private RptRatingAdjustService rptRatingAdjustService; |
||||
|
@GetMapping("list") |
||||
|
public List<RptRatingAdjustVo> list(QueryParams queryParams) throws Exception{ |
||||
|
List<RptRatingAdjustVo> list = rptRatingAdjustService.query(queryParams); |
||||
|
return list; |
||||
|
} |
||||
|
} |
@ -0,0 +1,23 @@ |
|||||
|
package irbs.reports.controller; |
||||
|
|
||||
|
import irbs.reports.jpa.support.RptRatingDistributionVo; |
||||
|
import irbs.reports.service.RptRatingDistributionService; |
||||
|
import irbs.reports.service.support.QueryParams; |
||||
|
import org.springframework.beans.factory.annotation.Autowired; |
||||
|
import org.springframework.web.bind.annotation.GetMapping; |
||||
|
import org.springframework.web.bind.annotation.RequestMapping; |
||||
|
import org.springframework.web.bind.annotation.RestController; |
||||
|
|
||||
|
import java.util.List; |
||||
|
|
||||
|
@RestController |
||||
|
@RequestMapping("/api/irbs/rptRatingDistribution") |
||||
|
public class RptRatingDistributionController { |
||||
|
|
||||
|
@Autowired |
||||
|
private RptRatingDistributionService rptRatingDistributionService; |
||||
|
@GetMapping("list") |
||||
|
public List<RptRatingDistributionVo> list(QueryParams queryParams) throws Exception{ |
||||
|
return rptRatingDistributionService.query(queryParams); |
||||
|
} |
||||
|
} |
@ -0,0 +1,26 @@ |
|||||
|
package irbs.reports.controller; |
||||
|
|
||||
|
import irbs.reports.jpa.support.RptRatingIndustryFocusDistVo; |
||||
|
import irbs.reports.jpa.support.RptRatingOrgFocusDistVo; |
||||
|
import irbs.reports.service.RptRatingIndustryFocusDistService; |
||||
|
import irbs.reports.service.RptRatingOrgFocusDistService; |
||||
|
import irbs.reports.service.support.QueryParams; |
||||
|
import org.springframework.beans.factory.annotation.Autowired; |
||||
|
import org.springframework.web.bind.annotation.GetMapping; |
||||
|
import org.springframework.web.bind.annotation.RequestMapping; |
||||
|
import org.springframework.web.bind.annotation.RestController; |
||||
|
|
||||
|
import java.util.List; |
||||
|
|
||||
|
@RestController |
||||
|
@RequestMapping("/api/irbs/rptRatingIndustryFocusDist") |
||||
|
public class RptRatingIndustryFocusDistController { |
||||
|
|
||||
|
@Autowired |
||||
|
private RptRatingIndustryFocusDistService rptRatingIndustryFocusDistService; |
||||
|
@GetMapping("list") |
||||
|
public List<RptRatingIndustryFocusDistVo> list(QueryParams queryParams) throws Exception{ |
||||
|
List<RptRatingIndustryFocusDistVo> list = rptRatingIndustryFocusDistService.query(queryParams); |
||||
|
return list; |
||||
|
} |
||||
|
} |
@ -0,0 +1,26 @@ |
|||||
|
package irbs.reports.controller; |
||||
|
|
||||
|
import irbs.reports.jpa.support.RptRatingLoanBalanceMigrateVo; |
||||
|
import irbs.reports.jpa.support.RptRatingNumberMigrateVo; |
||||
|
import irbs.reports.service.RptRatingLoanBalanceMigrateService; |
||||
|
import irbs.reports.service.RptRatingNumberMigrateService; |
||||
|
import irbs.reports.service.support.QueryParams; |
||||
|
import org.springframework.beans.factory.annotation.Autowired; |
||||
|
import org.springframework.web.bind.annotation.GetMapping; |
||||
|
import org.springframework.web.bind.annotation.RequestMapping; |
||||
|
import org.springframework.web.bind.annotation.RestController; |
||||
|
|
||||
|
import java.util.List; |
||||
|
|
||||
|
@RestController |
||||
|
@RequestMapping("/api/irbs/rptRatingLoanBalanceMigrate") |
||||
|
public class RptRatingLoanBalanceMigrateController { |
||||
|
|
||||
|
@Autowired |
||||
|
private RptRatingLoanBalanceMigrateService rptRatingLoanBalanceMigrateService; |
||||
|
@GetMapping("list") |
||||
|
public List<RptRatingLoanBalanceMigrateVo> list(QueryParams queryParams) throws Exception{ |
||||
|
List<RptRatingLoanBalanceMigrateVo> list = rptRatingLoanBalanceMigrateService.query(queryParams); |
||||
|
return list; |
||||
|
} |
||||
|
} |
@ -0,0 +1,24 @@ |
|||||
|
package irbs.reports.controller; |
||||
|
|
||||
|
import irbs.reports.jpa.support.RptRatingModelFocusDistVo; |
||||
|
import irbs.reports.service.RptRatingModelFocusDistService; |
||||
|
import irbs.reports.service.support.QueryParams; |
||||
|
import org.springframework.beans.factory.annotation.Autowired; |
||||
|
import org.springframework.web.bind.annotation.GetMapping; |
||||
|
import org.springframework.web.bind.annotation.RequestMapping; |
||||
|
import org.springframework.web.bind.annotation.RestController; |
||||
|
|
||||
|
import java.util.List; |
||||
|
|
||||
|
@RestController |
||||
|
@RequestMapping("/api/irbs/rptRatingModelFocusDist") |
||||
|
public class RptRatingModelFocusDistController { |
||||
|
|
||||
|
@Autowired |
||||
|
private RptRatingModelFocusDistService rptRatingModelFocusDistService; |
||||
|
@GetMapping("list") |
||||
|
public List<RptRatingModelFocusDistVo> list(QueryParams queryParams) throws Exception{ |
||||
|
List<RptRatingModelFocusDistVo> list = rptRatingModelFocusDistService.query(queryParams); |
||||
|
return list; |
||||
|
} |
||||
|
} |
@ -0,0 +1,26 @@ |
|||||
|
package irbs.reports.controller; |
||||
|
|
||||
|
import irbs.reports.jpa.support.RptRatingNumberMigrateVo; |
||||
|
import irbs.reports.jpa.support.RptRatingOrgFocusDistVo; |
||||
|
import irbs.reports.service.RptRatingNumberMigrateService; |
||||
|
import irbs.reports.service.RptRatingOrgFocusDistService; |
||||
|
import irbs.reports.service.support.QueryParams; |
||||
|
import org.springframework.beans.factory.annotation.Autowired; |
||||
|
import org.springframework.web.bind.annotation.GetMapping; |
||||
|
import org.springframework.web.bind.annotation.RequestMapping; |
||||
|
import org.springframework.web.bind.annotation.RestController; |
||||
|
|
||||
|
import java.util.List; |
||||
|
|
||||
|
@RestController |
||||
|
@RequestMapping("/api/irbs/rptRatingNumberMigrate") |
||||
|
public class RptRatingNumberMigrateController { |
||||
|
|
||||
|
@Autowired |
||||
|
private RptRatingNumberMigrateService rptRatingOrgFocusDistService; |
||||
|
@GetMapping("list") |
||||
|
public List<RptRatingNumberMigrateVo> list(QueryParams queryParams) throws Exception{ |
||||
|
List<RptRatingNumberMigrateVo> list = rptRatingOrgFocusDistService.query(queryParams); |
||||
|
return list; |
||||
|
} |
||||
|
} |
@ -0,0 +1,26 @@ |
|||||
|
package irbs.reports.controller; |
||||
|
|
||||
|
import irbs.reports.jpa.support.RptRatingModelFocusDistVo; |
||||
|
import irbs.reports.jpa.support.RptRatingOrgFocusDistVo; |
||||
|
import irbs.reports.service.RptRatingModelFocusDistService; |
||||
|
import irbs.reports.service.RptRatingOrgFocusDistService; |
||||
|
import irbs.reports.service.support.QueryParams; |
||||
|
import org.springframework.beans.factory.annotation.Autowired; |
||||
|
import org.springframework.web.bind.annotation.GetMapping; |
||||
|
import org.springframework.web.bind.annotation.RequestMapping; |
||||
|
import org.springframework.web.bind.annotation.RestController; |
||||
|
|
||||
|
import java.util.List; |
||||
|
|
||||
|
@RestController |
||||
|
@RequestMapping("/api/irbs/rptRatingOrgFocusDist") |
||||
|
public class RptRatingOrgFocusDistController { |
||||
|
|
||||
|
@Autowired |
||||
|
private RptRatingOrgFocusDistService rptRatingOrgFocusDistService; |
||||
|
@GetMapping("list") |
||||
|
public List<RptRatingOrgFocusDistVo> list(QueryParams queryParams) throws Exception{ |
||||
|
List<RptRatingOrgFocusDistVo> list = rptRatingOrgFocusDistService.query(queryParams); |
||||
|
return list; |
||||
|
} |
||||
|
} |
@ -0,0 +1,23 @@ |
|||||
|
package irbs.reports.controller; |
||||
|
|
||||
|
import irbs.reports.jpa.support.RptRatingOverturnVo; |
||||
|
import irbs.reports.service.RptRatingOverturnService; |
||||
|
import irbs.reports.service.support.QueryParams; |
||||
|
import org.springframework.beans.factory.annotation.Autowired; |
||||
|
import org.springframework.web.bind.annotation.GetMapping; |
||||
|
import org.springframework.web.bind.annotation.RequestMapping; |
||||
|
import org.springframework.web.bind.annotation.RestController; |
||||
|
|
||||
|
import java.util.List; |
||||
|
|
||||
|
@RestController |
||||
|
@RequestMapping("/api/irbs/rptRatingOverturn") |
||||
|
public class RptRatingOverturnController { |
||||
|
|
||||
|
@Autowired |
||||
|
private RptRatingOverturnService rptRatingOverturnService; |
||||
|
@GetMapping("list") |
||||
|
public List<RptRatingOverturnVo> list(QueryParams queryParams) throws Exception{ |
||||
|
return rptRatingOverturnService.query(queryParams); |
||||
|
} |
||||
|
} |
@ -0,0 +1,69 @@ |
|||||
|
package irbs.reports.jpa.entity; |
||||
|
|
||||
|
import org.hibernate.annotations.GenericGenerator; |
||||
|
|
||||
|
import javax.persistence.*; |
||||
|
import javax.validation.constraints.Size; |
||||
|
|
||||
|
/** |
||||
|
* 报表sql配置 |
||||
|
* @author chengjie |
||||
|
* |
||||
|
*/ |
||||
|
@Entity |
||||
|
@Table(name="NS_R_CFG_RPT_SQL") |
||||
|
public class ReportSqlConfig { |
||||
|
|
||||
|
//主键
|
||||
|
@Id |
||||
|
@GeneratedValue(generator = "system-uuid") |
||||
|
@GenericGenerator(name = "system-uuid", strategy = "uuid2") |
||||
|
@Column(name="ID_") |
||||
|
@Size(max=50) |
||||
|
protected String id; |
||||
|
|
||||
|
// 报表ID
|
||||
|
@Column(name="REPORT_ID") |
||||
|
@Size(max=255) |
||||
|
protected String reportId; |
||||
|
|
||||
|
// 数据库类型
|
||||
|
@Column(name="DATABASE_TYPE") |
||||
|
protected String dataBaseType; |
||||
|
|
||||
|
// 报表的sql语句
|
||||
|
@Column(name="SQL_TEXT") |
||||
|
protected String sqlText; |
||||
|
|
||||
|
public String getId() { |
||||
|
return id; |
||||
|
} |
||||
|
|
||||
|
public void setId(String id) { |
||||
|
this.id = id; |
||||
|
} |
||||
|
|
||||
|
public String getReportId() { |
||||
|
return reportId; |
||||
|
} |
||||
|
|
||||
|
public void setReportId(String reportId) { |
||||
|
this.reportId = reportId; |
||||
|
} |
||||
|
|
||||
|
public String getDataBaseType() { |
||||
|
return dataBaseType; |
||||
|
} |
||||
|
|
||||
|
public void setDataBaseType(String dataBaseType) { |
||||
|
this.dataBaseType = dataBaseType; |
||||
|
} |
||||
|
|
||||
|
public String getSqlText() { |
||||
|
return sqlText; |
||||
|
} |
||||
|
|
||||
|
public void setSqlText(String sqlText) { |
||||
|
this.sqlText = sqlText; |
||||
|
} |
||||
|
} |
@ -0,0 +1,8 @@ |
|||||
|
package irbs.reports.jpa.repository; |
||||
|
|
||||
|
import io.sc.platform.orm.repository.DaoRepository; |
||||
|
import irbs.reports.jpa.entity.ReportSqlConfig; |
||||
|
|
||||
|
public interface ReportSqlConfigRepository extends DaoRepository<ReportSqlConfig, String> { |
||||
|
public ReportSqlConfig findByReportIdAndDataBaseType(String reportId, String dataBaseType); |
||||
|
} |
@ -0,0 +1,58 @@ |
|||||
|
package irbs.reports.jpa.support; |
||||
|
|
||||
|
public class RptModelBinomialCheckVo { |
||||
|
private String ratingYear; |
||||
|
private String binomialCheck; |
||||
|
private String riskLevel; |
||||
|
private Integer totalNormalCnt; |
||||
|
private Integer totalBadCnt; |
||||
|
private Integer totalCustCnt; |
||||
|
|
||||
|
public String getRatingYear() { |
||||
|
return ratingYear; |
||||
|
} |
||||
|
|
||||
|
public void setRatingYear(String ratingYear) { |
||||
|
this.ratingYear = ratingYear; |
||||
|
} |
||||
|
|
||||
|
public String getBinomialCheck() { |
||||
|
return binomialCheck; |
||||
|
} |
||||
|
|
||||
|
public void setBinomialCheck(String binomialCheck) { |
||||
|
this.binomialCheck = binomialCheck; |
||||
|
} |
||||
|
|
||||
|
public String getRiskLevel() { |
||||
|
return riskLevel; |
||||
|
} |
||||
|
|
||||
|
public void setRiskLevel(String riskLevel) { |
||||
|
this.riskLevel = riskLevel; |
||||
|
} |
||||
|
|
||||
|
public Integer getTotalNormalCnt() { |
||||
|
return totalNormalCnt; |
||||
|
} |
||||
|
|
||||
|
public void setTotalNormalCnt(Integer totalNormalCnt) { |
||||
|
this.totalNormalCnt = totalNormalCnt; |
||||
|
} |
||||
|
|
||||
|
public Integer getTotalBadCnt() { |
||||
|
return totalBadCnt; |
||||
|
} |
||||
|
|
||||
|
public void setTotalBadCnt(Integer totalBadCnt) { |
||||
|
this.totalBadCnt = totalBadCnt; |
||||
|
} |
||||
|
|
||||
|
public Integer getTotalCustCnt() { |
||||
|
return totalCustCnt; |
||||
|
} |
||||
|
|
||||
|
public void setTotalCustCnt(Integer totalCustCnt) { |
||||
|
this.totalCustCnt = totalCustCnt; |
||||
|
} |
||||
|
} |
@ -0,0 +1,20 @@ |
|||||
|
package irbs.reports.jpa.support; |
||||
|
|
||||
|
import org.springframework.jdbc.core.RowMapper; |
||||
|
|
||||
|
import java.sql.ResultSet; |
||||
|
import java.sql.SQLException; |
||||
|
|
||||
|
public class RptModelBinomialCheckVoRowMapper implements RowMapper<RptModelBinomialCheckVo> { |
||||
|
@Override |
||||
|
public RptModelBinomialCheckVo mapRow(ResultSet rs, int rowNum) throws SQLException { |
||||
|
RptModelBinomialCheckVo vo = new RptModelBinomialCheckVo(); |
||||
|
vo.setRatingYear(rs.getString("EFFECTIVE_Y")); |
||||
|
vo.setBinomialCheck(rs.getString("BINOMIAL_CHECK")); |
||||
|
vo.setRiskLevel(rs.getString("RISK_LEVEL")); |
||||
|
vo.setTotalNormalCnt(rs.getInt("NORMAL_CNT")); |
||||
|
vo.setTotalBadCnt(rs.getInt("DEF_CNT")); |
||||
|
vo.setTotalCustCnt(rs.getInt("CUST_CNT")); |
||||
|
return vo; |
||||
|
} |
||||
|
} |
@ -0,0 +1,67 @@ |
|||||
|
package irbs.reports.jpa.support; |
||||
|
|
||||
|
public class RptModelMonitorDiffVo { |
||||
|
private String ratingQuarter; |
||||
|
private Double ks; |
||||
|
private Double ar; |
||||
|
private String riskLevel; |
||||
|
private Integer totalNormalCnt; |
||||
|
private Integer totalBadCnt; |
||||
|
private Integer totalCustCnt; |
||||
|
|
||||
|
public String getRatingQuarter() { |
||||
|
return ratingQuarter; |
||||
|
} |
||||
|
|
||||
|
public void setRatingQuarter(String ratingQuarter) { |
||||
|
this.ratingQuarter = ratingQuarter; |
||||
|
} |
||||
|
|
||||
|
public Double getKs() { |
||||
|
return ks; |
||||
|
} |
||||
|
|
||||
|
public void setKs(Double ks) { |
||||
|
this.ks = ks; |
||||
|
} |
||||
|
|
||||
|
public Double getAr() { |
||||
|
return ar; |
||||
|
} |
||||
|
|
||||
|
public void setAr(Double ar) { |
||||
|
this.ar = ar; |
||||
|
} |
||||
|
|
||||
|
public String getRiskLevel() { |
||||
|
return riskLevel; |
||||
|
} |
||||
|
|
||||
|
public void setRiskLevel(String riskLevel) { |
||||
|
this.riskLevel = riskLevel; |
||||
|
} |
||||
|
|
||||
|
public Integer getTotalNormalCnt() { |
||||
|
return totalNormalCnt; |
||||
|
} |
||||
|
|
||||
|
public void setTotalNormalCnt(Integer totalNormalCnt) { |
||||
|
this.totalNormalCnt = totalNormalCnt; |
||||
|
} |
||||
|
|
||||
|
public Integer getTotalBadCnt() { |
||||
|
return totalBadCnt; |
||||
|
} |
||||
|
|
||||
|
public void setTotalBadCnt(Integer totalBadCnt) { |
||||
|
this.totalBadCnt = totalBadCnt; |
||||
|
} |
||||
|
|
||||
|
public Integer getTotalCustCnt() { |
||||
|
return totalCustCnt; |
||||
|
} |
||||
|
|
||||
|
public void setTotalCustCnt(Integer totalCustCnt) { |
||||
|
this.totalCustCnt = totalCustCnt; |
||||
|
} |
||||
|
} |
@ -0,0 +1,21 @@ |
|||||
|
package irbs.reports.jpa.support; |
||||
|
|
||||
|
import org.springframework.jdbc.core.RowMapper; |
||||
|
|
||||
|
import java.sql.ResultSet; |
||||
|
import java.sql.SQLException; |
||||
|
|
||||
|
public class RptModelMonitorDiffVoRowMapper implements RowMapper<RptModelMonitorDiffVo> { |
||||
|
@Override |
||||
|
public RptModelMonitorDiffVo mapRow(ResultSet rs, int rowNum) throws SQLException { |
||||
|
RptModelMonitorDiffVo vo = new RptModelMonitorDiffVo(); |
||||
|
vo.setRatingQuarter(rs.getString("EFFECTIVE_Q")); |
||||
|
vo.setAr(rs.getDouble("AR")); |
||||
|
vo.setKs(rs.getDouble("KS")); |
||||
|
vo.setRiskLevel(rs.getString("RISK_LEVEL")); |
||||
|
vo.setTotalNormalCnt(rs.getInt("TOT_NORMAL_CNT")); |
||||
|
vo.setTotalBadCnt(rs.getInt("TOT_BAD_CNT")); |
||||
|
vo.setTotalCustCnt(rs.getInt("TOT_CUST_CNT")); |
||||
|
return vo; |
||||
|
} |
||||
|
} |
@ -0,0 +1,31 @@ |
|||||
|
package irbs.reports.jpa.support; |
||||
|
|
||||
|
public class RptModelMonitorStableVo { |
||||
|
private String ratingQuarter; |
||||
|
private Double psi; |
||||
|
private String riskLevel; |
||||
|
|
||||
|
public String getRatingQuarter() { |
||||
|
return ratingQuarter; |
||||
|
} |
||||
|
|
||||
|
public void setRatingQuarter(String ratingQuarter) { |
||||
|
this.ratingQuarter = ratingQuarter; |
||||
|
} |
||||
|
|
||||
|
public Double getPsi() { |
||||
|
return psi; |
||||
|
} |
||||
|
|
||||
|
public void setPsi(Double psi) { |
||||
|
this.psi = psi; |
||||
|
} |
||||
|
|
||||
|
public String getRiskLevel() { |
||||
|
return riskLevel; |
||||
|
} |
||||
|
|
||||
|
public void setRiskLevel(String riskLevel) { |
||||
|
this.riskLevel = riskLevel; |
||||
|
} |
||||
|
} |
@ -0,0 +1,17 @@ |
|||||
|
package irbs.reports.jpa.support; |
||||
|
|
||||
|
import org.springframework.jdbc.core.RowMapper; |
||||
|
|
||||
|
import java.sql.ResultSet; |
||||
|
import java.sql.SQLException; |
||||
|
|
||||
|
public class RptModelMonitorStableVoRowMapper implements RowMapper<RptModelMonitorStableVo> { |
||||
|
@Override |
||||
|
public RptModelMonitorStableVo mapRow(ResultSet rs, int rowNum) throws SQLException { |
||||
|
RptModelMonitorStableVo vo = new RptModelMonitorStableVo(); |
||||
|
vo.setRatingQuarter(rs.getString("EFFECTIVE_Q")); |
||||
|
vo.setPsi(rs.getDouble("PSI")); |
||||
|
vo.setRiskLevel(rs.getString("RISK_LEVEL")); |
||||
|
return vo; |
||||
|
} |
||||
|
} |
@ -0,0 +1,77 @@ |
|||||
|
package irbs.reports.jpa.support; |
||||
|
|
||||
|
public class RptRatingAdjustVo { |
||||
|
private String ratingMonth; |
||||
|
private Integer custCnt; |
||||
|
private Integer adjCnt; |
||||
|
private Double adjRatio; |
||||
|
private Double oneLvlRatio; |
||||
|
private Double twoLvlRatio; |
||||
|
private Double threeLvlRatio; |
||||
|
private Double threeMoreLvlRatio; |
||||
|
|
||||
|
public String getRatingMonth() { |
||||
|
return ratingMonth; |
||||
|
} |
||||
|
|
||||
|
public void setRatingMonth(String ratingMonth) { |
||||
|
this.ratingMonth = ratingMonth; |
||||
|
} |
||||
|
|
||||
|
public Integer getCustCnt() { |
||||
|
return custCnt; |
||||
|
} |
||||
|
|
||||
|
public void setCustCnt(Integer custCnt) { |
||||
|
this.custCnt = custCnt; |
||||
|
} |
||||
|
|
||||
|
|
||||
|
public Double getOneLvlRatio() { |
||||
|
return oneLvlRatio; |
||||
|
} |
||||
|
|
||||
|
public void setOneLvlRatio(Double oneLvlRatio) { |
||||
|
this.oneLvlRatio = oneLvlRatio; |
||||
|
} |
||||
|
|
||||
|
public Double getTwoLvlRatio() { |
||||
|
return twoLvlRatio; |
||||
|
} |
||||
|
|
||||
|
public Integer getAdjCnt() { |
||||
|
return adjCnt; |
||||
|
} |
||||
|
|
||||
|
public void setAdjCnt(Integer adjCnt) { |
||||
|
this.adjCnt = adjCnt; |
||||
|
} |
||||
|
|
||||
|
public Double getAdjRatio() { |
||||
|
return adjRatio; |
||||
|
} |
||||
|
|
||||
|
public void setAdjRatio(Double adjRatio) { |
||||
|
this.adjRatio = adjRatio; |
||||
|
} |
||||
|
|
||||
|
public void setTwoLvlRatio(Double twoLvlRatio) { |
||||
|
this.twoLvlRatio = twoLvlRatio; |
||||
|
} |
||||
|
|
||||
|
public Double getThreeLvlRatio() { |
||||
|
return threeLvlRatio; |
||||
|
} |
||||
|
|
||||
|
public void setThreeLvlRatio(Double threeLvlRatio) { |
||||
|
this.threeLvlRatio = threeLvlRatio; |
||||
|
} |
||||
|
|
||||
|
public Double getThreeMoreLvlRatio() { |
||||
|
return threeMoreLvlRatio; |
||||
|
} |
||||
|
|
||||
|
public void setThreeMoreLvlRatio(Double threeMoreLvlRatio) { |
||||
|
this.threeMoreLvlRatio = threeMoreLvlRatio; |
||||
|
} |
||||
|
} |
@ -0,0 +1,22 @@ |
|||||
|
package irbs.reports.jpa.support; |
||||
|
|
||||
|
import org.springframework.jdbc.core.RowMapper; |
||||
|
|
||||
|
import java.sql.ResultSet; |
||||
|
import java.sql.SQLException; |
||||
|
|
||||
|
public class RptRatingAdjustVoRowMapper implements RowMapper<RptRatingAdjustVo> { |
||||
|
@Override |
||||
|
public RptRatingAdjustVo mapRow(ResultSet rs, int rowNum) throws SQLException { |
||||
|
RptRatingAdjustVo vo = new RptRatingAdjustVo(); |
||||
|
vo.setRatingMonth(rs.getString("EFFECTIVE_MONTH")); |
||||
|
vo.setCustCnt(rs.getInt("CUST_CNT")); |
||||
|
vo.setAdjCnt(rs.getInt("ADJ_CNT")); |
||||
|
vo.setAdjRatio(rs.getDouble("ADJ_RATIO")); |
||||
|
vo.setOneLvlRatio(rs.getDouble("ONE_LVL_RATIO")); |
||||
|
vo.setTwoLvlRatio(rs.getDouble("TWO_LVL_RATIO")); |
||||
|
vo.setThreeLvlRatio(rs.getDouble("THREE_LVL_RATIO")); |
||||
|
vo.setThreeMoreLvlRatio(rs.getDouble("THREE_MORE_LVL_RATIO")); |
||||
|
return vo; |
||||
|
} |
||||
|
} |
@ -0,0 +1,85 @@ |
|||||
|
package irbs.reports.jpa.support; |
||||
|
|
||||
|
public class RptRatingDistributionVo { |
||||
|
private String ratingLevel; |
||||
|
private Integer custCnt; |
||||
|
private Double custRatio; |
||||
|
private Double borrBal; |
||||
|
private Double borrBalRatio; |
||||
|
private Integer currInctCnt; |
||||
|
private Double currInctRatio; |
||||
|
private Integer defCustCnt; |
||||
|
private Double defCustRatio; |
||||
|
|
||||
|
public String getRatingLevel() { |
||||
|
return ratingLevel; |
||||
|
} |
||||
|
|
||||
|
public void setRatingLevel(String ratingLevel) { |
||||
|
this.ratingLevel = ratingLevel; |
||||
|
} |
||||
|
|
||||
|
public Integer getCustCnt() { |
||||
|
return custCnt; |
||||
|
} |
||||
|
|
||||
|
public void setCustCnt(Integer custCnt) { |
||||
|
this.custCnt = custCnt; |
||||
|
} |
||||
|
|
||||
|
public Double getCustRatio() { |
||||
|
return custRatio; |
||||
|
} |
||||
|
|
||||
|
public void setCustRatio(Double custRatio) { |
||||
|
this.custRatio = custRatio; |
||||
|
} |
||||
|
|
||||
|
public Double getBorrBal() { |
||||
|
return borrBal; |
||||
|
} |
||||
|
|
||||
|
public void setBorrBal(Double borrBal) { |
||||
|
this.borrBal = borrBal; |
||||
|
} |
||||
|
|
||||
|
public Double getBorrBalRatio() { |
||||
|
return borrBalRatio; |
||||
|
} |
||||
|
|
||||
|
public void setBorrBalRatio(Double borrBalRatio) { |
||||
|
this.borrBalRatio = borrBalRatio; |
||||
|
} |
||||
|
|
||||
|
public Integer getCurrInctCnt() { |
||||
|
return currInctCnt; |
||||
|
} |
||||
|
|
||||
|
public void setCurrInctCnt(Integer currInctCnt) { |
||||
|
this.currInctCnt = currInctCnt; |
||||
|
} |
||||
|
|
||||
|
public Double getCurrInctRatio() { |
||||
|
return currInctRatio; |
||||
|
} |
||||
|
|
||||
|
public void setCurrInctRatio(Double currInctRatio) { |
||||
|
this.currInctRatio = currInctRatio; |
||||
|
} |
||||
|
|
||||
|
public Integer getDefCustCnt() { |
||||
|
return defCustCnt; |
||||
|
} |
||||
|
|
||||
|
public void setDefCustCnt(Integer defCustCnt) { |
||||
|
this.defCustCnt = defCustCnt; |
||||
|
} |
||||
|
|
||||
|
public Double getDefCustRatio() { |
||||
|
return defCustRatio; |
||||
|
} |
||||
|
|
||||
|
public void setDefCustRatio(Double defCustRatio) { |
||||
|
this.defCustRatio = defCustRatio; |
||||
|
} |
||||
|
} |
@ -0,0 +1,23 @@ |
|||||
|
package irbs.reports.jpa.support; |
||||
|
|
||||
|
import org.springframework.jdbc.core.RowMapper; |
||||
|
|
||||
|
import java.sql.ResultSet; |
||||
|
import java.sql.SQLException; |
||||
|
|
||||
|
public class RptRatingDistributionVoRowMapper implements RowMapper<RptRatingDistributionVo> { |
||||
|
@Override |
||||
|
public RptRatingDistributionVo mapRow(ResultSet rs, int rowNum) throws SQLException { |
||||
|
RptRatingDistributionVo vo = new RptRatingDistributionVo(); |
||||
|
vo.setRatingLevel(rs.getString("FINAL_LEVEL")); |
||||
|
vo.setCustCnt(rs.getInt("CUST_CNT")); |
||||
|
vo.setCustRatio(rs.getDouble("CUST_RATIO")); |
||||
|
vo.setCurrInctCnt(rs.getInt("CURR_INCT_CNT")); |
||||
|
vo.setCurrInctRatio(rs.getDouble("CURR_INCT_RATIO")); |
||||
|
vo.setBorrBal(rs.getDouble("BORR_BAL")); |
||||
|
vo.setBorrBalRatio(rs.getDouble("BORR_BAL_RATIO")); |
||||
|
vo.setDefCustCnt(rs.getInt("DEF_CUST_CNT")); |
||||
|
vo.setDefCustRatio(rs.getDouble("DEF_CUST_RATIO")); |
||||
|
return vo; |
||||
|
} |
||||
|
} |
@ -0,0 +1,283 @@ |
|||||
|
package irbs.reports.jpa.support; |
||||
|
|
||||
|
public class RptRatingIndustryFocusDistVo { |
||||
|
private String industryName; |
||||
|
private Integer aaaCnt; |
||||
|
private Double aaaRatio; |
||||
|
private Integer aaCnt; |
||||
|
private Double aaRatio; |
||||
|
private Integer aPlusCnt; |
||||
|
private Double aPlusRatio; |
||||
|
private Integer aCnt; |
||||
|
private Double aRatio; |
||||
|
private Integer aMinusCnt; |
||||
|
private Double aMinusRatio; |
||||
|
private Integer bbbCnt; |
||||
|
private Double bbbRatio; |
||||
|
private Integer bbPlusCnt; |
||||
|
private Double bbPlusRatio; |
||||
|
private Integer bbCnt; |
||||
|
private Double bbRatio; |
||||
|
private Integer bbMinusCnt; |
||||
|
private Double bbMinusRatio; |
||||
|
private Integer bPlusCnt; |
||||
|
private Double bPlusRatio; |
||||
|
private Integer bCnt; |
||||
|
private Double bRatio; |
||||
|
private Integer cccCnt; |
||||
|
private Double cccRatio; |
||||
|
private Integer ccCnt; |
||||
|
private Double ccRatio; |
||||
|
private Integer cCnt; |
||||
|
private Double cRatio; |
||||
|
private Integer dCnt; |
||||
|
private Double dRatio; |
||||
|
|
||||
|
public Integer getdCnt() { |
||||
|
return dCnt; |
||||
|
} |
||||
|
|
||||
|
public void setdCnt(Integer dCnt) { |
||||
|
this.dCnt = dCnt; |
||||
|
} |
||||
|
|
||||
|
public Double getdRatio() { |
||||
|
return dRatio; |
||||
|
} |
||||
|
|
||||
|
public void setdRatio(Double dRatio) { |
||||
|
this.dRatio = dRatio; |
||||
|
} |
||||
|
|
||||
|
public String getIndustryName() { |
||||
|
return industryName; |
||||
|
} |
||||
|
|
||||
|
public void setIndustryName(String industryName) { |
||||
|
this.industryName = industryName; |
||||
|
} |
||||
|
|
||||
|
public Integer getBbCnt() { |
||||
|
return bbCnt; |
||||
|
} |
||||
|
|
||||
|
public void setBbCnt(Integer bbCnt) { |
||||
|
this.bbCnt = bbCnt; |
||||
|
} |
||||
|
|
||||
|
public Double getBbRatio() { |
||||
|
return bbRatio; |
||||
|
} |
||||
|
|
||||
|
public void setBbRatio(Double bbRatio) { |
||||
|
this.bbRatio = bbRatio; |
||||
|
} |
||||
|
|
||||
|
public Integer getAaaCnt() { |
||||
|
return aaaCnt; |
||||
|
} |
||||
|
|
||||
|
public void setAaaCnt(Integer aaaCnt) { |
||||
|
this.aaaCnt = aaaCnt; |
||||
|
} |
||||
|
|
||||
|
public Double getAaaRatio() { |
||||
|
return aaaRatio; |
||||
|
} |
||||
|
|
||||
|
public void setAaaRatio(Double aaaRatio) { |
||||
|
this.aaaRatio = aaaRatio; |
||||
|
} |
||||
|
|
||||
|
public Integer getAaCnt() { |
||||
|
return aaCnt; |
||||
|
} |
||||
|
|
||||
|
public void setAaCnt(Integer aaCnt) { |
||||
|
this.aaCnt = aaCnt; |
||||
|
} |
||||
|
|
||||
|
public Double getAaRatio() { |
||||
|
return aaRatio; |
||||
|
} |
||||
|
|
||||
|
public void setAaRatio(Double aaRatio) { |
||||
|
this.aaRatio = aaRatio; |
||||
|
} |
||||
|
|
||||
|
public Integer getaPlusCnt() { |
||||
|
return aPlusCnt; |
||||
|
} |
||||
|
|
||||
|
public void setaPlusCnt(Integer aPlusCnt) { |
||||
|
this.aPlusCnt = aPlusCnt; |
||||
|
} |
||||
|
|
||||
|
public Double getaPlusRatio() { |
||||
|
return aPlusRatio; |
||||
|
} |
||||
|
|
||||
|
public void setaPlusRatio(Double aPlusRatio) { |
||||
|
this.aPlusRatio = aPlusRatio; |
||||
|
} |
||||
|
|
||||
|
public Integer getaCnt() { |
||||
|
return aCnt; |
||||
|
} |
||||
|
|
||||
|
public void setaCnt(Integer aCnt) { |
||||
|
this.aCnt = aCnt; |
||||
|
} |
||||
|
|
||||
|
public Double getaRatio() { |
||||
|
return aRatio; |
||||
|
} |
||||
|
|
||||
|
public void setaRatio(Double aRatio) { |
||||
|
this.aRatio = aRatio; |
||||
|
} |
||||
|
|
||||
|
public Integer getaMinusCnt() { |
||||
|
return aMinusCnt; |
||||
|
} |
||||
|
|
||||
|
public void setaMinusCnt(Integer aMinusCnt) { |
||||
|
this.aMinusCnt = aMinusCnt; |
||||
|
} |
||||
|
|
||||
|
public Double getaMinusRatio() { |
||||
|
return aMinusRatio; |
||||
|
} |
||||
|
|
||||
|
public void setaMinusRatio(Double aMinusRatio) { |
||||
|
this.aMinusRatio = aMinusRatio; |
||||
|
} |
||||
|
|
||||
|
public Integer getBbbCnt() { |
||||
|
return bbbCnt; |
||||
|
} |
||||
|
|
||||
|
public void setBbbCnt(Integer bbbCnt) { |
||||
|
this.bbbCnt = bbbCnt; |
||||
|
} |
||||
|
|
||||
|
public Double getBbbRatio() { |
||||
|
return bbbRatio; |
||||
|
} |
||||
|
|
||||
|
public void setBbbRatio(Double bbbRatio) { |
||||
|
this.bbbRatio = bbbRatio; |
||||
|
} |
||||
|
|
||||
|
public Integer getBbPlusCnt() { |
||||
|
return bbPlusCnt; |
||||
|
} |
||||
|
|
||||
|
public void setBbPlusCnt(Integer bbPlusCnt) { |
||||
|
this.bbPlusCnt = bbPlusCnt; |
||||
|
} |
||||
|
|
||||
|
public Double getBbPlusRatio() { |
||||
|
return bbPlusRatio; |
||||
|
} |
||||
|
|
||||
|
public void setBbPlusRatio(Double bbPlusRatio) { |
||||
|
this.bbPlusRatio = bbPlusRatio; |
||||
|
} |
||||
|
|
||||
|
public Integer getBbMinusCnt() { |
||||
|
return bbMinusCnt; |
||||
|
} |
||||
|
|
||||
|
public void setBbMinusCnt(Integer bbMinusCnt) { |
||||
|
this.bbMinusCnt = bbMinusCnt; |
||||
|
} |
||||
|
|
||||
|
public Double getBbMinusRatio() { |
||||
|
return bbMinusRatio; |
||||
|
} |
||||
|
|
||||
|
public void setBbMinusRatio(Double bbMinusRatio) { |
||||
|
this.bbMinusRatio = bbMinusRatio; |
||||
|
} |
||||
|
|
||||
|
public Integer getbPlusCnt() { |
||||
|
return bPlusCnt; |
||||
|
} |
||||
|
|
||||
|
public void setbPlusCnt(Integer bPlusCnt) { |
||||
|
this.bPlusCnt = bPlusCnt; |
||||
|
} |
||||
|
|
||||
|
public Double getbPlusRatio() { |
||||
|
return bPlusRatio; |
||||
|
} |
||||
|
|
||||
|
public void setbPlusRatio(Double bPlusRatio) { |
||||
|
this.bPlusRatio = bPlusRatio; |
||||
|
} |
||||
|
|
||||
|
public Integer getbCnt() { |
||||
|
return bCnt; |
||||
|
} |
||||
|
|
||||
|
public void setbCnt(Integer bCnt) { |
||||
|
this.bCnt = bCnt; |
||||
|
} |
||||
|
|
||||
|
public Double getbRatio() { |
||||
|
return bRatio; |
||||
|
} |
||||
|
|
||||
|
public void setbRatio(Double bRatio) { |
||||
|
this.bRatio = bRatio; |
||||
|
} |
||||
|
|
||||
|
public Integer getCccCnt() { |
||||
|
return cccCnt; |
||||
|
} |
||||
|
|
||||
|
public void setCccCnt(Integer cccCnt) { |
||||
|
this.cccCnt = cccCnt; |
||||
|
} |
||||
|
|
||||
|
public Double getCccRatio() { |
||||
|
return cccRatio; |
||||
|
} |
||||
|
|
||||
|
public void setCccRatio(Double cccRatio) { |
||||
|
this.cccRatio = cccRatio; |
||||
|
} |
||||
|
|
||||
|
public Integer getCcCnt() { |
||||
|
return ccCnt; |
||||
|
} |
||||
|
|
||||
|
public void setCcCnt(Integer ccCnt) { |
||||
|
this.ccCnt = ccCnt; |
||||
|
} |
||||
|
|
||||
|
public Double getCcRatio() { |
||||
|
return ccRatio; |
||||
|
} |
||||
|
|
||||
|
public void setCcRatio(Double ccRatio) { |
||||
|
this.ccRatio = ccRatio; |
||||
|
} |
||||
|
|
||||
|
public Integer getcCnt() { |
||||
|
return cCnt; |
||||
|
} |
||||
|
|
||||
|
public void setcCnt(Integer cCnt) { |
||||
|
this.cCnt = cCnt; |
||||
|
} |
||||
|
|
||||
|
public Double getcRatio() { |
||||
|
return cRatio; |
||||
|
} |
||||
|
|
||||
|
public void setcRatio(Double cRatio) { |
||||
|
this.cRatio = cRatio; |
||||
|
} |
||||
|
} |
@ -0,0 +1,45 @@ |
|||||
|
package irbs.reports.jpa.support; |
||||
|
|
||||
|
import org.springframework.jdbc.core.RowMapper; |
||||
|
|
||||
|
import java.sql.ResultSet; |
||||
|
import java.sql.SQLException; |
||||
|
|
||||
|
public class RptRatingIndustryFocusDistVoRowMapper implements RowMapper<RptRatingIndustryFocusDistVo> { |
||||
|
@Override |
||||
|
public RptRatingIndustryFocusDistVo mapRow(ResultSet rs, int rowNum) throws SQLException { |
||||
|
RptRatingIndustryFocusDistVo vo = new RptRatingIndustryFocusDistVo(); |
||||
|
vo.setIndustryName(rs.getString("INDUSTRY_NAME")); |
||||
|
vo.setAaaCnt(rs.getInt("AAA_CNT")); |
||||
|
vo.setAaaRatio(rs.getDouble("AAA_RATIO")); |
||||
|
vo.setAaCnt(rs.getInt("AA_CNT")); |
||||
|
vo.setAaRatio(rs.getDouble("AA_RATIO")); |
||||
|
vo.setaPlusCnt(rs.getInt("A_PLUS_CNT")); |
||||
|
vo.setaPlusRatio(rs.getDouble("A_PLUS_RATIO")); |
||||
|
vo.setaCnt(rs.getInt("A_CNT")); |
||||
|
vo.setaRatio(rs.getDouble("A_RATIO")); |
||||
|
vo.setaMinusCnt(rs.getInt("A_MINUS_CNT")); |
||||
|
vo.setaMinusRatio(rs.getDouble("A_MINUS_RATIO")); |
||||
|
vo.setBbbCnt(rs.getInt("BBB_CNT")); |
||||
|
vo.setBbbRatio(rs.getDouble("BBB_RATIO")); |
||||
|
vo.setBbPlusCnt(rs.getInt("BB_PLUS_CNT")); |
||||
|
vo.setBbPlusRatio(rs.getDouble("BB_PLUS_RATIO")); |
||||
|
vo.setBbCnt(rs.getInt("BB_CNT")); |
||||
|
vo.setBbRatio(rs.getDouble("BB_RATIO")); |
||||
|
vo.setBbMinusCnt(rs.getInt("BB_MINUS_CNT")); |
||||
|
vo.setBbMinusRatio(rs.getDouble("BB_MINUS_RATIO")); |
||||
|
vo.setbPlusCnt(rs.getInt("B_PLUS_CNT")); |
||||
|
vo.setbPlusRatio(rs.getDouble("B_PLUS_RATIO")); |
||||
|
vo.setbCnt(rs.getInt("B_CNT")); |
||||
|
vo.setbRatio(rs.getDouble("B_RATIO")); |
||||
|
vo.setCccCnt(rs.getInt("CCC_CNT")); |
||||
|
vo.setCccRatio(rs.getDouble("CCC_RATIO")); |
||||
|
vo.setCcCnt(rs.getInt("CC_CNT")); |
||||
|
vo.setCcRatio(rs.getDouble("CC_RATIO")); |
||||
|
vo.setcCnt(rs.getInt("C_CNT")); |
||||
|
vo.setcRatio(rs.getDouble("C_RATIO")); |
||||
|
vo.setdCnt(rs.getInt("D_CNT")); |
||||
|
vo.setdRatio(rs.getDouble("D_RATIO")); |
||||
|
return vo; |
||||
|
} |
||||
|
} |
@ -0,0 +1,202 @@ |
|||||
|
package irbs.reports.jpa.support; |
||||
|
|
||||
|
public class RptRatingLoanBalanceMigrateVo { |
||||
|
private String ratingLevel; |
||||
|
private Double aaaBal; |
||||
|
private Double aaBal; |
||||
|
private Double aPlusBal; |
||||
|
private Double aBal; |
||||
|
private Double aMinusBal; |
||||
|
private Double bbbBal; |
||||
|
private Double bbPlusBal; |
||||
|
private Double bbBal; |
||||
|
private Double bbMinusBal; |
||||
|
private Double bPlusBal; |
||||
|
private Double bBal; |
||||
|
private Double cccBal; |
||||
|
private Double ccBal; |
||||
|
private Double cBal; |
||||
|
private Double dBal; |
||||
|
private Double notRatingBal; |
||||
|
private Double upBal; |
||||
|
private Double downBal; |
||||
|
private Double upRatio; |
||||
|
private Double downRatio; |
||||
|
private Double chgExponent; |
||||
|
|
||||
|
public String getRatingLevel() { |
||||
|
return ratingLevel; |
||||
|
} |
||||
|
|
||||
|
public void setRatingLevel(String ratingLevel) { |
||||
|
this.ratingLevel = ratingLevel; |
||||
|
} |
||||
|
|
||||
|
public Double getAaaBal() { |
||||
|
return aaaBal; |
||||
|
} |
||||
|
|
||||
|
public void setAaaBal(Double aaaBal) { |
||||
|
this.aaaBal = aaaBal; |
||||
|
} |
||||
|
|
||||
|
public Double getAaBal() { |
||||
|
return aaBal; |
||||
|
} |
||||
|
|
||||
|
public void setAaBal(Double aaBal) { |
||||
|
this.aaBal = aaBal; |
||||
|
} |
||||
|
|
||||
|
public Double getaPlusBal() { |
||||
|
return aPlusBal; |
||||
|
} |
||||
|
|
||||
|
public void setaPlusBal(Double aPlusBal) { |
||||
|
this.aPlusBal = aPlusBal; |
||||
|
} |
||||
|
|
||||
|
public Double getaBal() { |
||||
|
return aBal; |
||||
|
} |
||||
|
|
||||
|
public void setaBal(Double aBal) { |
||||
|
this.aBal = aBal; |
||||
|
} |
||||
|
|
||||
|
public Double getaMinusBal() { |
||||
|
return aMinusBal; |
||||
|
} |
||||
|
|
||||
|
public void setaMinusBal(Double aMinusBal) { |
||||
|
this.aMinusBal = aMinusBal; |
||||
|
} |
||||
|
|
||||
|
public Double getBbbBal() { |
||||
|
return bbbBal; |
||||
|
} |
||||
|
|
||||
|
public void setBbbBal(Double bbbBal) { |
||||
|
this.bbbBal = bbbBal; |
||||
|
} |
||||
|
|
||||
|
public Double getBbPlusBal() { |
||||
|
return bbPlusBal; |
||||
|
} |
||||
|
|
||||
|
public void setBbPlusBal(Double bbPlusBal) { |
||||
|
this.bbPlusBal = bbPlusBal; |
||||
|
} |
||||
|
|
||||
|
public Double getBbBal() { |
||||
|
return bbBal; |
||||
|
} |
||||
|
|
||||
|
public void setBbBal(Double bbBal) { |
||||
|
this.bbBal = bbBal; |
||||
|
} |
||||
|
|
||||
|
public Double getBbMinusBal() { |
||||
|
return bbMinusBal; |
||||
|
} |
||||
|
|
||||
|
public void setBbMinusBal(Double bbMinusBal) { |
||||
|
this.bbMinusBal = bbMinusBal; |
||||
|
} |
||||
|
|
||||
|
public Double getbPlusBal() { |
||||
|
return bPlusBal; |
||||
|
} |
||||
|
|
||||
|
public void setbPlusBal(Double bPlusBal) { |
||||
|
this.bPlusBal = bPlusBal; |
||||
|
} |
||||
|
|
||||
|
public Double getbBal() { |
||||
|
return bBal; |
||||
|
} |
||||
|
|
||||
|
public void setbBal(Double bBal) { |
||||
|
this.bBal = bBal; |
||||
|
} |
||||
|
|
||||
|
public Double getCccBal() { |
||||
|
return cccBal; |
||||
|
} |
||||
|
|
||||
|
public void setCccBal(Double cccBal) { |
||||
|
this.cccBal = cccBal; |
||||
|
} |
||||
|
|
||||
|
public Double getCcBal() { |
||||
|
return ccBal; |
||||
|
} |
||||
|
|
||||
|
public void setCcBal(Double ccBal) { |
||||
|
this.ccBal = ccBal; |
||||
|
} |
||||
|
|
||||
|
public Double getcBal() { |
||||
|
return cBal; |
||||
|
} |
||||
|
|
||||
|
public void setcBal(Double cBal) { |
||||
|
this.cBal = cBal; |
||||
|
} |
||||
|
|
||||
|
public Double getdBal() { |
||||
|
return dBal; |
||||
|
} |
||||
|
|
||||
|
public void setdBal(Double dBal) { |
||||
|
this.dBal = dBal; |
||||
|
} |
||||
|
|
||||
|
public Double getNotRatingBal() { |
||||
|
return notRatingBal; |
||||
|
} |
||||
|
|
||||
|
public void setNotRatingBal(Double notRatingBal) { |
||||
|
this.notRatingBal = notRatingBal; |
||||
|
} |
||||
|
|
||||
|
public Double getUpBal() { |
||||
|
return upBal; |
||||
|
} |
||||
|
|
||||
|
public void setUpBal(Double upBal) { |
||||
|
this.upBal = upBal; |
||||
|
} |
||||
|
|
||||
|
public Double getDownBal() { |
||||
|
return downBal; |
||||
|
} |
||||
|
|
||||
|
public void setDownBal(Double downBal) { |
||||
|
this.downBal = downBal; |
||||
|
} |
||||
|
|
||||
|
public Double getUpRatio() { |
||||
|
return upRatio; |
||||
|
} |
||||
|
|
||||
|
public void setUpRatio(Double upRatio) { |
||||
|
this.upRatio = upRatio; |
||||
|
} |
||||
|
|
||||
|
public Double getDownRatio() { |
||||
|
return downRatio; |
||||
|
} |
||||
|
|
||||
|
public void setDownRatio(Double downRatio) { |
||||
|
this.downRatio = downRatio; |
||||
|
} |
||||
|
|
||||
|
public Double getChgExponent() { |
||||
|
return chgExponent; |
||||
|
} |
||||
|
|
||||
|
public void setChgExponent(Double chgExponent) { |
||||
|
this.chgExponent = chgExponent; |
||||
|
} |
||||
|
} |
@ -0,0 +1,36 @@ |
|||||
|
package irbs.reports.jpa.support; |
||||
|
|
||||
|
import org.springframework.jdbc.core.RowMapper; |
||||
|
|
||||
|
import java.sql.ResultSet; |
||||
|
import java.sql.SQLException; |
||||
|
|
||||
|
public class RptRatingLoanBalanceMigrateVoRowMapper implements RowMapper<RptRatingLoanBalanceMigrateVo> { |
||||
|
@Override |
||||
|
public RptRatingLoanBalanceMigrateVo mapRow(ResultSet rs, int rowNum) throws SQLException { |
||||
|
RptRatingLoanBalanceMigrateVo vo = new RptRatingLoanBalanceMigrateVo(); |
||||
|
vo.setRatingLevel(rs.getString("FINAL_LEVEL")); |
||||
|
vo.setAaaBal(rs.getDouble("AAA_BAL")); |
||||
|
vo.setAaBal(rs.getDouble("AA_BAL")); |
||||
|
vo.setaPlusBal(rs.getDouble("A_PLUS_BAL")); |
||||
|
vo.setaBal(rs.getDouble("A_BAL")); |
||||
|
vo.setaMinusBal(rs.getDouble("A_MINUS_BAL")); |
||||
|
vo.setBbbBal(rs.getDouble("BBB_BAL")); |
||||
|
vo.setBbPlusBal(rs.getDouble("BB_PLUS_BAL")); |
||||
|
vo.setBbBal(rs.getDouble("BB_BAL")); |
||||
|
vo.setBbMinusBal(rs.getDouble("BB_MINUS_BAL")); |
||||
|
vo.setbPlusBal(rs.getDouble("B_PLUS_BAL")); |
||||
|
vo.setbBal(rs.getDouble("B_BAL")); |
||||
|
vo.setCccBal(rs.getDouble("CCC_BAL")); |
||||
|
vo.setCcBal(rs.getDouble("CC_BAL")); |
||||
|
vo.setcBal(rs.getDouble("C_BAL")); |
||||
|
vo.setdBal(rs.getDouble("D_BAL")); |
||||
|
vo.setNotRatingBal(rs.getDouble("NOT_RATING_BAL")); |
||||
|
vo.setUpBal(rs.getDouble("UP_BAL")); |
||||
|
vo.setDownBal(rs.getDouble("DOWN_BAL")); |
||||
|
vo.setUpRatio(rs.getDouble("UP_RATIO")); |
||||
|
vo.setDownRatio(rs.getDouble("DOWN_RATIO")); |
||||
|
vo.setChgExponent(rs.getDouble("CHG_EXPONENT")); |
||||
|
return vo; |
||||
|
} |
||||
|
} |
@ -0,0 +1,283 @@ |
|||||
|
package irbs.reports.jpa.support; |
||||
|
|
||||
|
public class RptRatingModelFocusDistVo { |
||||
|
private String modelName; |
||||
|
private Integer aaaCnt; |
||||
|
private Double aaaRatio; |
||||
|
private Integer aaCnt; |
||||
|
private Double aaRatio; |
||||
|
private Integer aPlusCnt; |
||||
|
private Double aPlusRatio; |
||||
|
private Integer aCnt; |
||||
|
private Double aRatio; |
||||
|
private Integer aMinusCnt; |
||||
|
private Double aMinusRatio; |
||||
|
private Integer bbbCnt; |
||||
|
private Double bbbRatio; |
||||
|
private Integer bbPlusCnt; |
||||
|
private Double bbPlusRatio; |
||||
|
private Integer bbCnt; |
||||
|
private Double bbRatio; |
||||
|
private Integer bbMinusCnt; |
||||
|
private Double bbMinusRatio; |
||||
|
private Integer bPlusCnt; |
||||
|
private Double bPlusRatio; |
||||
|
private Integer bCnt; |
||||
|
private Double bRatio; |
||||
|
private Integer cccCnt; |
||||
|
private Double cccRatio; |
||||
|
private Integer ccCnt; |
||||
|
private Double ccRatio; |
||||
|
private Integer cCnt; |
||||
|
private Double cRatio; |
||||
|
private Integer dCnt; |
||||
|
private Double dRatio; |
||||
|
|
||||
|
public String getModelName() { |
||||
|
return modelName; |
||||
|
} |
||||
|
|
||||
|
public void setModelName(String modelName) { |
||||
|
this.modelName = modelName; |
||||
|
} |
||||
|
|
||||
|
public Integer getBbCnt() { |
||||
|
return bbCnt; |
||||
|
} |
||||
|
|
||||
|
public void setBbCnt(Integer bbCnt) { |
||||
|
this.bbCnt = bbCnt; |
||||
|
} |
||||
|
|
||||
|
public Double getBbRatio() { |
||||
|
return bbRatio; |
||||
|
} |
||||
|
|
||||
|
public void setBbRatio(Double bbRatio) { |
||||
|
this.bbRatio = bbRatio; |
||||
|
} |
||||
|
|
||||
|
public Integer getAaaCnt() { |
||||
|
return aaaCnt; |
||||
|
} |
||||
|
|
||||
|
public void setAaaCnt(Integer aaaCnt) { |
||||
|
this.aaaCnt = aaaCnt; |
||||
|
} |
||||
|
|
||||
|
public Double getAaaRatio() { |
||||
|
return aaaRatio; |
||||
|
} |
||||
|
|
||||
|
public void setAaaRatio(Double aaaRatio) { |
||||
|
this.aaaRatio = aaaRatio; |
||||
|
} |
||||
|
|
||||
|
public Integer getAaCnt() { |
||||
|
return aaCnt; |
||||
|
} |
||||
|
|
||||
|
public void setAaCnt(Integer aaCnt) { |
||||
|
this.aaCnt = aaCnt; |
||||
|
} |
||||
|
|
||||
|
public Double getAaRatio() { |
||||
|
return aaRatio; |
||||
|
} |
||||
|
|
||||
|
public void setAaRatio(Double aaRatio) { |
||||
|
this.aaRatio = aaRatio; |
||||
|
} |
||||
|
|
||||
|
public Integer getaPlusCnt() { |
||||
|
return aPlusCnt; |
||||
|
} |
||||
|
|
||||
|
public void setaPlusCnt(Integer aPlusCnt) { |
||||
|
this.aPlusCnt = aPlusCnt; |
||||
|
} |
||||
|
|
||||
|
public Double getaPlusRatio() { |
||||
|
return aPlusRatio; |
||||
|
} |
||||
|
|
||||
|
public void setaPlusRatio(Double aPlusRatio) { |
||||
|
this.aPlusRatio = aPlusRatio; |
||||
|
} |
||||
|
|
||||
|
public Integer getaCnt() { |
||||
|
return aCnt; |
||||
|
} |
||||
|
|
||||
|
public void setaCnt(Integer aCnt) { |
||||
|
this.aCnt = aCnt; |
||||
|
} |
||||
|
|
||||
|
public Double getaRatio() { |
||||
|
return aRatio; |
||||
|
} |
||||
|
|
||||
|
public void setaRatio(Double aRatio) { |
||||
|
this.aRatio = aRatio; |
||||
|
} |
||||
|
|
||||
|
public Integer getaMinusCnt() { |
||||
|
return aMinusCnt; |
||||
|
} |
||||
|
|
||||
|
public void setaMinusCnt(Integer aMinusCnt) { |
||||
|
this.aMinusCnt = aMinusCnt; |
||||
|
} |
||||
|
|
||||
|
public Double getaMinusRatio() { |
||||
|
return aMinusRatio; |
||||
|
} |
||||
|
|
||||
|
public void setaMinusRatio(Double aMinusRatio) { |
||||
|
this.aMinusRatio = aMinusRatio; |
||||
|
} |
||||
|
|
||||
|
public Integer getBbbCnt() { |
||||
|
return bbbCnt; |
||||
|
} |
||||
|
|
||||
|
public void setBbbCnt(Integer bbbCnt) { |
||||
|
this.bbbCnt = bbbCnt; |
||||
|
} |
||||
|
|
||||
|
public Double getBbbRatio() { |
||||
|
return bbbRatio; |
||||
|
} |
||||
|
|
||||
|
public void setBbbRatio(Double bbbRatio) { |
||||
|
this.bbbRatio = bbbRatio; |
||||
|
} |
||||
|
|
||||
|
public Integer getBbPlusCnt() { |
||||
|
return bbPlusCnt; |
||||
|
} |
||||
|
|
||||
|
public void setBbPlusCnt(Integer bbPlusCnt) { |
||||
|
this.bbPlusCnt = bbPlusCnt; |
||||
|
} |
||||
|
|
||||
|
public Double getBbPlusRatio() { |
||||
|
return bbPlusRatio; |
||||
|
} |
||||
|
|
||||
|
public void setBbPlusRatio(Double bbPlusRatio) { |
||||
|
this.bbPlusRatio = bbPlusRatio; |
||||
|
} |
||||
|
|
||||
|
public Integer getBbMinusCnt() { |
||||
|
return bbMinusCnt; |
||||
|
} |
||||
|
|
||||
|
public void setBbMinusCnt(Integer bbMinusCnt) { |
||||
|
this.bbMinusCnt = bbMinusCnt; |
||||
|
} |
||||
|
|
||||
|
public Double getBbMinusRatio() { |
||||
|
return bbMinusRatio; |
||||
|
} |
||||
|
|
||||
|
public void setBbMinusRatio(Double bbMinusRatio) { |
||||
|
this.bbMinusRatio = bbMinusRatio; |
||||
|
} |
||||
|
|
||||
|
public Integer getbPlusCnt() { |
||||
|
return bPlusCnt; |
||||
|
} |
||||
|
|
||||
|
public void setbPlusCnt(Integer bPlusCnt) { |
||||
|
this.bPlusCnt = bPlusCnt; |
||||
|
} |
||||
|
|
||||
|
public Double getbPlusRatio() { |
||||
|
return bPlusRatio; |
||||
|
} |
||||
|
|
||||
|
public void setbPlusRatio(Double bPlusRatio) { |
||||
|
this.bPlusRatio = bPlusRatio; |
||||
|
} |
||||
|
|
||||
|
public Integer getbCnt() { |
||||
|
return bCnt; |
||||
|
} |
||||
|
|
||||
|
public void setbCnt(Integer bCnt) { |
||||
|
this.bCnt = bCnt; |
||||
|
} |
||||
|
|
||||
|
public Double getbRatio() { |
||||
|
return bRatio; |
||||
|
} |
||||
|
|
||||
|
public void setbRatio(Double bRatio) { |
||||
|
this.bRatio = bRatio; |
||||
|
} |
||||
|
|
||||
|
public Integer getCccCnt() { |
||||
|
return cccCnt; |
||||
|
} |
||||
|
|
||||
|
public void setCccCnt(Integer cccCnt) { |
||||
|
this.cccCnt = cccCnt; |
||||
|
} |
||||
|
|
||||
|
public Double getCccRatio() { |
||||
|
return cccRatio; |
||||
|
} |
||||
|
|
||||
|
public void setCccRatio(Double cccRatio) { |
||||
|
this.cccRatio = cccRatio; |
||||
|
} |
||||
|
|
||||
|
public Integer getCcCnt() { |
||||
|
return ccCnt; |
||||
|
} |
||||
|
|
||||
|
public void setCcCnt(Integer ccCnt) { |
||||
|
this.ccCnt = ccCnt; |
||||
|
} |
||||
|
|
||||
|
public Double getCcRatio() { |
||||
|
return ccRatio; |
||||
|
} |
||||
|
|
||||
|
public void setCcRatio(Double ccRatio) { |
||||
|
this.ccRatio = ccRatio; |
||||
|
} |
||||
|
|
||||
|
public Integer getcCnt() { |
||||
|
return cCnt; |
||||
|
} |
||||
|
|
||||
|
public void setcCnt(Integer cCnt) { |
||||
|
this.cCnt = cCnt; |
||||
|
} |
||||
|
|
||||
|
public Double getcRatio() { |
||||
|
return cRatio; |
||||
|
} |
||||
|
|
||||
|
public void setcRatio(Double cRatio) { |
||||
|
this.cRatio = cRatio; |
||||
|
} |
||||
|
|
||||
|
public Integer getdCnt() { |
||||
|
return dCnt; |
||||
|
} |
||||
|
|
||||
|
public void setdCnt(Integer dCnt) { |
||||
|
this.dCnt = dCnt; |
||||
|
} |
||||
|
|
||||
|
public Double getdRatio() { |
||||
|
return dRatio; |
||||
|
} |
||||
|
|
||||
|
public void setdRatio(Double dRatio) { |
||||
|
this.dRatio = dRatio; |
||||
|
} |
||||
|
} |
@ -0,0 +1,45 @@ |
|||||
|
package irbs.reports.jpa.support; |
||||
|
|
||||
|
import org.springframework.jdbc.core.RowMapper; |
||||
|
|
||||
|
import java.sql.ResultSet; |
||||
|
import java.sql.SQLException; |
||||
|
|
||||
|
public class RptRatingModelFocusDistVoRowMapper implements RowMapper<RptRatingModelFocusDistVo> { |
||||
|
@Override |
||||
|
public RptRatingModelFocusDistVo mapRow(ResultSet rs, int rowNum) throws SQLException { |
||||
|
RptRatingModelFocusDistVo vo = new RptRatingModelFocusDistVo(); |
||||
|
vo.setModelName(rs.getString("MODEL_NAME")); |
||||
|
vo.setAaaCnt(rs.getInt("AAA_CNT")); |
||||
|
vo.setAaaRatio(rs.getDouble("AAA_RATIO")); |
||||
|
vo.setAaCnt(rs.getInt("AA_CNT")); |
||||
|
vo.setAaRatio(rs.getDouble("AA_RATIO")); |
||||
|
vo.setaPlusCnt(rs.getInt("A_PLUS_CNT")); |
||||
|
vo.setaPlusRatio(rs.getDouble("A_PLUS_RATIO")); |
||||
|
vo.setaCnt(rs.getInt("A_CNT")); |
||||
|
vo.setaRatio(rs.getDouble("A_RATIO")); |
||||
|
vo.setaMinusCnt(rs.getInt("A_MINUS_CNT")); |
||||
|
vo.setaMinusRatio(rs.getDouble("A_MINUS_RATIO")); |
||||
|
vo.setBbbCnt(rs.getInt("BBB_CNT")); |
||||
|
vo.setBbbRatio(rs.getDouble("BBB_RATIO")); |
||||
|
vo.setBbPlusCnt(rs.getInt("BB_PLUS_CNT")); |
||||
|
vo.setBbPlusRatio(rs.getDouble("BB_PLUS_RATIO")); |
||||
|
vo.setBbCnt(rs.getInt("BB_CNT")); |
||||
|
vo.setBbRatio(rs.getDouble("BB_RATIO")); |
||||
|
vo.setBbMinusCnt(rs.getInt("BB_MINUS_CNT")); |
||||
|
vo.setBbMinusRatio(rs.getDouble("BB_MINUS_RATIO")); |
||||
|
vo.setbPlusCnt(rs.getInt("B_PLUS_CNT")); |
||||
|
vo.setbPlusRatio(rs.getDouble("B_PLUS_RATIO")); |
||||
|
vo.setbCnt(rs.getInt("B_CNT")); |
||||
|
vo.setbRatio(rs.getDouble("B_RATIO")); |
||||
|
vo.setCccCnt(rs.getInt("CCC_CNT")); |
||||
|
vo.setCccRatio(rs.getDouble("CCC_RATIO")); |
||||
|
vo.setCcCnt(rs.getInt("CC_CNT")); |
||||
|
vo.setCcRatio(rs.getDouble("CC_RATIO")); |
||||
|
vo.setcCnt(rs.getInt("C_CNT")); |
||||
|
vo.setcRatio(rs.getDouble("C_RATIO")); |
||||
|
vo.setdCnt(rs.getInt("D_CNT")); |
||||
|
vo.setdRatio(rs.getDouble("D_RATIO")); |
||||
|
return vo; |
||||
|
} |
||||
|
} |
@ -0,0 +1,202 @@ |
|||||
|
package irbs.reports.jpa.support; |
||||
|
|
||||
|
public class RptRatingNumberMigrateVo { |
||||
|
private String ratingLevel; |
||||
|
private Integer aaaCnt; |
||||
|
private Integer aaCnt; |
||||
|
private Integer aPlusCnt; |
||||
|
private Integer aCnt; |
||||
|
private Integer aMinusCnt; |
||||
|
private Integer bbbCnt; |
||||
|
private Integer bbPlusCnt; |
||||
|
private Integer bbCnt; |
||||
|
private Integer bbMinusCnt; |
||||
|
private Integer bPlusCnt; |
||||
|
private Integer bCnt; |
||||
|
private Integer cccCnt; |
||||
|
private Integer ccCnt; |
||||
|
private Integer cCnt; |
||||
|
private Integer dCnt; |
||||
|
private Integer notRatingCnt; |
||||
|
private Integer upCnt; |
||||
|
private Integer downCnt; |
||||
|
private Double upRatio; |
||||
|
private Double downRatio; |
||||
|
private Double chgExponent; |
||||
|
|
||||
|
public Integer getNotRatingCnt() { |
||||
|
return notRatingCnt; |
||||
|
} |
||||
|
|
||||
|
public void setNotRatingCnt(Integer notRatingCnt) { |
||||
|
this.notRatingCnt = notRatingCnt; |
||||
|
} |
||||
|
|
||||
|
public String getRatingLevel() { |
||||
|
return ratingLevel; |
||||
|
} |
||||
|
|
||||
|
public void setRatingLevel(String ratingLevel) { |
||||
|
this.ratingLevel = ratingLevel; |
||||
|
} |
||||
|
|
||||
|
public Integer getAaaCnt() { |
||||
|
return aaaCnt; |
||||
|
} |
||||
|
|
||||
|
public void setAaaCnt(Integer aaaCnt) { |
||||
|
this.aaaCnt = aaaCnt; |
||||
|
} |
||||
|
|
||||
|
public Integer getAaCnt() { |
||||
|
return aaCnt; |
||||
|
} |
||||
|
|
||||
|
public void setAaCnt(Integer aaCnt) { |
||||
|
this.aaCnt = aaCnt; |
||||
|
} |
||||
|
|
||||
|
public Integer getaPlusCnt() { |
||||
|
return aPlusCnt; |
||||
|
} |
||||
|
|
||||
|
public void setaPlusCnt(Integer aPlusCnt) { |
||||
|
this.aPlusCnt = aPlusCnt; |
||||
|
} |
||||
|
|
||||
|
public Integer getaCnt() { |
||||
|
return aCnt; |
||||
|
} |
||||
|
|
||||
|
public void setaCnt(Integer aCnt) { |
||||
|
this.aCnt = aCnt; |
||||
|
} |
||||
|
|
||||
|
public Integer getaMinusCnt() { |
||||
|
return aMinusCnt; |
||||
|
} |
||||
|
|
||||
|
public void setaMinusCnt(Integer aMinusCnt) { |
||||
|
this.aMinusCnt = aMinusCnt; |
||||
|
} |
||||
|
|
||||
|
public Integer getBbbCnt() { |
||||
|
return bbbCnt; |
||||
|
} |
||||
|
|
||||
|
public void setBbbCnt(Integer bbbCnt) { |
||||
|
this.bbbCnt = bbbCnt; |
||||
|
} |
||||
|
|
||||
|
public Integer getBbPlusCnt() { |
||||
|
return bbPlusCnt; |
||||
|
} |
||||
|
|
||||
|
public void setBbPlusCnt(Integer bbPlusCnt) { |
||||
|
this.bbPlusCnt = bbPlusCnt; |
||||
|
} |
||||
|
|
||||
|
public Integer getBbCnt() { |
||||
|
return bbCnt; |
||||
|
} |
||||
|
|
||||
|
public void setBbCnt(Integer bbCnt) { |
||||
|
this.bbCnt = bbCnt; |
||||
|
} |
||||
|
|
||||
|
public Integer getBbMinusCnt() { |
||||
|
return bbMinusCnt; |
||||
|
} |
||||
|
|
||||
|
public void setBbMinusCnt(Integer bbMinusCnt) { |
||||
|
this.bbMinusCnt = bbMinusCnt; |
||||
|
} |
||||
|
|
||||
|
public Integer getbPlusCnt() { |
||||
|
return bPlusCnt; |
||||
|
} |
||||
|
|
||||
|
public void setbPlusCnt(Integer bPlusCnt) { |
||||
|
this.bPlusCnt = bPlusCnt; |
||||
|
} |
||||
|
|
||||
|
public Integer getbCnt() { |
||||
|
return bCnt; |
||||
|
} |
||||
|
|
||||
|
public void setbCnt(Integer bCnt) { |
||||
|
this.bCnt = bCnt; |
||||
|
} |
||||
|
|
||||
|
public Integer getCccCnt() { |
||||
|
return cccCnt; |
||||
|
} |
||||
|
|
||||
|
public void setCccCnt(Integer cccCnt) { |
||||
|
this.cccCnt = cccCnt; |
||||
|
} |
||||
|
|
||||
|
public Integer getCcCnt() { |
||||
|
return ccCnt; |
||||
|
} |
||||
|
|
||||
|
public void setCcCnt(Integer ccCnt) { |
||||
|
this.ccCnt = ccCnt; |
||||
|
} |
||||
|
|
||||
|
public Integer getcCnt() { |
||||
|
return cCnt; |
||||
|
} |
||||
|
|
||||
|
public void setcCnt(Integer cCnt) { |
||||
|
this.cCnt = cCnt; |
||||
|
} |
||||
|
|
||||
|
public Integer getdCnt() { |
||||
|
return dCnt; |
||||
|
} |
||||
|
|
||||
|
public void setdCnt(Integer dCnt) { |
||||
|
this.dCnt = dCnt; |
||||
|
} |
||||
|
|
||||
|
public Integer getUpCnt() { |
||||
|
return upCnt; |
||||
|
} |
||||
|
|
||||
|
public void setUpCnt(Integer upCnt) { |
||||
|
this.upCnt = upCnt; |
||||
|
} |
||||
|
|
||||
|
public Integer getDownCnt() { |
||||
|
return downCnt; |
||||
|
} |
||||
|
|
||||
|
public void setDownCnt(Integer downCnt) { |
||||
|
this.downCnt = downCnt; |
||||
|
} |
||||
|
|
||||
|
public Double getUpRatio() { |
||||
|
return upRatio; |
||||
|
} |
||||
|
|
||||
|
public void setUpRatio(Double upRatio) { |
||||
|
this.upRatio = upRatio; |
||||
|
} |
||||
|
|
||||
|
public Double getDownRatio() { |
||||
|
return downRatio; |
||||
|
} |
||||
|
|
||||
|
public void setDownRatio(Double downRatio) { |
||||
|
this.downRatio = downRatio; |
||||
|
} |
||||
|
|
||||
|
public Double getChgExponent() { |
||||
|
return chgExponent; |
||||
|
} |
||||
|
|
||||
|
public void setChgExponent(Double chgExponent) { |
||||
|
this.chgExponent = chgExponent; |
||||
|
} |
||||
|
} |
@ -0,0 +1,36 @@ |
|||||
|
package irbs.reports.jpa.support; |
||||
|
|
||||
|
import org.springframework.jdbc.core.RowMapper; |
||||
|
|
||||
|
import java.sql.ResultSet; |
||||
|
import java.sql.SQLException; |
||||
|
|
||||
|
public class RptRatingNumberMigrateVoRowMapper implements RowMapper<RptRatingNumberMigrateVo> { |
||||
|
@Override |
||||
|
public RptRatingNumberMigrateVo mapRow(ResultSet rs, int rowNum) throws SQLException { |
||||
|
RptRatingNumberMigrateVo vo = new RptRatingNumberMigrateVo(); |
||||
|
vo.setRatingLevel(rs.getString("FINAL_LEVEL")); |
||||
|
vo.setAaaCnt(rs.getInt("AAA_CNT")); |
||||
|
vo.setAaCnt(rs.getInt("AA_CNT")); |
||||
|
vo.setaPlusCnt(rs.getInt("A_PLUS_CNT")); |
||||
|
vo.setaCnt(rs.getInt("A_CNT")); |
||||
|
vo.setaMinusCnt(rs.getInt("A_MINUS_CNT")); |
||||
|
vo.setBbbCnt(rs.getInt("BBB_CNT")); |
||||
|
vo.setBbPlusCnt(rs.getInt("BB_PLUS_CNT")); |
||||
|
vo.setBbCnt(rs.getInt("BB_CNT")); |
||||
|
vo.setBbMinusCnt(rs.getInt("BB_MINUS_CNT")); |
||||
|
vo.setbPlusCnt(rs.getInt("B_PLUS_CNT")); |
||||
|
vo.setbCnt(rs.getInt("B_CNT")); |
||||
|
vo.setCccCnt(rs.getInt("CCC_CNT")); |
||||
|
vo.setCcCnt(rs.getInt("CC_CNT")); |
||||
|
vo.setcCnt(rs.getInt("C_CNT")); |
||||
|
vo.setdCnt(rs.getInt("D_CNT")); |
||||
|
vo.setNotRatingCnt(rs.getInt("NOT_RATING_CNT")); |
||||
|
vo.setUpCnt(rs.getInt("UP_CNT")); |
||||
|
vo.setDownCnt(rs.getInt("DOWN_CNT")); |
||||
|
vo.setUpRatio(rs.getDouble("UP_RATIO")); |
||||
|
vo.setDownRatio(rs.getDouble("DOWN_RATIO")); |
||||
|
vo.setChgExponent(rs.getDouble("CHG_EXPONENT")); |
||||
|
return vo; |
||||
|
} |
||||
|
} |
@ -0,0 +1,284 @@ |
|||||
|
package irbs.reports.jpa.support; |
||||
|
|
||||
|
public class RptRatingOrgFocusDistVo { |
||||
|
private String managerOrgName; |
||||
|
private Integer aaaCnt; |
||||
|
private Double aaaRatio; |
||||
|
private Integer aaCnt; |
||||
|
private Double aaRatio; |
||||
|
private Integer aPlusCnt; |
||||
|
private Double aPlusRatio; |
||||
|
private Integer aCnt; |
||||
|
private Double aRatio; |
||||
|
private Integer aMinusCnt; |
||||
|
private Double aMinusRatio; |
||||
|
private Integer bbbCnt; |
||||
|
private Double bbbRatio; |
||||
|
private Integer bbPlusCnt; |
||||
|
private Double bbPlusRatio; |
||||
|
private Integer bbCnt; |
||||
|
private Double bbRatio; |
||||
|
private Integer bbMinusCnt; |
||||
|
private Double bbMinusRatio; |
||||
|
private Integer bPlusCnt; |
||||
|
private Double bPlusRatio; |
||||
|
private Integer bCnt; |
||||
|
private Double bRatio; |
||||
|
private Integer cccCnt; |
||||
|
private Double cccRatio; |
||||
|
private Integer ccCnt; |
||||
|
private Double ccRatio; |
||||
|
private Integer cCnt; |
||||
|
private Double cRatio; |
||||
|
|
||||
|
public Integer getdCnt() { |
||||
|
return dCnt; |
||||
|
} |
||||
|
|
||||
|
public void setdCnt(Integer dCnt) { |
||||
|
this.dCnt = dCnt; |
||||
|
} |
||||
|
|
||||
|
public Double getdRatio() { |
||||
|
return dRatio; |
||||
|
} |
||||
|
|
||||
|
public void setdRatio(Double dRatio) { |
||||
|
this.dRatio = dRatio; |
||||
|
} |
||||
|
|
||||
|
private Integer dCnt; |
||||
|
private Double dRatio; |
||||
|
|
||||
|
public String getManagerOrgName() { |
||||
|
return managerOrgName; |
||||
|
} |
||||
|
|
||||
|
public void setManagerOrgName(String managerOrgName) { |
||||
|
this.managerOrgName = managerOrgName; |
||||
|
} |
||||
|
|
||||
|
public Integer getBbCnt() { |
||||
|
return bbCnt; |
||||
|
} |
||||
|
|
||||
|
public void setBbCnt(Integer bbCnt) { |
||||
|
this.bbCnt = bbCnt; |
||||
|
} |
||||
|
|
||||
|
public Double getBbRatio() { |
||||
|
return bbRatio; |
||||
|
} |
||||
|
|
||||
|
public void setBbRatio(Double bbRatio) { |
||||
|
this.bbRatio = bbRatio; |
||||
|
} |
||||
|
|
||||
|
public Integer getAaaCnt() { |
||||
|
return aaaCnt; |
||||
|
} |
||||
|
|
||||
|
public void setAaaCnt(Integer aaaCnt) { |
||||
|
this.aaaCnt = aaaCnt; |
||||
|
} |
||||
|
|
||||
|
public Double getAaaRatio() { |
||||
|
return aaaRatio; |
||||
|
} |
||||
|
|
||||
|
public void setAaaRatio(Double aaaRatio) { |
||||
|
this.aaaRatio = aaaRatio; |
||||
|
} |
||||
|
|
||||
|
public Integer getAaCnt() { |
||||
|
return aaCnt; |
||||
|
} |
||||
|
|
||||
|
public void setAaCnt(Integer aaCnt) { |
||||
|
this.aaCnt = aaCnt; |
||||
|
} |
||||
|
|
||||
|
public Double getAaRatio() { |
||||
|
return aaRatio; |
||||
|
} |
||||
|
|
||||
|
public void setAaRatio(Double aaRatio) { |
||||
|
this.aaRatio = aaRatio; |
||||
|
} |
||||
|
|
||||
|
public Integer getaPlusCnt() { |
||||
|
return aPlusCnt; |
||||
|
} |
||||
|
|
||||
|
public void setaPlusCnt(Integer aPlusCnt) { |
||||
|
this.aPlusCnt = aPlusCnt; |
||||
|
} |
||||
|
|
||||
|
public Double getaPlusRatio() { |
||||
|
return aPlusRatio; |
||||
|
} |
||||
|
|
||||
|
public void setaPlusRatio(Double aPlusRatio) { |
||||
|
this.aPlusRatio = aPlusRatio; |
||||
|
} |
||||
|
|
||||
|
public Integer getaCnt() { |
||||
|
return aCnt; |
||||
|
} |
||||
|
|
||||
|
public void setaCnt(Integer aCnt) { |
||||
|
this.aCnt = aCnt; |
||||
|
} |
||||
|
|
||||
|
public Double getaRatio() { |
||||
|
return aRatio; |
||||
|
} |
||||
|
|
||||
|
public void setaRatio(Double aRatio) { |
||||
|
this.aRatio = aRatio; |
||||
|
} |
||||
|
|
||||
|
public Integer getaMinusCnt() { |
||||
|
return aMinusCnt; |
||||
|
} |
||||
|
|
||||
|
public void setaMinusCnt(Integer aMinusCnt) { |
||||
|
this.aMinusCnt = aMinusCnt; |
||||
|
} |
||||
|
|
||||
|
public Double getaMinusRatio() { |
||||
|
return aMinusRatio; |
||||
|
} |
||||
|
|
||||
|
public void setaMinusRatio(Double aMinusRatio) { |
||||
|
this.aMinusRatio = aMinusRatio; |
||||
|
} |
||||
|
|
||||
|
public Integer getBbbCnt() { |
||||
|
return bbbCnt; |
||||
|
} |
||||
|
|
||||
|
public void setBbbCnt(Integer bbbCnt) { |
||||
|
this.bbbCnt = bbbCnt; |
||||
|
} |
||||
|
|
||||
|
public Double getBbbRatio() { |
||||
|
return bbbRatio; |
||||
|
} |
||||
|
|
||||
|
public void setBbbRatio(Double bbbRatio) { |
||||
|
this.bbbRatio = bbbRatio; |
||||
|
} |
||||
|
|
||||
|
public Integer getBbPlusCnt() { |
||||
|
return bbPlusCnt; |
||||
|
} |
||||
|
|
||||
|
public void setBbPlusCnt(Integer bbPlusCnt) { |
||||
|
this.bbPlusCnt = bbPlusCnt; |
||||
|
} |
||||
|
|
||||
|
public Double getBbPlusRatio() { |
||||
|
return bbPlusRatio; |
||||
|
} |
||||
|
|
||||
|
public void setBbPlusRatio(Double bbPlusRatio) { |
||||
|
this.bbPlusRatio = bbPlusRatio; |
||||
|
} |
||||
|
|
||||
|
public Integer getBbMinusCnt() { |
||||
|
return bbMinusCnt; |
||||
|
} |
||||
|
|
||||
|
public void setBbMinusCnt(Integer bbMinusCnt) { |
||||
|
this.bbMinusCnt = bbMinusCnt; |
||||
|
} |
||||
|
|
||||
|
public Double getBbMinusRatio() { |
||||
|
return bbMinusRatio; |
||||
|
} |
||||
|
|
||||
|
public void setBbMinusRatio(Double bbMinusRatio) { |
||||
|
this.bbMinusRatio = bbMinusRatio; |
||||
|
} |
||||
|
|
||||
|
public Integer getbPlusCnt() { |
||||
|
return bPlusCnt; |
||||
|
} |
||||
|
|
||||
|
public void setbPlusCnt(Integer bPlusCnt) { |
||||
|
this.bPlusCnt = bPlusCnt; |
||||
|
} |
||||
|
|
||||
|
public Double getbPlusRatio() { |
||||
|
return bPlusRatio; |
||||
|
} |
||||
|
|
||||
|
public void setbPlusRatio(Double bPlusRatio) { |
||||
|
this.bPlusRatio = bPlusRatio; |
||||
|
} |
||||
|
|
||||
|
public Integer getbCnt() { |
||||
|
return bCnt; |
||||
|
} |
||||
|
|
||||
|
public void setbCnt(Integer bCnt) { |
||||
|
this.bCnt = bCnt; |
||||
|
} |
||||
|
|
||||
|
public Double getbRatio() { |
||||
|
return bRatio; |
||||
|
} |
||||
|
|
||||
|
public void setbRatio(Double bRatio) { |
||||
|
this.bRatio = bRatio; |
||||
|
} |
||||
|
|
||||
|
public Integer getCccCnt() { |
||||
|
return cccCnt; |
||||
|
} |
||||
|
|
||||
|
public void setCccCnt(Integer cccCnt) { |
||||
|
this.cccCnt = cccCnt; |
||||
|
} |
||||
|
|
||||
|
public Double getCccRatio() { |
||||
|
return cccRatio; |
||||
|
} |
||||
|
|
||||
|
public void setCccRatio(Double cccRatio) { |
||||
|
this.cccRatio = cccRatio; |
||||
|
} |
||||
|
|
||||
|
public Integer getCcCnt() { |
||||
|
return ccCnt; |
||||
|
} |
||||
|
|
||||
|
public void setCcCnt(Integer ccCnt) { |
||||
|
this.ccCnt = ccCnt; |
||||
|
} |
||||
|
|
||||
|
public Double getCcRatio() { |
||||
|
return ccRatio; |
||||
|
} |
||||
|
|
||||
|
public void setCcRatio(Double ccRatio) { |
||||
|
this.ccRatio = ccRatio; |
||||
|
} |
||||
|
|
||||
|
public Integer getcCnt() { |
||||
|
return cCnt; |
||||
|
} |
||||
|
|
||||
|
public void setcCnt(Integer cCnt) { |
||||
|
this.cCnt = cCnt; |
||||
|
} |
||||
|
|
||||
|
public Double getcRatio() { |
||||
|
return cRatio; |
||||
|
} |
||||
|
|
||||
|
public void setcRatio(Double cRatio) { |
||||
|
this.cRatio = cRatio; |
||||
|
} |
||||
|
} |
@ -0,0 +1,45 @@ |
|||||
|
package irbs.reports.jpa.support; |
||||
|
|
||||
|
import org.springframework.jdbc.core.RowMapper; |
||||
|
|
||||
|
import java.sql.ResultSet; |
||||
|
import java.sql.SQLException; |
||||
|
|
||||
|
public class RptRatingOrgFocusDistVoRowMapper implements RowMapper<RptRatingOrgFocusDistVo> { |
||||
|
@Override |
||||
|
public RptRatingOrgFocusDistVo mapRow(ResultSet rs, int rowNum) throws SQLException { |
||||
|
RptRatingOrgFocusDistVo vo = new RptRatingOrgFocusDistVo(); |
||||
|
vo.setManagerOrgName(rs.getString("MANAGER_ORG_NAME")); |
||||
|
vo.setAaaCnt(rs.getInt("AAA_CNT")); |
||||
|
vo.setAaaRatio(rs.getDouble("AAA_RATIO")); |
||||
|
vo.setAaCnt(rs.getInt("AA_CNT")); |
||||
|
vo.setAaRatio(rs.getDouble("AA_RATIO")); |
||||
|
vo.setaPlusCnt(rs.getInt("A_PLUS_CNT")); |
||||
|
vo.setaPlusRatio(rs.getDouble("A_PLUS_RATIO")); |
||||
|
vo.setaCnt(rs.getInt("A_CNT")); |
||||
|
vo.setaRatio(rs.getDouble("A_RATIO")); |
||||
|
vo.setaMinusCnt(rs.getInt("A_MINUS_CNT")); |
||||
|
vo.setaMinusRatio(rs.getDouble("A_MINUS_RATIO")); |
||||
|
vo.setBbbCnt(rs.getInt("BBB_CNT")); |
||||
|
vo.setBbbRatio(rs.getDouble("BBB_RATIO")); |
||||
|
vo.setBbPlusCnt(rs.getInt("BB_PLUS_CNT")); |
||||
|
vo.setBbPlusRatio(rs.getDouble("BB_PLUS_RATIO")); |
||||
|
vo.setBbCnt(rs.getInt("BB_CNT")); |
||||
|
vo.setBbRatio(rs.getDouble("BB_RATIO")); |
||||
|
vo.setBbMinusCnt(rs.getInt("BB_MINUS_CNT")); |
||||
|
vo.setBbMinusRatio(rs.getDouble("BB_MINUS_RATIO")); |
||||
|
vo.setbPlusCnt(rs.getInt("B_PLUS_CNT")); |
||||
|
vo.setbPlusRatio(rs.getDouble("B_PLUS_RATIO")); |
||||
|
vo.setbCnt(rs.getInt("B_CNT")); |
||||
|
vo.setbRatio(rs.getDouble("B_RATIO")); |
||||
|
vo.setCccCnt(rs.getInt("CCC_CNT")); |
||||
|
vo.setCccRatio(rs.getDouble("CCC_RATIO")); |
||||
|
vo.setCcCnt(rs.getInt("CC_CNT")); |
||||
|
vo.setCcRatio(rs.getDouble("CC_RATIO")); |
||||
|
vo.setcCnt(rs.getInt("C_CNT")); |
||||
|
vo.setcRatio(rs.getDouble("C_RATIO")); |
||||
|
vo.setdCnt(rs.getInt("D_CNT")); |
||||
|
vo.setdRatio(rs.getDouble("D_RATIO")); |
||||
|
return vo; |
||||
|
} |
||||
|
} |
@ -0,0 +1,94 @@ |
|||||
|
package irbs.reports.jpa.support; |
||||
|
|
||||
|
public class RptRatingOverturnVo { |
||||
|
private String ratingMonth; |
||||
|
private Integer custCnt; |
||||
|
private Integer overturnCnt; |
||||
|
private Double overturnRatio; |
||||
|
private Double upOverturnRatio; |
||||
|
private Double downOverturnRatio; |
||||
|
private Double oneLvlRatio; |
||||
|
private Double twoLvlRatio; |
||||
|
private Double threeLvlRatio; |
||||
|
private Double threeMoreLvlRatio; |
||||
|
|
||||
|
public String getRatingMonth() { |
||||
|
return ratingMonth; |
||||
|
} |
||||
|
|
||||
|
public void setRatingMonth(String ratingMonth) { |
||||
|
this.ratingMonth = ratingMonth; |
||||
|
} |
||||
|
|
||||
|
public Integer getCustCnt() { |
||||
|
return custCnt; |
||||
|
} |
||||
|
|
||||
|
public void setCustCnt(Integer custCnt) { |
||||
|
this.custCnt = custCnt; |
||||
|
} |
||||
|
|
||||
|
public Integer getOverturnCnt() { |
||||
|
return overturnCnt; |
||||
|
} |
||||
|
|
||||
|
public void setOverturnCnt(Integer overturnCnt) { |
||||
|
this.overturnCnt = overturnCnt; |
||||
|
} |
||||
|
|
||||
|
public Double getOverturnRatio() { |
||||
|
return overturnRatio; |
||||
|
} |
||||
|
|
||||
|
public void setOverturnRatio(Double overturnRatio) { |
||||
|
this.overturnRatio = overturnRatio; |
||||
|
} |
||||
|
|
||||
|
public Double getUpOverturnRatio() { |
||||
|
return upOverturnRatio; |
||||
|
} |
||||
|
|
||||
|
public void setUpOverturnRatio(Double upOverturnRatio) { |
||||
|
this.upOverturnRatio = upOverturnRatio; |
||||
|
} |
||||
|
|
||||
|
public Double getDownOverturnRatio() { |
||||
|
return downOverturnRatio; |
||||
|
} |
||||
|
|
||||
|
public void setDownOverturnRatio(Double downOverturnRatio) { |
||||
|
this.downOverturnRatio = downOverturnRatio; |
||||
|
} |
||||
|
|
||||
|
public Double getOneLvlRatio() { |
||||
|
return oneLvlRatio; |
||||
|
} |
||||
|
|
||||
|
public void setOneLvlRatio(Double oneLvlRatio) { |
||||
|
this.oneLvlRatio = oneLvlRatio; |
||||
|
} |
||||
|
|
||||
|
public Double getTwoLvlRatio() { |
||||
|
return twoLvlRatio; |
||||
|
} |
||||
|
|
||||
|
public void setTwoLvlRatio(Double twoLvlRatio) { |
||||
|
this.twoLvlRatio = twoLvlRatio; |
||||
|
} |
||||
|
|
||||
|
public Double getThreeLvlRatio() { |
||||
|
return threeLvlRatio; |
||||
|
} |
||||
|
|
||||
|
public void setThreeLvlRatio(Double threeLvlRatio) { |
||||
|
this.threeLvlRatio = threeLvlRatio; |
||||
|
} |
||||
|
|
||||
|
public Double getThreeMoreLvlRatio() { |
||||
|
return threeMoreLvlRatio; |
||||
|
} |
||||
|
|
||||
|
public void setThreeMoreLvlRatio(Double threeMoreLvlRatio) { |
||||
|
this.threeMoreLvlRatio = threeMoreLvlRatio; |
||||
|
} |
||||
|
} |
@ -0,0 +1,24 @@ |
|||||
|
package irbs.reports.jpa.support; |
||||
|
|
||||
|
import org.springframework.jdbc.core.RowMapper; |
||||
|
|
||||
|
import java.sql.ResultSet; |
||||
|
import java.sql.SQLException; |
||||
|
|
||||
|
public class RptRatingOverturnVoRowMapper implements RowMapper<RptRatingOverturnVo> { |
||||
|
@Override |
||||
|
public RptRatingOverturnVo mapRow(ResultSet rs, int rowNum) throws SQLException { |
||||
|
RptRatingOverturnVo vo = new RptRatingOverturnVo(); |
||||
|
vo.setRatingMonth(rs.getString("EFFECTIVE_MONTH")); |
||||
|
vo.setCustCnt(rs.getInt("CUST_CNT")); |
||||
|
vo.setOverturnCnt(rs.getInt("OVERTURN_CNT")); |
||||
|
vo.setOverturnRatio(rs.getDouble("OVERTURN_RATIO")); |
||||
|
vo.setUpOverturnRatio(rs.getDouble("UP_OVERTURN_RATIO")); |
||||
|
vo.setDownOverturnRatio(rs.getDouble("DOWN_OVERTURN_RATIO")); |
||||
|
vo.setOneLvlRatio(rs.getDouble("ONE_LVL_RATIO")); |
||||
|
vo.setTwoLvlRatio(rs.getDouble("TWO_LVL_RATIO")); |
||||
|
vo.setThreeLvlRatio(rs.getDouble("THREE_LVL_RATIO")); |
||||
|
vo.setThreeMoreLvlRatio(rs.getDouble("THREE_MORE_LVL_RATIO")); |
||||
|
return vo; |
||||
|
} |
||||
|
} |
@ -0,0 +1,12 @@ |
|||||
|
package irbs.reports.service; |
||||
|
|
||||
|
import irbs.reports.jpa.support.RptModelBinomialCheckVo; |
||||
|
import irbs.reports.service.support.QueryParams; |
||||
|
|
||||
|
import java.sql.SQLException; |
||||
|
import java.util.List; |
||||
|
|
||||
|
public interface RptModelBinomialCheckService { |
||||
|
|
||||
|
public List<RptModelBinomialCheckVo> query(QueryParams queryParams) throws SQLException; |
||||
|
} |
@ -0,0 +1,12 @@ |
|||||
|
package irbs.reports.service; |
||||
|
|
||||
|
import irbs.reports.jpa.support.RptModelMonitorDiffVo; |
||||
|
import irbs.reports.service.support.QueryParams; |
||||
|
|
||||
|
import java.sql.SQLException; |
||||
|
import java.util.List; |
||||
|
|
||||
|
public interface RptModelMonitorDiffService { |
||||
|
|
||||
|
public List<RptModelMonitorDiffVo> query(QueryParams queryParams) throws SQLException; |
||||
|
} |
@ -0,0 +1,12 @@ |
|||||
|
package irbs.reports.service; |
||||
|
|
||||
|
import irbs.reports.jpa.support.RptModelMonitorStableVo; |
||||
|
import irbs.reports.service.support.QueryParams; |
||||
|
|
||||
|
import java.sql.SQLException; |
||||
|
import java.util.List; |
||||
|
|
||||
|
public interface RptModelMonitorStableService { |
||||
|
|
||||
|
public List<RptModelMonitorStableVo> query(QueryParams queryParams) throws SQLException; |
||||
|
} |
@ -0,0 +1,12 @@ |
|||||
|
package irbs.reports.service; |
||||
|
|
||||
|
import irbs.reports.jpa.support.RptRatingAdjustVo; |
||||
|
import irbs.reports.service.support.QueryParams; |
||||
|
|
||||
|
import java.sql.SQLException; |
||||
|
import java.util.List; |
||||
|
|
||||
|
public interface RptRatingAdjustService { |
||||
|
|
||||
|
public List<RptRatingAdjustVo> query(QueryParams queryParams) throws SQLException; |
||||
|
} |
@ -0,0 +1,12 @@ |
|||||
|
package irbs.reports.service; |
||||
|
|
||||
|
import irbs.reports.jpa.support.RptRatingDistributionVo; |
||||
|
import irbs.reports.service.support.QueryParams; |
||||
|
|
||||
|
import java.sql.SQLException; |
||||
|
import java.util.List; |
||||
|
|
||||
|
public interface RptRatingDistributionService { |
||||
|
|
||||
|
public List<RptRatingDistributionVo> query(QueryParams queryParams) throws SQLException; |
||||
|
} |
@ -0,0 +1,12 @@ |
|||||
|
package irbs.reports.service; |
||||
|
|
||||
|
import irbs.reports.jpa.support.RptRatingIndustryFocusDistVo; |
||||
|
import irbs.reports.service.support.QueryParams; |
||||
|
|
||||
|
import java.sql.SQLException; |
||||
|
import java.util.List; |
||||
|
|
||||
|
public interface RptRatingIndustryFocusDistService { |
||||
|
|
||||
|
public List<RptRatingIndustryFocusDistVo> query(QueryParams queryParams) throws SQLException; |
||||
|
} |
@ -0,0 +1,12 @@ |
|||||
|
package irbs.reports.service; |
||||
|
|
||||
|
import irbs.reports.jpa.support.RptRatingLoanBalanceMigrateVo; |
||||
|
import irbs.reports.service.support.QueryParams; |
||||
|
|
||||
|
import java.sql.SQLException; |
||||
|
import java.util.List; |
||||
|
|
||||
|
public interface RptRatingLoanBalanceMigrateService { |
||||
|
|
||||
|
public List<RptRatingLoanBalanceMigrateVo> query(QueryParams queryParams) throws SQLException; |
||||
|
} |
@ -0,0 +1,12 @@ |
|||||
|
package irbs.reports.service; |
||||
|
|
||||
|
import irbs.reports.jpa.support.RptRatingModelFocusDistVo; |
||||
|
import irbs.reports.service.support.QueryParams; |
||||
|
|
||||
|
import java.sql.SQLException; |
||||
|
import java.util.List; |
||||
|
|
||||
|
public interface RptRatingModelFocusDistService { |
||||
|
|
||||
|
public List<RptRatingModelFocusDistVo> query(QueryParams queryParams) throws SQLException; |
||||
|
} |
@ -0,0 +1,12 @@ |
|||||
|
package irbs.reports.service; |
||||
|
|
||||
|
import irbs.reports.jpa.support.RptRatingNumberMigrateVo; |
||||
|
import irbs.reports.service.support.QueryParams; |
||||
|
|
||||
|
import java.sql.SQLException; |
||||
|
import java.util.List; |
||||
|
|
||||
|
public interface RptRatingNumberMigrateService { |
||||
|
|
||||
|
public List<RptRatingNumberMigrateVo> query(QueryParams queryParams) throws SQLException; |
||||
|
} |
@ -0,0 +1,12 @@ |
|||||
|
package irbs.reports.service; |
||||
|
|
||||
|
import irbs.reports.jpa.support.RptRatingOrgFocusDistVo; |
||||
|
import irbs.reports.service.support.QueryParams; |
||||
|
|
||||
|
import java.sql.SQLException; |
||||
|
import java.util.List; |
||||
|
|
||||
|
public interface RptRatingOrgFocusDistService { |
||||
|
|
||||
|
public List<RptRatingOrgFocusDistVo> query(QueryParams queryParams) throws SQLException; |
||||
|
} |
@ -0,0 +1,12 @@ |
|||||
|
package irbs.reports.service; |
||||
|
|
||||
|
import irbs.reports.jpa.support.RptRatingOverturnVo; |
||||
|
import irbs.reports.service.support.QueryParams; |
||||
|
|
||||
|
import java.sql.SQLException; |
||||
|
import java.util.List; |
||||
|
|
||||
|
public interface RptRatingOverturnService { |
||||
|
|
||||
|
public List<RptRatingOverturnVo> query(QueryParams queryParams) throws SQLException; |
||||
|
} |
@ -0,0 +1,57 @@ |
|||||
|
package irbs.reports.service.impl; |
||||
|
|
||||
|
import dm.jdbc.util.StringUtil; |
||||
|
import irbs.reports.jpa.entity.ReportSqlConfig; |
||||
|
import irbs.reports.jpa.repository.ReportSqlConfigRepository; |
||||
|
import irbs.reports.jpa.support.RptModelBinomialCheckVo; |
||||
|
import irbs.reports.jpa.support.RptModelBinomialCheckVoRowMapper; |
||||
|
import irbs.reports.jpa.support.RptModelMonitorDiffVo; |
||||
|
import irbs.reports.jpa.support.RptModelMonitorDiffVoRowMapper; |
||||
|
import irbs.reports.service.RptModelBinomialCheckService; |
||||
|
import irbs.reports.service.RptModelMonitorDiffService; |
||||
|
import irbs.reports.service.support.QueryParams; |
||||
|
import irbs.reports.utils.RptSqlFormat; |
||||
|
import org.springframework.beans.factory.annotation.Autowired; |
||||
|
import org.springframework.jdbc.core.JdbcTemplate; |
||||
|
import org.springframework.stereotype.Service; |
||||
|
|
||||
|
import java.sql.DatabaseMetaData; |
||||
|
import java.sql.SQLException; |
||||
|
import java.util.HashMap; |
||||
|
import java.util.List; |
||||
|
import java.util.Map; |
||||
|
|
||||
|
/** |
||||
|
* 模型区分能力监控报表 |
||||
|
*/ |
||||
|
@Service |
||||
|
public class RptModelBinomialCheckServiceImpl implements RptModelBinomialCheckService { |
||||
|
|
||||
|
@Autowired |
||||
|
private JdbcTemplate jdbcTemplate; |
||||
|
@Autowired |
||||
|
private ReportSqlConfigRepository reportSqlConfigRepository; |
||||
|
@Override |
||||
|
public List<RptModelBinomialCheckVo> query(QueryParams queryParams) throws SQLException { |
||||
|
//设置默认查询条件,默认查询当前所在月份的数据
|
||||
|
if(StringUtil.isEmpty(queryParams.getRatingMonth())){ |
||||
|
queryParams.setRatingMonth("2023-07-01"); |
||||
|
} |
||||
|
//默认WHM1模型
|
||||
|
if(StringUtil.isEmpty(queryParams.getModelCode())){ |
||||
|
queryParams.setModelCode("WHM8"); |
||||
|
} |
||||
|
DatabaseMetaData md = jdbcTemplate.getDataSource().getConnection().getMetaData(); |
||||
|
String dataBaseType = md.getDatabaseProductName(); |
||||
|
ReportSqlConfig reportSqlConfig = reportSqlConfigRepository.findByReportIdAndDataBaseType("rptModelMonitorBinomialCheck", dataBaseType); |
||||
|
if(reportSqlConfig != null){ |
||||
|
String sql = reportSqlConfig.getSqlText(); |
||||
|
Map<String, String> params = new HashMap<>(); |
||||
|
params.put("EFFECTIVE_MONTH", queryParams.getRatingMonth()); |
||||
|
params.put("MODEL_CODE", queryParams.getModelCode()); |
||||
|
sql = RptSqlFormat.format(sql, params); |
||||
|
return jdbcTemplate.query(sql, new RptModelBinomialCheckVoRowMapper()); |
||||
|
} |
||||
|
return null; |
||||
|
} |
||||
|
} |
@ -0,0 +1,62 @@ |
|||||
|
package irbs.reports.service.impl; |
||||
|
|
||||
|
import dm.jdbc.util.StringUtil; |
||||
|
import io.sc.platform.core.util.DateUtil; |
||||
|
import irbs.reports.jpa.entity.ReportSqlConfig; |
||||
|
import irbs.reports.jpa.repository.ReportSqlConfigRepository; |
||||
|
import irbs.reports.jpa.support.RptModelMonitorDiffVo; |
||||
|
import irbs.reports.jpa.support.RptModelMonitorDiffVoRowMapper; |
||||
|
import irbs.reports.jpa.support.RptRatingLoanBalanceMigrateVoRowMapper; |
||||
|
import irbs.reports.service.RptModelMonitorDiffService; |
||||
|
import irbs.reports.service.support.QueryParams; |
||||
|
import irbs.reports.utils.RptSqlFormat; |
||||
|
import org.springframework.beans.factory.annotation.Autowired; |
||||
|
import org.springframework.jdbc.core.JdbcTemplate; |
||||
|
import org.springframework.stereotype.Service; |
||||
|
|
||||
|
import java.sql.DatabaseMetaData; |
||||
|
import java.sql.SQLException; |
||||
|
import java.util.Date; |
||||
|
import java.util.HashMap; |
||||
|
import java.util.List; |
||||
|
import java.util.Map; |
||||
|
|
||||
|
/** |
||||
|
* 模型区分能力监控报表 |
||||
|
*/ |
||||
|
@Service |
||||
|
public class RptModelMonitorDiffServiceImpl implements RptModelMonitorDiffService { |
||||
|
|
||||
|
@Autowired |
||||
|
private JdbcTemplate jdbcTemplate; |
||||
|
@Autowired |
||||
|
private ReportSqlConfigRepository reportSqlConfigRepository; |
||||
|
@Override |
||||
|
public List<RptModelMonitorDiffVo> query(QueryParams queryParams) throws SQLException { |
||||
|
//设置默认查询条件,默认查询当前所在月份的数据
|
||||
|
if(StringUtil.isEmpty(queryParams.getRatingMonth())){ |
||||
|
queryParams.setRatingMonth("2023-07-01"); |
||||
|
} |
||||
|
//默认报告期为一年
|
||||
|
if(StringUtil.isEmpty(queryParams.getYearPeriod())){ |
||||
|
queryParams.setYearPeriod("1"); |
||||
|
} |
||||
|
//默认WHM1模型
|
||||
|
if(StringUtil.isEmpty(queryParams.getModelCode())){ |
||||
|
queryParams.setModelCode("WHM18"); |
||||
|
} |
||||
|
DatabaseMetaData md = jdbcTemplate.getDataSource().getConnection().getMetaData(); |
||||
|
String dataBaseType = md.getDatabaseProductName(); |
||||
|
ReportSqlConfig reportSqlConfig = reportSqlConfigRepository.findByReportIdAndDataBaseType("rptModelMonitorDiff", dataBaseType); |
||||
|
if(reportSqlConfig != null){ |
||||
|
String sql = reportSqlConfig.getSqlText(); |
||||
|
Map<String, String> params = new HashMap<>(); |
||||
|
params.put("EFFECTIVE_MONTH", queryParams.getRatingMonth()); |
||||
|
params.put("YEAR_PERIOD", queryParams.getYearPeriod()); |
||||
|
params.put("MODEL_CODE", queryParams.getModelCode()); |
||||
|
sql = RptSqlFormat.format(sql, params); |
||||
|
return jdbcTemplate.query(sql, new RptModelMonitorDiffVoRowMapper()); |
||||
|
} |
||||
|
return null; |
||||
|
} |
||||
|
} |
@ -0,0 +1,57 @@ |
|||||
|
package irbs.reports.service.impl; |
||||
|
|
||||
|
import dm.jdbc.util.StringUtil; |
||||
|
import io.sc.platform.core.util.DateUtil; |
||||
|
import irbs.reports.jpa.entity.ReportSqlConfig; |
||||
|
import irbs.reports.jpa.repository.ReportSqlConfigRepository; |
||||
|
import irbs.reports.jpa.support.RptModelMonitorStableVo; |
||||
|
import irbs.reports.jpa.support.RptModelMonitorStableVoRowMapper; |
||||
|
import irbs.reports.service.RptModelMonitorStableService; |
||||
|
import irbs.reports.service.support.QueryParams; |
||||
|
import irbs.reports.utils.RptSqlFormat; |
||||
|
import org.springframework.beans.factory.annotation.Autowired; |
||||
|
import org.springframework.jdbc.core.JdbcTemplate; |
||||
|
import org.springframework.stereotype.Service; |
||||
|
|
||||
|
import java.sql.DatabaseMetaData; |
||||
|
import java.sql.SQLException; |
||||
|
import java.util.Date; |
||||
|
import java.util.HashMap; |
||||
|
import java.util.List; |
||||
|
import java.util.Map; |
||||
|
|
||||
|
/** |
||||
|
* 模型区分能力监控报表 |
||||
|
*/ |
||||
|
@Service |
||||
|
public class RptModelMonitorStableServiceImpl implements RptModelMonitorStableService { |
||||
|
|
||||
|
@Autowired |
||||
|
private JdbcTemplate jdbcTemplate; |
||||
|
@Autowired |
||||
|
private ReportSqlConfigRepository reportSqlConfigRepository; |
||||
|
@Override |
||||
|
public List<RptModelMonitorStableVo> query(QueryParams queryParams) throws SQLException { |
||||
|
//设置默认查询条件,默认查询当前所在月份的数据
|
||||
|
if(StringUtil.isEmpty(queryParams.getRatingMonth())){ |
||||
|
queryParams.setRatingMonth("2023-07-01"); |
||||
|
} |
||||
|
//默认WHM1模型
|
||||
|
if(StringUtil.isEmpty(queryParams.getModelCode())){ |
||||
|
queryParams.setModelCode("WHM18"); |
||||
|
} |
||||
|
DatabaseMetaData md = jdbcTemplate.getDataSource().getConnection().getMetaData(); |
||||
|
String dataBaseType = md.getDatabaseProductName(); |
||||
|
ReportSqlConfig reportSqlConfig = reportSqlConfigRepository.findByReportIdAndDataBaseType("rptModelMonitorStable", dataBaseType); |
||||
|
if(reportSqlConfig != null){ |
||||
|
String sql = reportSqlConfig.getSqlText(); |
||||
|
Map<String, String> params = new HashMap<>(); |
||||
|
params.put("EFFECTIVE_MONTH", queryParams.getRatingMonth()); |
||||
|
params.put("YEAR_PERIOD", queryParams.getYearPeriod()); |
||||
|
params.put("MODEL_CODE", queryParams.getModelCode()); |
||||
|
sql = RptSqlFormat.format(sql, params); |
||||
|
return jdbcTemplate.query(sql, new RptModelMonitorStableVoRowMapper()); |
||||
|
} |
||||
|
return null; |
||||
|
} |
||||
|
} |
@ -0,0 +1,54 @@ |
|||||
|
package irbs.reports.service.impl; |
||||
|
|
||||
|
import dm.jdbc.util.StringUtil; |
||||
|
import irbs.reports.jpa.entity.ReportSqlConfig; |
||||
|
import irbs.reports.jpa.repository.ReportSqlConfigRepository; |
||||
|
import irbs.reports.jpa.support.RptRatingAdjustVo; |
||||
|
import irbs.reports.jpa.support.RptRatingAdjustVoRowMapper; |
||||
|
import irbs.reports.jpa.support.RptRatingOverturnVo; |
||||
|
import irbs.reports.jpa.support.RptRatingOverturnVoRowMapper; |
||||
|
import irbs.reports.service.RptRatingAdjustService; |
||||
|
import irbs.reports.service.RptRatingOverturnService; |
||||
|
import irbs.reports.service.support.QueryParams; |
||||
|
import irbs.reports.utils.RptSqlFormat; |
||||
|
import org.springframework.beans.factory.annotation.Autowired; |
||||
|
import org.springframework.jdbc.core.JdbcTemplate; |
||||
|
import org.springframework.stereotype.Service; |
||||
|
|
||||
|
import java.sql.DatabaseMetaData; |
||||
|
import java.sql.SQLException; |
||||
|
import java.util.HashMap; |
||||
|
import java.util.List; |
||||
|
import java.util.Map; |
||||
|
|
||||
|
/** |
||||
|
* 模型区分能力监控报表 |
||||
|
*/ |
||||
|
@Service |
||||
|
public class RptRatingAdjustServiceImpl implements RptRatingAdjustService { |
||||
|
|
||||
|
@Autowired |
||||
|
private JdbcTemplate jdbcTemplate; |
||||
|
@Autowired |
||||
|
private ReportSqlConfigRepository reportSqlConfigRepository; |
||||
|
@Override |
||||
|
public List<RptRatingAdjustVo> query(QueryParams queryParams) throws SQLException { |
||||
|
//设置默认查询条件,默认查询当前所在月份的数据
|
||||
|
if(StringUtil.isEmpty(queryParams.getRatingMonth())){ |
||||
|
queryParams.setRatingMonth("2023-07-01"); |
||||
|
} |
||||
|
DatabaseMetaData md = jdbcTemplate.getDataSource().getConnection().getMetaData(); |
||||
|
String dataBaseType = md.getDatabaseProductName(); |
||||
|
ReportSqlConfig reportSqlConfig = reportSqlConfigRepository.findByReportIdAndDataBaseType("rptRatingAdjust", dataBaseType); |
||||
|
if(reportSqlConfig != null){ |
||||
|
String sql = reportSqlConfig.getSqlText(); |
||||
|
Map<String, String> params = new HashMap<>(); |
||||
|
params.put("EFFECTIVE_MONTH", queryParams.getRatingMonth()); |
||||
|
params.put("MANAGER_ORG_CODE", queryParams.getManagerOrgCode()); |
||||
|
params.put("MODEL_CODE", queryParams.getModelCode()); |
||||
|
sql = RptSqlFormat.format(sql, params); |
||||
|
return jdbcTemplate.query(sql, new RptRatingAdjustVoRowMapper()); |
||||
|
} |
||||
|
return null; |
||||
|
} |
||||
|
} |
@ -0,0 +1,54 @@ |
|||||
|
package irbs.reports.service.impl; |
||||
|
|
||||
|
import dm.jdbc.util.StringUtil; |
||||
|
import io.sc.platform.core.util.DateUtil; |
||||
|
import irbs.reports.jpa.entity.ReportSqlConfig; |
||||
|
import irbs.reports.jpa.repository.ReportSqlConfigRepository; |
||||
|
import irbs.reports.jpa.support.RptRatingDistributionVo; |
||||
|
import irbs.reports.jpa.support.RptRatingDistributionVoRowMapper; |
||||
|
import irbs.reports.service.RptRatingDistributionService; |
||||
|
import irbs.reports.service.support.QueryParams; |
||||
|
import irbs.reports.utils.RptSqlFormat; |
||||
|
import org.springframework.beans.factory.annotation.Autowired; |
||||
|
import org.springframework.jdbc.core.JdbcTemplate; |
||||
|
import org.springframework.stereotype.Service; |
||||
|
|
||||
|
import java.sql.DatabaseMetaData; |
||||
|
import java.sql.SQLException; |
||||
|
import java.text.MessageFormat; |
||||
|
import java.util.Date; |
||||
|
import java.util.HashMap; |
||||
|
import java.util.List; |
||||
|
import java.util.Map; |
||||
|
|
||||
|
/** |
||||
|
* 评级分布情况 |
||||
|
*/ |
||||
|
@Service |
||||
|
public class RptRatingDistributionServiceImpl implements RptRatingDistributionService { |
||||
|
|
||||
|
@Autowired |
||||
|
private JdbcTemplate jdbcTemplate; |
||||
|
@Autowired |
||||
|
private ReportSqlConfigRepository reportSqlConfigRepository; |
||||
|
@Override |
||||
|
public List<RptRatingDistributionVo> query(QueryParams queryParams) throws SQLException { |
||||
|
//设置默认查询条件,默认查询当前所在月份的数据
|
||||
|
if(StringUtil.isEmpty(queryParams.getRatingMonth())){ |
||||
|
queryParams.setRatingMonth("2023-07-01"); |
||||
|
} |
||||
|
DatabaseMetaData md = jdbcTemplate.getDataSource().getConnection().getMetaData(); |
||||
|
String dataBaseType = md.getDatabaseProductName(); |
||||
|
ReportSqlConfig reportSqlConfig = reportSqlConfigRepository.findByReportIdAndDataBaseType("rptRatingDistribution", dataBaseType); |
||||
|
if(reportSqlConfig != null){ |
||||
|
String sql = reportSqlConfig.getSqlText(); |
||||
|
Map<String, String> params = new HashMap<>(); |
||||
|
params.put("EFFECTIVE_MONTH", queryParams.getRatingMonth()); |
||||
|
params.put("MODEL_CODE", queryParams.getModelCode()); |
||||
|
params.put("MANAGER_ORG_CODE", queryParams.getManagerOrgCode()); |
||||
|
sql = RptSqlFormat.format(sql, params); |
||||
|
return jdbcTemplate.query(sql, new RptRatingDistributionVoRowMapper()); |
||||
|
} |
||||
|
return null; |
||||
|
} |
||||
|
} |
@ -0,0 +1,53 @@ |
|||||
|
package irbs.reports.service.impl; |
||||
|
|
||||
|
import dm.jdbc.util.StringUtil; |
||||
|
import io.sc.platform.core.util.DateUtil; |
||||
|
import irbs.reports.jpa.entity.ReportSqlConfig; |
||||
|
import irbs.reports.jpa.repository.ReportSqlConfigRepository; |
||||
|
import irbs.reports.jpa.support.RptRatingIndustryFocusDistVo; |
||||
|
import irbs.reports.jpa.support.RptRatingIndustryFocusDistVoRowMapper; |
||||
|
import irbs.reports.service.RptRatingIndustryFocusDistService; |
||||
|
import irbs.reports.service.support.QueryParams; |
||||
|
import irbs.reports.utils.RptSqlFormat; |
||||
|
import org.springframework.beans.factory.annotation.Autowired; |
||||
|
import org.springframework.jdbc.core.JdbcTemplate; |
||||
|
import org.springframework.stereotype.Service; |
||||
|
|
||||
|
import java.sql.DatabaseMetaData; |
||||
|
import java.sql.SQLException; |
||||
|
import java.util.Date; |
||||
|
import java.util.HashMap; |
||||
|
import java.util.List; |
||||
|
import java.util.Map; |
||||
|
|
||||
|
/** |
||||
|
* 评级分布情况 |
||||
|
*/ |
||||
|
@Service |
||||
|
public class RptRatingIndustryFocusDistServiceImpl implements RptRatingIndustryFocusDistService { |
||||
|
|
||||
|
@Autowired |
||||
|
private JdbcTemplate jdbcTemplate; |
||||
|
@Autowired |
||||
|
private ReportSqlConfigRepository reportSqlConfigRepository; |
||||
|
@Override |
||||
|
public List<RptRatingIndustryFocusDistVo> query(QueryParams queryParams) throws SQLException { |
||||
|
//设置默认查询条件,默认查询当前所在月份的数据
|
||||
|
if(StringUtil.isEmpty(queryParams.getRatingMonth())){ |
||||
|
queryParams.setRatingMonth("2023-07-01"); |
||||
|
} |
||||
|
DatabaseMetaData md = jdbcTemplate.getDataSource().getConnection().getMetaData(); |
||||
|
String dataBaseType = md.getDatabaseProductName(); |
||||
|
ReportSqlConfig reportSqlConfig = reportSqlConfigRepository.findByReportIdAndDataBaseType("rptRatingIndustryFocusDist", dataBaseType); |
||||
|
if(reportSqlConfig != null){ |
||||
|
String sql = reportSqlConfig.getSqlText(); |
||||
|
Map<String, String> params = new HashMap<>(); |
||||
|
params.put("EFFECTIVE_MONTH", queryParams.getRatingMonth()); |
||||
|
params.put("MODEL_CODE", queryParams.getModelCode()); |
||||
|
params.put("MANAGER_ORG_CODE", queryParams.getManagerOrgCode()); |
||||
|
sql = RptSqlFormat.format(sql, params); |
||||
|
return jdbcTemplate.query(sql, new RptRatingIndustryFocusDistVoRowMapper()); |
||||
|
} |
||||
|
return null; |
||||
|
} |
||||
|
} |
@ -0,0 +1,54 @@ |
|||||
|
package irbs.reports.service.impl; |
||||
|
|
||||
|
import dm.jdbc.util.StringUtil; |
||||
|
import io.sc.platform.core.util.DateUtil; |
||||
|
import irbs.reports.jpa.entity.ReportSqlConfig; |
||||
|
import irbs.reports.jpa.repository.ReportSqlConfigRepository; |
||||
|
import irbs.reports.jpa.support.RptRatingLoanBalanceMigrateVo; |
||||
|
import irbs.reports.jpa.support.RptRatingLoanBalanceMigrateVoRowMapper; |
||||
|
import irbs.reports.jpa.support.RptRatingNumberMigrateVoRowMapper; |
||||
|
import irbs.reports.service.RptRatingLoanBalanceMigrateService; |
||||
|
import irbs.reports.service.support.QueryParams; |
||||
|
import irbs.reports.utils.RptSqlFormat; |
||||
|
import org.springframework.beans.factory.annotation.Autowired; |
||||
|
import org.springframework.jdbc.core.JdbcTemplate; |
||||
|
import org.springframework.stereotype.Service; |
||||
|
|
||||
|
import java.sql.DatabaseMetaData; |
||||
|
import java.sql.SQLException; |
||||
|
import java.util.Date; |
||||
|
import java.util.HashMap; |
||||
|
import java.util.List; |
||||
|
import java.util.Map; |
||||
|
|
||||
|
/** |
||||
|
* 评级分布情况 |
||||
|
*/ |
||||
|
@Service |
||||
|
public class RptRatingLoanBalanceMigrateServiceImpl implements RptRatingLoanBalanceMigrateService { |
||||
|
|
||||
|
@Autowired |
||||
|
private JdbcTemplate jdbcTemplate; |
||||
|
@Autowired |
||||
|
private ReportSqlConfigRepository reportSqlConfigRepository; |
||||
|
@Override |
||||
|
public List<RptRatingLoanBalanceMigrateVo> query(QueryParams queryParams) throws SQLException { |
||||
|
//设置默认查询条件,默认查询当前所在月份的数据
|
||||
|
if(StringUtil.isEmpty(queryParams.getRatingMonth())){ |
||||
|
queryParams.setRatingMonth("2023-07-01"); |
||||
|
} |
||||
|
DatabaseMetaData md = jdbcTemplate.getDataSource().getConnection().getMetaData(); |
||||
|
String dataBaseType = md.getDatabaseProductName(); |
||||
|
ReportSqlConfig reportSqlConfig = reportSqlConfigRepository.findByReportIdAndDataBaseType("rptRatingLoanBalanceMigrate", dataBaseType); |
||||
|
if(reportSqlConfig != null){ |
||||
|
String sql = reportSqlConfig.getSqlText(); |
||||
|
Map<String, String> params = new HashMap<>(); |
||||
|
params.put("EFFECTIVE_MONTH", queryParams.getRatingMonth()); |
||||
|
params.put("MODEL_CODE", queryParams.getModelCode()); |
||||
|
params.put("MANAGER_ORG_CODE", queryParams.getManagerOrgCode()); |
||||
|
sql = RptSqlFormat.format(sql, params); |
||||
|
return jdbcTemplate.query(sql, new RptRatingLoanBalanceMigrateVoRowMapper()); |
||||
|
} |
||||
|
return null; |
||||
|
} |
||||
|
} |
@ -0,0 +1,53 @@ |
|||||
|
package irbs.reports.service.impl; |
||||
|
|
||||
|
import dm.jdbc.util.StringUtil; |
||||
|
import io.sc.platform.core.util.DateUtil; |
||||
|
import irbs.reports.jpa.entity.ReportSqlConfig; |
||||
|
import irbs.reports.jpa.repository.ReportSqlConfigRepository; |
||||
|
import irbs.reports.jpa.support.RptRatingDistributionVoRowMapper; |
||||
|
import irbs.reports.jpa.support.RptRatingModelFocusDistVo; |
||||
|
import irbs.reports.jpa.support.RptRatingModelFocusDistVoRowMapper; |
||||
|
import irbs.reports.service.RptRatingModelFocusDistService; |
||||
|
import irbs.reports.service.support.QueryParams; |
||||
|
import irbs.reports.utils.RptSqlFormat; |
||||
|
import org.springframework.beans.factory.annotation.Autowired; |
||||
|
import org.springframework.jdbc.core.JdbcTemplate; |
||||
|
import org.springframework.stereotype.Service; |
||||
|
|
||||
|
import java.sql.DatabaseMetaData; |
||||
|
import java.sql.SQLException; |
||||
|
import java.util.Date; |
||||
|
import java.util.HashMap; |
||||
|
import java.util.List; |
||||
|
import java.util.Map; |
||||
|
|
||||
|
/** |
||||
|
* 评级分布情况 |
||||
|
*/ |
||||
|
@Service |
||||
|
public class RptRatingModelFocusDistServiceImpl implements RptRatingModelFocusDistService { |
||||
|
|
||||
|
@Autowired |
||||
|
private JdbcTemplate jdbcTemplate; |
||||
|
@Autowired |
||||
|
private ReportSqlConfigRepository reportSqlConfigRepository; |
||||
|
@Override |
||||
|
public List<RptRatingModelFocusDistVo> query(QueryParams queryParams) throws SQLException { |
||||
|
//设置默认查询条件,默认查询当前所在月份的数据
|
||||
|
if(StringUtil.isEmpty(queryParams.getRatingMonth())){ |
||||
|
queryParams.setRatingMonth("2023-07-01"); |
||||
|
} |
||||
|
DatabaseMetaData md = jdbcTemplate.getDataSource().getConnection().getMetaData(); |
||||
|
String dataBaseType = md.getDatabaseProductName(); |
||||
|
ReportSqlConfig reportSqlConfig = reportSqlConfigRepository.findByReportIdAndDataBaseType("rptRatingModelFocusDist", dataBaseType); |
||||
|
if(reportSqlConfig != null){ |
||||
|
String sql = reportSqlConfig.getSqlText(); |
||||
|
Map<String, String> params = new HashMap<>(); |
||||
|
params.put("EFFECTIVE_MONTH", queryParams.getRatingMonth()); |
||||
|
params.put("MANAGER_ORG_CODE", queryParams.getManagerOrgCode()); |
||||
|
sql = RptSqlFormat.format(sql, params); |
||||
|
return jdbcTemplate.query(sql, new RptRatingModelFocusDistVoRowMapper()); |
||||
|
} |
||||
|
return null; |
||||
|
} |
||||
|
} |
@ -0,0 +1,53 @@ |
|||||
|
package irbs.reports.service.impl; |
||||
|
|
||||
|
import dm.jdbc.util.StringUtil; |
||||
|
import io.sc.platform.core.util.DateUtil; |
||||
|
import irbs.reports.jpa.entity.ReportSqlConfig; |
||||
|
import irbs.reports.jpa.repository.ReportSqlConfigRepository; |
||||
|
import irbs.reports.jpa.support.RptRatingNumberMigrateVo; |
||||
|
import irbs.reports.jpa.support.RptRatingNumberMigrateVoRowMapper; |
||||
|
import irbs.reports.service.RptRatingNumberMigrateService; |
||||
|
import irbs.reports.service.support.QueryParams; |
||||
|
import irbs.reports.utils.RptSqlFormat; |
||||
|
import org.springframework.beans.factory.annotation.Autowired; |
||||
|
import org.springframework.jdbc.core.JdbcTemplate; |
||||
|
import org.springframework.stereotype.Service; |
||||
|
|
||||
|
import java.sql.DatabaseMetaData; |
||||
|
import java.sql.SQLException; |
||||
|
import java.util.Date; |
||||
|
import java.util.HashMap; |
||||
|
import java.util.List; |
||||
|
import java.util.Map; |
||||
|
|
||||
|
/** |
||||
|
* 评级分布情况 |
||||
|
*/ |
||||
|
@Service |
||||
|
public class RptRatingNumberMigrateServiceImpl implements RptRatingNumberMigrateService { |
||||
|
|
||||
|
@Autowired |
||||
|
private JdbcTemplate jdbcTemplate; |
||||
|
@Autowired |
||||
|
private ReportSqlConfigRepository reportSqlConfigRepository; |
||||
|
@Override |
||||
|
public List<RptRatingNumberMigrateVo> query(QueryParams queryParams) throws SQLException { |
||||
|
//设置默认查询条件,默认查询当前所在月份的数据
|
||||
|
if(StringUtil.isEmpty(queryParams.getRatingMonth())){ |
||||
|
queryParams.setRatingMonth("2023-07-01"); |
||||
|
} |
||||
|
DatabaseMetaData md = jdbcTemplate.getDataSource().getConnection().getMetaData(); |
||||
|
String dataBaseType = md.getDatabaseProductName(); |
||||
|
ReportSqlConfig reportSqlConfig = reportSqlConfigRepository.findByReportIdAndDataBaseType("rptRatingNumberMigrate", dataBaseType); |
||||
|
if(reportSqlConfig != null){ |
||||
|
String sql = reportSqlConfig.getSqlText(); |
||||
|
Map<String, String> params = new HashMap<>(); |
||||
|
params.put("EFFECTIVE_MONTH", queryParams.getRatingMonth()); |
||||
|
params.put("MODEL_CODE", queryParams.getModelCode()); |
||||
|
params.put("MANAGER_ORG_CODE", queryParams.getManagerOrgCode()); |
||||
|
sql = RptSqlFormat.format(sql, params); |
||||
|
return jdbcTemplate.query(sql, new RptRatingNumberMigrateVoRowMapper()); |
||||
|
} |
||||
|
return null; |
||||
|
} |
||||
|
} |
@ -0,0 +1,52 @@ |
|||||
|
package irbs.reports.service.impl; |
||||
|
|
||||
|
import dm.jdbc.util.StringUtil; |
||||
|
import io.sc.platform.core.util.DateUtil; |
||||
|
import irbs.reports.jpa.entity.ReportSqlConfig; |
||||
|
import irbs.reports.jpa.repository.ReportSqlConfigRepository; |
||||
|
import irbs.reports.jpa.support.RptRatingOrgFocusDistVo; |
||||
|
import irbs.reports.jpa.support.RptRatingOrgFocusDistVoRowMapper; |
||||
|
import irbs.reports.service.RptRatingOrgFocusDistService; |
||||
|
import irbs.reports.service.support.QueryParams; |
||||
|
import irbs.reports.utils.RptSqlFormat; |
||||
|
import org.springframework.beans.factory.annotation.Autowired; |
||||
|
import org.springframework.jdbc.core.JdbcTemplate; |
||||
|
import org.springframework.stereotype.Service; |
||||
|
|
||||
|
import java.sql.DatabaseMetaData; |
||||
|
import java.sql.SQLException; |
||||
|
import java.util.Date; |
||||
|
import java.util.HashMap; |
||||
|
import java.util.List; |
||||
|
import java.util.Map; |
||||
|
|
||||
|
/** |
||||
|
* 评级分布情况 |
||||
|
*/ |
||||
|
@Service |
||||
|
public class RptRatingOrgFocusDistServiceImpl implements RptRatingOrgFocusDistService { |
||||
|
|
||||
|
@Autowired |
||||
|
private JdbcTemplate jdbcTemplate; |
||||
|
@Autowired |
||||
|
private ReportSqlConfigRepository reportSqlConfigRepository; |
||||
|
@Override |
||||
|
public List<RptRatingOrgFocusDistVo> query(QueryParams queryParams) throws SQLException { |
||||
|
//设置默认查询条件,默认查询当前所在月份的数据
|
||||
|
if(StringUtil.isEmpty(queryParams.getRatingMonth())){ |
||||
|
queryParams.setRatingMonth("2023-07-01"); |
||||
|
} |
||||
|
DatabaseMetaData md = jdbcTemplate.getDataSource().getConnection().getMetaData(); |
||||
|
String dataBaseType = md.getDatabaseProductName(); |
||||
|
ReportSqlConfig reportSqlConfig = reportSqlConfigRepository.findByReportIdAndDataBaseType("rptRatingOrgFocusDist", dataBaseType); |
||||
|
if(reportSqlConfig != null){ |
||||
|
String sql = reportSqlConfig.getSqlText(); |
||||
|
Map<String, String> params = new HashMap<>(); |
||||
|
params.put("EFFECTIVE_MONTH", queryParams.getRatingMonth()); |
||||
|
params.put("MODEL_CODE", queryParams.getModelCode()); |
||||
|
sql = RptSqlFormat.format(sql, params); |
||||
|
return jdbcTemplate.query(sql, new RptRatingOrgFocusDistVoRowMapper()); |
||||
|
} |
||||
|
return null; |
||||
|
} |
||||
|
} |
@ -0,0 +1,56 @@ |
|||||
|
package irbs.reports.service.impl; |
||||
|
|
||||
|
import dm.jdbc.util.StringUtil; |
||||
|
import io.sc.platform.core.util.DateUtil; |
||||
|
import irbs.reports.jpa.entity.ReportSqlConfig; |
||||
|
import irbs.reports.jpa.repository.ReportSqlConfigRepository; |
||||
|
import irbs.reports.jpa.support.RptModelMonitorDiffVo; |
||||
|
import irbs.reports.jpa.support.RptModelMonitorDiffVoRowMapper; |
||||
|
import irbs.reports.jpa.support.RptRatingOverturnVo; |
||||
|
import irbs.reports.jpa.support.RptRatingOverturnVoRowMapper; |
||||
|
import irbs.reports.service.RptModelMonitorDiffService; |
||||
|
import irbs.reports.service.RptRatingOverturnService; |
||||
|
import irbs.reports.service.support.QueryParams; |
||||
|
import irbs.reports.utils.RptSqlFormat; |
||||
|
import org.springframework.beans.factory.annotation.Autowired; |
||||
|
import org.springframework.jdbc.core.JdbcTemplate; |
||||
|
import org.springframework.stereotype.Service; |
||||
|
|
||||
|
import java.sql.DatabaseMetaData; |
||||
|
import java.sql.SQLException; |
||||
|
import java.util.Date; |
||||
|
import java.util.HashMap; |
||||
|
import java.util.List; |
||||
|
import java.util.Map; |
||||
|
|
||||
|
/** |
||||
|
* 模型区分能力监控报表 |
||||
|
*/ |
||||
|
@Service |
||||
|
public class RptRatingOverturnServiceImpl implements RptRatingOverturnService { |
||||
|
|
||||
|
@Autowired |
||||
|
private JdbcTemplate jdbcTemplate; |
||||
|
@Autowired |
||||
|
private ReportSqlConfigRepository reportSqlConfigRepository; |
||||
|
@Override |
||||
|
public List<RptRatingOverturnVo> query(QueryParams queryParams) throws SQLException { |
||||
|
//设置默认查询条件,默认查询当前所在月份的数据
|
||||
|
if(StringUtil.isEmpty(queryParams.getRatingMonth())){ |
||||
|
queryParams.setRatingMonth("2023-07-01"); |
||||
|
} |
||||
|
DatabaseMetaData md = jdbcTemplate.getDataSource().getConnection().getMetaData(); |
||||
|
String dataBaseType = md.getDatabaseProductName(); |
||||
|
ReportSqlConfig reportSqlConfig = reportSqlConfigRepository.findByReportIdAndDataBaseType("rptRatingOverturn", dataBaseType); |
||||
|
if(reportSqlConfig != null){ |
||||
|
String sql = reportSqlConfig.getSqlText(); |
||||
|
Map<String, String> params = new HashMap<>(); |
||||
|
params.put("EFFECTIVE_MONTH", queryParams.getRatingMonth()); |
||||
|
params.put("MANAGER_ORG_CODE", queryParams.getManagerOrgCode()); |
||||
|
params.put("MODEL_CODE", queryParams.getModelCode()); |
||||
|
sql = RptSqlFormat.format(sql, params); |
||||
|
return jdbcTemplate.query(sql, new RptRatingOverturnVoRowMapper()); |
||||
|
} |
||||
|
return null; |
||||
|
} |
||||
|
} |
@ -0,0 +1,41 @@ |
|||||
|
package irbs.reports.service.support; |
||||
|
|
||||
|
public class QueryParams { |
||||
|
|
||||
|
private String ratingMonth; |
||||
|
private String yearPeriod; |
||||
|
private String modelCode; |
||||
|
private String managerOrgCode; |
||||
|
|
||||
|
public String getYearPeriod() { |
||||
|
return yearPeriod; |
||||
|
} |
||||
|
|
||||
|
public void setYearPeriod(String yearPeriod) { |
||||
|
this.yearPeriod = yearPeriod; |
||||
|
} |
||||
|
|
||||
|
public String getRatingMonth() { |
||||
|
return ratingMonth; |
||||
|
} |
||||
|
|
||||
|
public void setRatingMonth(String ratingMonth) { |
||||
|
this.ratingMonth = ratingMonth; |
||||
|
} |
||||
|
|
||||
|
public String getModelCode() { |
||||
|
return modelCode; |
||||
|
} |
||||
|
|
||||
|
public void setModelCode(String modelCode) { |
||||
|
this.modelCode = modelCode; |
||||
|
} |
||||
|
|
||||
|
public String getManagerOrgCode() { |
||||
|
return managerOrgCode; |
||||
|
} |
||||
|
|
||||
|
public void setManagerOrgCode(String managerOrgCode) { |
||||
|
this.managerOrgCode = managerOrgCode; |
||||
|
} |
||||
|
} |
@ -0,0 +1,36 @@ |
|||||
|
package irbs.reports.utils; |
||||
|
|
||||
|
import io.sc.platform.core.util.StringUtil; |
||||
|
|
||||
|
import java.util.Map; |
||||
|
|
||||
|
public class RptSqlFormat { |
||||
|
|
||||
|
public static String format(String sql, Map<String, String> params){ |
||||
|
if(params != null) { |
||||
|
for(String p : params.keySet()){ |
||||
|
if(StringUtil.isNullOrEmpty(params.get(p))){ |
||||
|
sql = replace(sql, p); |
||||
|
continue; |
||||
|
} |
||||
|
String c = "#" + p; |
||||
|
sql = sql.replaceAll(c, params.get(p)); |
||||
|
if(!StringUtil.isNullOrEmpty(params.get(p)) && sql.indexOf("<" + p + ">") != -1){ |
||||
|
sql = sql.replaceAll("<" + p + ">", "").replaceAll("</" + p + ">", ""); |
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
return sql; |
||||
|
} |
||||
|
|
||||
|
public static String replace(String sql, String code){ |
||||
|
if(sql.indexOf("<"+code+">") == -1){ |
||||
|
return sql; |
||||
|
} |
||||
|
sql = sql.substring(0, sql.indexOf("<"+code+">")) + sql.substring(sql.indexOf("</"+code+">")+code.length()+4); |
||||
|
if(sql.indexOf("<"+code+">") != -1){ |
||||
|
sql = replace(sql, code); |
||||
|
} |
||||
|
return sql; |
||||
|
} |
||||
|
} |
@ -0,0 +1,25 @@ |
|||||
|
/* |
||||
|
* 应用属性插件配置 |
||||
|
* 功能: 该插件配置为框架提供 application.properties 中的配置项, 这样可以让配置项分散到各个子模块中。 |
||||
|
* 使用说明: |
||||
|
* module: 配置项所属模块,通常为模块的名称 |
||||
|
* order: 配置项顺序 |
||||
|
* description: 配置项描述, 在 application.properties 文件中以注释体现 |
||||
|
* properties: 属性配置列表 |
||||
|
*/ |
||||
|
|
||||
|
/* 示例 */ |
||||
|
/* |
||||
|
[ |
||||
|
{ |
||||
|
"module" : "io.sc.platform.core", |
||||
|
"order" : 150, |
||||
|
"description": "application configuration", |
||||
|
"properties": [ |
||||
|
"application.audit-log-mode = none", |
||||
|
"#application.audit-log-mode = log", |
||||
|
"#application.audit-log-mode = database" |
||||
|
] |
||||
|
} |
||||
|
] |
||||
|
*/ |
@ -0,0 +1,16 @@ |
|||||
|
/* |
||||
|
* 自动组件扫描插件配置 |
||||
|
* 功能: 该插件配置为框架提供自动扫描组件的包名,配置的包名将会自动被 spring 进行扫描 |
||||
|
* 使用说明: |
||||
|
* includes: 包含自动扫描的包名列表 |
||||
|
* excludes: 排除自动扫描的包名列表 |
||||
|
* 注意: 当一个包名同时存在于 includes 和 excludes 中, excludes 优先, 即该包不会被自动扫描 |
||||
|
*/ |
||||
|
|
||||
|
{ |
||||
|
"includes":[ |
||||
|
"irbs.reports.controller", |
||||
|
"irbs.reports.service.impl" |
||||
|
], |
||||
|
"excludes":[] |
||||
|
} |
@ -0,0 +1,17 @@ |
|||||
|
/* |
||||
|
* 自动创建目录插件配置 |
||||
|
* 功能: 该插件配置为框架提供自动创建目录功能 |
||||
|
* 使用说明: |
||||
|
* name : 目录的名称, 开发者可通过 DirectoryManager.getInstance().getByName(name) 获取实际目录 |
||||
|
* path : 目录的相对路径,相对于应用 home 目录 |
||||
|
* autoCreate : 是否自动创建 |
||||
|
*/ |
||||
|
|
||||
|
/* 示例 */ |
||||
|
/* |
||||
|
[ |
||||
|
{"name":"dir.config" ,"path":"/config" ,"autoCreate":true}, |
||||
|
{"name":"dir.log" ,"path":"/logs" ,"autoCreate":true}, |
||||
|
{"name":"dir.work" ,"path":"/work" ,"autoCreate":true} |
||||
|
] |
||||
|
*/ |
Some files were not shown because too many files changed in this diff
Loading…
Reference in new issue