SET FOREIGN_KEY_CHECKS=0;

DELETE FROM `sys_job` WHERE `job_id` = 3;
DELETE FROM `sys_job` WHERE `job_id` = 6;
DELETE FROM `sys_job` WHERE `job_id` = 11;
DELETE FROM `sys_job` WHERE `job_id` = 12;
DELETE FROM `sys_job` WHERE `job_id` = 13;
DELETE FROM `sys_job` WHERE `job_id` = 14;
DELETE FROM `sys_job` WHERE `job_id` = 16;
INSERT IGNORE INTO `sys_job` (`job_id`, `job_name`, `job_group`, `invoke_target`, `target_params`, `cron_expression`, `misfire_policy`, `concurrent`, `status`, `save_log`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES (100, 'job.export.cdr.mf', 'SYSTEM', 'exportTable', '{\"duration\":1,\"tableName\":\"cdr_event_mf\",\"columns\":\"id,JSON_UNQUOTE(JSON_EXTRACT(cdr_json,\'$.recordType\')) as recordType,JSON_UNQUOTE(JSON_EXTRACT(cdr_json,\'$.callerParty\')) as callerParty,JSON_UNQUOTE(JSON_EXTRACT(cdr_json,\'$.calledParty\')) as calledParty,JSON_UNQUOTE(JSON_EXTRACT(cdr_json,\'$.seizureTime\')) as seizureTime,JSON_UNQUOTE(JSON_EXTRACT(cdr_json,\'$.answerTime\')) as answerTime,JSON_UNQUOTE(JSON_EXTRACT(cdr_json,\'$.releaseTime\')) as releaseTime,JSON_UNQUOTE(JSON_EXTRACT(cdr_json,\'$.callDuration\')) as callDuration,JSON_UNQUOTE(JSON_EXTRACT(cdr_json,\'$.recordPath\')) as recordPath,JSON_UNQUOTE(JSON_EXTRACT(cdr_json,\'$.msdData\')) as msdData,JSON_UNQUOTE(JSON_EXTRACT(cdr_json,\'$.serviceResult\')) as serviceResult\",\"timeCol\":\"timestamp\",\"timeUnit\":\"second\",\"extras\":\"\",\"filePath\":\"/usr/local/omc/backup/mf_cdr\"}', '0 40 0 * * ?', '3', '0', '1', '1', 'admin', 1698478134842, '', 0, '');
INSERT IGNORE INTO `sys_job` (`job_id`, `job_name`, `job_group`, `invoke_target`, `target_params`, `cron_expression`, `misfire_policy`, `concurrent`, `status`, `save_log`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES (101, 'job.psap.ticket.monitor', 'SYSTEM', 'psap_ticket_monitor', '{}', '0/5 * * * * ?', '3', '0', '1', '1', 'admin', 1750406767785, '', NULL, '');
UPDATE `sys_job` SET `job_name` = 'job.removeExportedFiles', `job_group` = 'SYSTEM', `invoke_target` = 'removeFile', `target_params` = '[{\"filePath\":\"/usr/local/omc/backup/mf_cdr\",\"maxDays\":30}]', `cron_expression` = '0 10 0 * * ?', `misfire_policy` = '3', `concurrent` = '0', `status` = '1', `save_log` = '1', `create_by` = 'supervisor', `create_time` = 1698478134842, `update_by` = 'admin', `update_time` = 1728634085631, `remark` = '' WHERE `job_id` = 15;

SET FOREIGN_KEY_CHECKS=1;