-- 调度执行程序
DELETE FROM T_SCH_TASKDEFINE WHERE FID = '36Y0J2JCO1HA';
INSERT INTO T_SCH_TASKDEFINE(FID,FCLASSNAME,FAPPID,FNUMBER) VALUES ('36Y0J2JCO1HA','kd.bos.org.task.change.OrgChangeTask','base','OrgChangeTask');

-- 调度执行程序·多语言表
DELETE FROM T_SCH_TASKDEFINE_L WHERE FPKID = '36Y0J2JG=G/K';
INSERT INTO T_SCH_TASKDEFINE_L(FID,FPKID,FLOCALEID,FNAME) VALUES ('36Y0J2JCO1HA','36Y0J2JG=G/K','zh_CN','组织变更调度执行程序');

-- 调度作业
DELETE FROM T_SCH_JOB WHERE FID = '36Y0=WILATBU';
INSERT INTO T_SCH_JOB(FID,FTASKCLASSNAME,FTASKDEFINEID,FRUNMODE,FRUNBYUSERID,FJOBTYPE,FSTATUS,FNUMBER,FCONCURRENT,FSTRATEGY,FTIMEOUT,FRETRYTIME,FRUNBYLANG,FCANSTOP,FPARAMS,FRUNBYORGID) VALUES ('36Y0=WILATBU','kd.bos.org.task.change.OrgChangeTask','36Y0J2JCO1HA','0',1,'BIZ','1','base_bos_org_change_SKDJ_S','0','1',0,0,' ','0','{}',0);

-- 调度作业·多语言表
DELETE FROM T_SCH_JOB_L WHERE FPKID = '36Y0=WILAU02';
INSERT INTO T_SCH_JOB_L(FID,FPKID,FLOCALEID,FNAME) VALUES ('36Y0=WILATBU','36Y0=WILAU02','zh_CN','组织变更记录调度作业');

-- 调度作业·拆分表
DELETE FROM T_SCH_JOB_N WHERE FID = '36Y0=WILATBU';
INSERT INTO T_SCH_JOB_N(FID,FJOBPRINCIPAL,FOVERTIME,FSUCCESSNOTIFY,FJOBMSGRECEIVER,FMSGCONTENT,FFAILNOTIFY,FNOTIFYTYPE,FCAPTION) VALUES ('36Y0=WILATBU',0,'0','0',0,' ','1',' ','调度作业通知');

-- 调度计划
DELETE FROM T_SCH_SCHEDULE WHERE FID = '36Y14Y2DXGJO';
INSERT INTO T_SCH_SCHEDULE(FID,FPLAN,FHOST,FCYCLENUM,FJOBID,FSTARTTIME,FSTATUS,FENDTIME,FNUMBER,FREPEATMODE) VALUES ('36Y14Y2DXGJO','0 0 0 * * ?',' ',1,'36Y0=WILATBU',{ts'2023-04-01 00:00:00'},'1',{ts'2099-12-31  00:00:00'},'base_bos_org_change_SKDP_S','d');

-- 调度计划·多语言表
DELETE FROM T_SCH_SCHEDULE_L WHERE FPKID = '36Y14Y2DXFWE';
INSERT INTO T_SCH_SCHEDULE_L(FID,FPKID,FLOCALEID,FNAME) VALUES ('36Y14Y2DXGJO','36Y14Y2DXFWE','zh_CN','组织变更记录调度计划');

-- 调度计划·拆分表
DELETE FROM T_SCH_SCHEDULE_N WHERE FID = '36Y14Y2DXGJO';
INSERT INTO T_SCH_SCHEDULE_N(FID,FSNOTIFYTYPE,FSMSGCONTENT,FMSGRECEIVER,FSTIMEOUT,FSCHPRINCIPAL,FSSUCCESSNOTIFY,FSFAILNOTIFY) VALUES ('36Y14Y2DXGJO',' ',' ',0,'0',0,'0','1');

-- 调度作业
DELETE FROM T_SCH_SCHEDULE_ENTRY WHERE FENTRYID = '36Y14Y2DXGJP';
INSERT INTO T_SCH_SCHEDULE_ENTRY(FID,FJOBNUMBER,FENTRYID,FSEQ) VALUES ('36Y14Y2DXGJO','36Y0=WILATBU','36Y14Y2DXGJP',1);





