|
@@ -855,4 +855,248 @@ create table RWA_APM_BUS_RS_LEDGERGENERAL
|
|
|
EFF_DATE VARCHAR(60) comment '生效日',
|
|
|
DUE_DATE VARCHAR(60) comment '到期日',
|
|
|
primary key (CALCINDEX, LOAN_REFERENCE_NO, SUBJECT_CODES)
|
|
|
-) comment '总账科目计量结果表';
|
|
|
+) comment '总账科目计量结果表';
|
|
|
+
|
|
|
+
|
|
|
+-- 2025-03-22 更新脚本
|
|
|
+
|
|
|
+-- --------------------------
|
|
|
+-- TABLE structure for rmc_imput_suptaskconf_baseinfo
|
|
|
+-- --------------------------
|
|
|
+drop TABLE if exists rmc_imput_suptaskconf_baseinfo;
|
|
|
+create table if not exists rmc_imput_suptaskconf_baseinfo (
|
|
|
+ taskcode varchar(60) not null comment '任务编号',
|
|
|
+ tmpname varchar(300) comment '任务名称',
|
|
|
+ taskversion decimal(10,0) comment '任务版本号',
|
|
|
+ orgcode varchar(60) comment '负责机构',
|
|
|
+ account varchar(60) comment '首选负责人',
|
|
|
+ frequency varchar(60) comment '补录频率',
|
|
|
+ adjustment varchar(20) comment '天数调整',
|
|
|
+ ischeck varchar(20) comment '是否复核',
|
|
|
+ yesorno varchar(30) comment '是否有效 YESORNO',
|
|
|
+ primary key (taskcode)
|
|
|
+)comment='补录任务基本信息表';
|
|
|
+
|
|
|
+-- --------------------------
|
|
|
+-- TABLE structure for rmc_imput_suptaskconf_relatedinfo
|
|
|
+-- --------------------------
|
|
|
+drop TABLE if exists rmc_imput_suptaskconf_relatedinfo;
|
|
|
+create table if not exists rmc_imput_suptaskconf_relatedinfo (
|
|
|
+ taskcode varchar(60) not null comment '任务编号',
|
|
|
+ tmpcode varchar(60) not null comment '补录模板编号',
|
|
|
+ sqlcode text comment '初始化数据源',
|
|
|
+ remark varchar(600) comment '补录模板说明',
|
|
|
+ primary key (taskcode, tmpcode)
|
|
|
+)comment='补录任务数据相关表';
|
|
|
+
|
|
|
+-- --------------------------
|
|
|
+-- TABLE structure for rmc_imput_suptaskrun_bussinessdetail
|
|
|
+-- --------------------------
|
|
|
+drop TABLE if exists rmc_imput_suptaskrun_bussinessdetail;
|
|
|
+create table if not exists rmc_imput_suptaskrun_bussinessdetail (
|
|
|
+ taskbussinessid varchar(60) not null comment '任务实例编号',
|
|
|
+ taskCode varchar(60) not null comment '补录任务编号',
|
|
|
+ taskVersion decimal(10,0) not null comment '补录任务版本号',
|
|
|
+ tmpCode varchar(60) not null comment '补录模板编号',
|
|
|
+ tmpTableName varchar(300) comment '补录临时表',
|
|
|
+ tmpRemark varchar(60) comment '补录结果',
|
|
|
+ primary key (taskbussinessid, taskCode, taskVersion, tmpCode)
|
|
|
+)comment='补录任务中的数据实例表';
|
|
|
+
|
|
|
+-- --------------------------
|
|
|
+-- TABLE structure for rmc_imput_suptaskrun_bussinessflowinfo
|
|
|
+-- --------------------------
|
|
|
+drop TABLE if exists rmc_imput_suptaskrun_bussinessflowinfo;
|
|
|
+create table if not exists rmc_imput_suptaskrun_bussinessflowinfo (
|
|
|
+ taskbussinessid varchar(60) not null comment '任务实例编号',
|
|
|
+ flowbussinessid varchar(60) not null comment '流程实例编号',
|
|
|
+ flowid varchar(60) not null comment '流程编号',
|
|
|
+ Account varchar(30) comment '当前处理人',
|
|
|
+ orgcode varchar(30) comment '当前处理机构',
|
|
|
+ primary key (taskbussinessid, flowbussinessid, flowid)
|
|
|
+)comment='流程与补录任务实例关系表';
|
|
|
+
|
|
|
+
|
|
|
+-- --------------------------
|
|
|
+-- TABLE structure for rmc_imput_suptaskrun_bussinessinfo
|
|
|
+-- --------------------------
|
|
|
+drop TABLE if exists rmc_imput_suptaskrun_bussinessinfo;
|
|
|
+create table if not exists rmc_imput_suptaskrun_bussinessinfo (
|
|
|
+ taskbussinessid varchar(60) not null comment '任务实例编号',
|
|
|
+ taskCode varchar(60) not null comment '补录任务编号',
|
|
|
+ taskVersion decimal(10,0) not null comment '补录任务版本号',
|
|
|
+ taskStatus varchar(30) comment '补录任务状态',
|
|
|
+ taskStartDate varchar(10) comment '补录开始时间',
|
|
|
+ taskUpdateDate varchar(10) comment '更新时间',
|
|
|
+ taskCreatePerson varchar(60) comment '创建人',
|
|
|
+ taskUpdatePerson varchar(60) comment '更新人',
|
|
|
+ taskFirstPerson varchar(60) comment '补录人',
|
|
|
+ taskOrgcode varchar(60) comment '补录机构',
|
|
|
+ taskReviewedPerson varchar(60) comment '复核人',
|
|
|
+ remark varchar(300) comment '补录说明',
|
|
|
+ term varchar(60),
|
|
|
+ primary key (taskbussinessid, taskCode, taskVersion)
|
|
|
+)comment='补录任务实例表';
|
|
|
+
|
|
|
+-- --------------------------
|
|
|
+-- TABLE structure for rmc_imput_suptaskrun_tmprelas
|
|
|
+-- --------------------------
|
|
|
+drop TABLE if exists rmc_imput_suptaskrun_tmprelas;
|
|
|
+create table if not exists rmc_imput_suptaskrun_tmprelas (
|
|
|
+ taskbussinessid varchar(100) not null comment '补录任务实例号',
|
|
|
+ term varchar(60) not null comment '数据期次',
|
|
|
+ taskcode varchar(60) not null comment '补录任务编号',
|
|
|
+ tmpcode varchar(60) not null comment '模板编号',
|
|
|
+ primary key (taskbussinessid, tmpcode)
|
|
|
+)comment='补录任务实例的模板清单';
|
|
|
+
|
|
|
+-- --------------------------
|
|
|
+-- TABLE structure for rmc_imput_tmpconf_baseinfo
|
|
|
+-- --------------------------
|
|
|
+drop TABLE if exists rmc_imput_tmpconf_baseinfo;
|
|
|
+create table if not exists rmc_imput_tmpconf_baseinfo (
|
|
|
+ tmpcode varchar(60) not null comment '模板编号',
|
|
|
+ tmpname varchar(300) comment '模板名称',
|
|
|
+ tmptype varchar(30) comment '模板类型',
|
|
|
+ rowrange varchar(60) comment '行范围',
|
|
|
+ columnrange varchar(60) comment '列范围',
|
|
|
+ tmpfilename varchar(300) comment '文件名',
|
|
|
+ tmpfilecode varchar(60) comment '模板文件编号',
|
|
|
+ primary key (tmpcode)
|
|
|
+)comment='模板基本信息定义表';
|
|
|
+
|
|
|
+-- --------------------------
|
|
|
+-- TABLE structure for rmc_imput_tmpconf_fielddetails
|
|
|
+-- --------------------------
|
|
|
+drop TABLE if exists rmc_imput_tmpconf_fielddetails;
|
|
|
+create table if not exists rmc_imput_tmpconf_fielddetails (
|
|
|
+ tmpcode varchar(60) not null comment '模板编号',
|
|
|
+ tmpfieldcode varchar(60) not null comment '字段编号',
|
|
|
+ rowcoltype varchar(30) comment '行列类型',
|
|
|
+ filedrowrange varchar(60) comment '行范围',
|
|
|
+ filedcolumnrange varchar(60) comment '列范围',
|
|
|
+ filedcoltype varchar(60) comment '字段类型与长度',
|
|
|
+ remark varchar(300) comment '数据项说明',
|
|
|
+ yesorno varchar(30) comment '是否有效 YESORNO',
|
|
|
+ primary key (tmpcode, tmpfieldcode)
|
|
|
+)comment='模板字段详情定义表';
|
|
|
+
|
|
|
+
|
|
|
+-- --------------------------
|
|
|
+-- TABLE structure for rmc_imput_tmpconf_verificationrules
|
|
|
+-- --------------------------
|
|
|
+drop TABLE if exists rmc_imput_tmpconf_verificationrules;
|
|
|
+create table if not exists rmc_imput_tmpconf_verificationrules (
|
|
|
+ taskcode varchar(60) not null comment '任务编号',
|
|
|
+ tmpcode varchar(60) not null comment '模板编号',
|
|
|
+ tmpverificationcode varchar(60) comment '规则编号',
|
|
|
+ tmpverificationname varchar(300) comment '规则名称',
|
|
|
+ tmpverrowcoltype varchar(30) comment '行列类型',
|
|
|
+ vertimmer varchar(30) comment '模板验证时点',
|
|
|
+ tmpverrowrange varchar(60) comment '行范围',
|
|
|
+ tmpvercolumnrange varchar(60) comment '列范围',
|
|
|
+ checktype varchar(30) comment '约束方式',
|
|
|
+ datatype varchar(60) comment '数据类型',
|
|
|
+ excelformula varchar(2000) comment '约束公式',
|
|
|
+ sqlcode text comment '约束规则sql',
|
|
|
+ exceedtype varchar(30) comment '越界处理方式',
|
|
|
+ errormsgtmplate varchar(300) comment '提示信息模板'
|
|
|
+)comment='模板数据校验规则定义表';
|
|
|
+
|
|
|
+
|
|
|
+-- --------------------------
|
|
|
+-- TABLE structure for rmc_input_suptaskrun_baseinfo
|
|
|
+-- --------------------------
|
|
|
+drop TABLE if exists rmc_input_suptaskrun_baseinfo;
|
|
|
+create table if not exists rmc_input_suptaskrun_baseinfo (
|
|
|
+ taskbussinessid varchar(60) not null comment '任务实例编号',
|
|
|
+ taskCode varchar(60) not null comment '补录任务编号',
|
|
|
+ taskVersion decimal(10,0) not null comment '补录任务版本号',
|
|
|
+ indexcode varchar(60) not null comment '指标编号',
|
|
|
+ indexname varchar(300) comment '指标名称',
|
|
|
+ cpValue varchar(600),
|
|
|
+ baorfiChanges varchar(600) comment '指标变动原因简析',
|
|
|
+ oeorLevel varchar(60) comment '风险水平整体水平评价',
|
|
|
+ raftNextstage varchar(60) comment '下阶段风险研判',
|
|
|
+ deptcode varchar(200) not null comment '补录部门',
|
|
|
+ cpvalTypeName varchar(60),
|
|
|
+ dict varchar(60) comment '字段使用字典',
|
|
|
+ primary key (taskbussinessid, taskCode, taskVersion, indexcode, deptcode)
|
|
|
+)comment='页面补录指标数据实例表';
|
|
|
+
|
|
|
+-- --------------------------
|
|
|
+-- TABLE structure for rmc_input_tmpconf_baseinfo
|
|
|
+-- --------------------------
|
|
|
+drop TABLE if exists rmc_input_tmpconf_baseinfo;
|
|
|
+create table if not exists rmc_input_tmpconf_baseinfo (
|
|
|
+ indexcode varchar(60) not null comment '指标编号',
|
|
|
+ indexname varchar(300) comment '指标名称',
|
|
|
+ cpvalue varchar(600) comment '本期值',
|
|
|
+ baorfichanges varchar(600) comment '指标变动原因简析',
|
|
|
+ oeorlevel varchar(60) comment '风险水平整体水平评价',
|
|
|
+ raftnextstage varchar(60) comment '下阶段风险研判',
|
|
|
+ deptcode varchar(20) not null comment '补录部门',
|
|
|
+ cpvalTypeName varchar(60),
|
|
|
+ dict varchar(60) comment '字段使用字典',
|
|
|
+ primary key (indexcode, deptcode)
|
|
|
+)comment='页面补录模板基本信息定义表';
|
|
|
+
|
|
|
+-- --------------------------
|
|
|
+-- TABLE structure for sys_imput_suptaskconf_flowapproval
|
|
|
+-- --------------------------
|
|
|
+drop TABLE if exists sys_imput_suptaskconf_flowapproval;
|
|
|
+create table if not exists sys_imput_suptaskconf_flowapproval (
|
|
|
+ bussinessid varchar(100) not null comment '流程实例号',
|
|
|
+ account varchar(60) not null comment '审批人',
|
|
|
+ orgcode varchar(60) not null comment '审批机构',
|
|
|
+ approvalType varchar(60) not null comment '审批意见类型',
|
|
|
+ approvalRemark varchar(500) comment '审批意见',
|
|
|
+ primary key (bussinessid)
|
|
|
+)comment='流程与补录任务实例关系表';
|
|
|
+
|
|
|
+-- --------------------------
|
|
|
+-- TABLE structure for sys_imput_suptaskconf_submitflowdataexe
|
|
|
+-- --------------------------
|
|
|
+drop TABLE if exists sys_imput_suptaskconf_submitflowdataexe;
|
|
|
+create table if not exists sys_imput_suptaskconf_submitflowdataexe (
|
|
|
+ taskcode varchar(60) not null comment '任务编号',
|
|
|
+ tmpcode varchar(60) not null comment '模板编号',
|
|
|
+ val text not null comment '任务处理内容',
|
|
|
+ valType varchar(60) not null comment '任务处理类型 BEAN 为 处理类(暂不支持), SQL为当作SQL处理',
|
|
|
+ indexNum decimal(5,0) comment '执行顺序号'
|
|
|
+)comment='流程终审时,需要根据任务编号以及模板编号处理的程序';
|
|
|
+create index searchIndex on sys_imput_suptaskconf_submitflowdataexe (taskcode ASC, tmpcode ASC, indexNum ASC);
|
|
|
+
|
|
|
+
|
|
|
+-- --------------------------
|
|
|
+-- TABLE structure for sys_imput_suptaskrun_finaldata
|
|
|
+-- --------------------------
|
|
|
+drop TABLE if exists sys_imput_suptaskrun_finaldata;
|
|
|
+create table if not exists sys_imput_suptaskrun_finaldata (
|
|
|
+ taskbussinessid varchar(100) not null comment '流程实例号',
|
|
|
+ flowbussinessid varchar(100) not null comment '流程实例号',
|
|
|
+ taskcode varchar(60) not null comment '任务编号',
|
|
|
+ tmpcode varchar(60) not null comment '模板编号',
|
|
|
+ startDate varchar(60) not null comment '日期 yyyy-MM-dd',
|
|
|
+ term varchar(60) not null comment '期次',
|
|
|
+ termDT varchar(60) not null comment '日期长度的期次,通常为月份的最后一天',
|
|
|
+ orgcode varchar(60) not null comment '机构号',
|
|
|
+ indexId varchar(60) not null comment '指标编号',
|
|
|
+ dataStr varchar(60) comment '数据结果字符串',
|
|
|
+ dataType varchar(60) not null comment '数据类型 STRING,DOUBLE',
|
|
|
+ primary key (taskbussinessid, tmpcode, term, indexId, orgcode)
|
|
|
+)comment='流程终审时,从补录中间表数据结果';
|
|
|
+
|
|
|
+
|
|
|
+-- --------------------------
|
|
|
+-- TABLE structure for sys_task_all_execute
|
|
|
+-- --------------------------
|
|
|
+drop TABLE if exists sys_task_all_execute;
|
|
|
+create table if not exists sys_task_all_execute (
|
|
|
+ id varchar(100) not null comment '主键,没啥实际作用',
|
|
|
+ type_ varchar(60) not null comment '类型,主要用于区分执行类型,扩展用 INPUT 补录;',
|
|
|
+ index_ decimal(10,0) not null comment '执行序号',
|
|
|
+ val text not null comment '执行任务的标记, SQL 就是执行的SQL, BEAN 就是要执行任务的Service 一定是通过 @Service 标记的才可以',
|
|
|
+ valtype varchar(60) not null comment '执行任务的类型 SQL 或 BEAN 扩展请继承 TaskAllExecuteMain',
|
|
|
+ primary key (id)
|
|
|
+)comment='补录全部完成的任务执行表';
|