CREATE TABLE REC_LOAN_LAST."bth_job_rundata_record" (
	"id" VARCHAR(64) NOT NULL,
	"biz_date" VARCHAR(12),
	"job_info" VARCHAR(256),
	"tmp_id" VARCHAR(80),

	"create_date" DATE,
	"create_time" TIMESTAMP,
	CONSTRAINT bth_job_rundata_record_id PRIMARY KEY ("id")
);
CREATE INDEX bth_job_rundata_record_bizdate_job_info ON REC_LOAN_LAST."bth_job_rundata_record" ("biz_date","job_info","tmp_id");



COMMENT ON TABLE  REC_LOAN_LAST.bth_job_rundata_record IS '批量任务数据处理记录';
COMMENT ON COLUMN REC_LOAN_LAST.bth_job_rundata_record.job_info IS 'job明细';
COMMENT ON COLUMN REC_LOAN_LAST.bth_job_rundata_record.tmp_id IS '临时id或者借据期次';



CREATE TABLE REC_LOAN_LAST."bth_finish_send_msg_record" (
	"id" VARCHAR(64) NOT NULL,
	"biz_date" VARCHAR(12),
	"FINISH_TYPE" VARCHAR(256),
	"FINISH_TYPE_NAME" VARCHAR(256),
	"FINISH_STATUS" VARCHAR(100),
	"send_type" VARCHAR(10),

	"create_date" DATE,
	"create_time" TIMESTAMP,
	CONSTRAINT bth_finish_send_msg_record_id PRIMARY KEY ("id")
);
CREATE INDEX bth_finish_send_msg_record_biz_date_type ON REC_LOAN_LAST."bth_finish_send_msg_record" ("biz_date","FINISH_TYPE");



COMMENT ON TABLE  REC_LOAN_LAST.bth_finish_send_msg_record IS '批量短息发送情况';
COMMENT ON COLUMN REC_LOAN_LAST.bth_finish_send_msg_record.FINISH_TYPE IS '完成类型';



INSERT INTO REC_LOAN_LAST."bth_job_pre_rel" (ID,JOB_INFO,PRE_JOB,CREATE_DATE,CREATE_TIME) VALUES ('50','xwUploadSendFinishMsgService','AccrualInfo',NULL,NULL);
INSERT INTO REC_LOAN_LAST."bth_job_pre_rel" (ID,JOB_INFO,PRE_JOB,CREATE_DATE,CREATE_TIME) VALUES ('51','xwUploadSendFinishMsgService','LoanDubillInfo',NULL,NULL);
INSERT INTO REC_LOAN_LAST."bth_job_pre_rel" (ID,JOB_INFO,PRE_JOB,CREATE_DATE,CREATE_TIME) VALUES ('52','xwUploadSendFinishMsgService','RepayPlan',NULL,NULL);
INSERT INTO REC_LOAN_LAST."bth_job_pre_rel" (ID,JOB_INFO,PRE_JOB,CREATE_DATE,CREATE_TIME) VALUES ('53','xwUploadSendFinishMsgService','LoanInfo',NULL,NULL);
INSERT INTO REC_LOAN_LAST."bth_job_pre_rel" (ID,JOB_INFO,PRE_JOB,CREATE_DATE,CREATE_TIME) VALUES ('54','xwUploadSendFinishMsgService','LoanStsChg',NULL,NULL);
INSERT INTO REC_LOAN_LAST."bth_job_pre_rel" (ID,JOB_INFO,PRE_JOB,CREATE_DATE,CREATE_TIME) VALUES ('55','xwUploadSendFinishMsgService','RepayInfo',NULL,NULL);
INSERT INTO REC_LOAN_LAST."bth_job_pre_rel" (ID,JOB_INFO,PRE_JOB,CREATE_DATE,CREATE_TIME) VALUES ('56','xwUploadSendFinishMsgService','ReversalInfo',NULL,NULL);



set identity_insert REC_LOAN_LAST.xxl_job_info ON;
INSERT INTO REC_LOAN_LAST."xxl_job_info" (id,JOB_GROUP,JOB_DESC,ADD_TIME,UPDATE_TIME,AUTHOR,ALARM_EMAIL,SCHEDULE_TYPE,SCHEDULE_CONF,MISFIRE_STRATEGY,EXECUTOR_ROUTE_STRATEGY,EXECUTOR_HANDLER,EXECUTOR_BLOCK_STRATEGY,EXECUTOR_TIMEOUT,EXECUTOR_FAIL_RETRY_COUNT,GLUE_TYPE,GLUE_SOURCE,GLUE_REMARK,GLUE_UPDATETIME,CHILD_JOBID,TRIGGER_STATUS,TRIGGER_LAST_TIME,TRIGGER_NEXT_TIME,EXECUTOR_FAIL_RETRY_INTERVAL,EXECUTOR_PARAM) VALUES (510,1,'新网银行：文件生成短信通知','2023-06-25 17:24:44.000','2023-06-25 17:41:47.000','CCHXBANK','','CRON','* * * * * ? 2016-2017','DO_NOTHING','FIRST','callJobBatchHandler','SERIAL_EXECUTION',0,0,'BEAN','','GLUE代码初始化','2023-06-25 17:24:44.000','',0,0,0,0,'{"path":"xwTmpDataToBaseTasklet","tmpTableName":"xwUploadSendFinishMsgService"}');
