fix: BE cn/en locales

This commit is contained in:
2023-11-21 20:59:38 +08:00
parent 753779aa17
commit abba0664fd
11 changed files with 801 additions and 46 deletions

Binary file not shown.

View File

@@ -378,4 +378,161 @@ VALUES (
'监控-系统资源-数据保留时长,单位天。根据当前日期,删除超过保留时长的日期数据信息。'
);
-- add for cn/en locales
UPDATE `omc_db`.`sys_config`
SET
`config_name` = 'config.sys.user.initPassword',
`config_key` = 'sys.user.initPassword',
`config_value` = 'Abcd@1234..',
`config_type` = 'Y',
`create_by` = 'supervisor',
`create_time` = 1698112935847,
`update_by` = NULL,
`update_time` = 0,
`remark` = 'config.sys.user.initPasswordRemark'
WHERE `config_id` = 1;
UPDATE `omc_db`.`sys_config`
SET
`config_name` = 'config.sys.account.captchaEnabled',
`config_key` = 'sys.account.captchaEnabled',
`config_value` = 'false',
`config_type` = 'Y',
`create_by` = 'supervisor',
`create_time` = 1698112935847,
`update_by` = NULL,
`update_time` = 0,
`remark` = 'config.sys.account.captchaEnabledRemark'
WHERE `config_id` = 2;
UPDATE `omc_db`.`sys_config`
SET
`config_name` = 'config.sys.account.registerUser',
`config_key` = 'sys.account.registerUser',
`config_value` = 'false',
`config_type` = 'Y',
`create_by` = 'supervisor',
`create_time` = 1698112935847,
`update_by` = NULL,
`update_time` = 0,
`remark` = 'config.sys.account.registerUserRemark'
WHERE `config_id` = 3;
UPDATE `omc_db`.`sys_config`
SET
`config_name` = 'config.sys.user.maxRetryCount',
`config_key` = 'sys.user.maxRetryCount',
`config_value` = '5',
`config_type` = 'Y',
`create_by` = 'supervisor',
`create_time` = 1698112935847,
`update_by` = NULL,
`update_time` = 0,
`remark` = 'config.sys.user.maxRetryCountRemark'
WHERE `config_id` = 4;
UPDATE `omc_db`.`sys_config`
SET
`config_name` = 'config.sys.user.lockTime',
`config_key` = 'sys.user.lockTime',
`config_value` = '10',
`config_type` = 'Y',
`create_by` = 'supervisor',
`create_time` = 1698112935847,
`update_by` = NULL,
`update_time` = 0,
`remark` = 'config.sys.user.lockTimeRemark'
WHERE `config_id` = 5;
UPDATE `omc_db`.`sys_config`
SET
`config_name` = 'config.monitor.sysResource.storeDays',
`config_key` = 'monitor.sysResource.storeDays',
`config_value` = '30',
`config_type` = 'Y',
`create_by` = 'supervisor',
`create_time` = 1698112935847,
`update_by` = NULL,
`update_time` = 0,
`remark` = 'config.monitor.sysResource.storeDaysRemark'
WHERE `config_id` = 10;
UPDATE `omc_db`.`sys_config`
SET
`config_name` = 'config.sys.logo.type',
`config_key` = 'sys.logo.type',
`config_value` = 'icon',
`config_type` = 'Y',
`create_by` = 'supervisor',
`create_time` = 1698112935847,
`update_by` = NULL,
`update_time` = 0,
`remark` = 'config.sys.logo.typeRemark'
WHERE `config_id` = 102;
UPDATE `omc_db`.`sys_config`
SET
`config_name` = 'config.sys.logo.filePathIcon',
`config_key` = 'sys.logo.filePathIcon',
`config_value` = '#',
`config_type` = 'Y',
`create_by` = 'supervisor',
`create_time` = 1698112935847,
`update_by` = NULL,
`update_time` = 0,
`remark` = 'config.sys.logo.filePathIconRemark'
WHERE `config_id` = 103;
UPDATE `omc_db`.`sys_config`
SET
`config_name` = 'config.sys.logo.filePathBrand',
`config_key` = 'sys.logo.filePathBrand',
`config_value` = '#',
`config_type` = 'Y',
`create_by` = 'supervisor',
`create_time` = 1698112935847,
`update_by` = NULL,
`update_time` = 0,
`remark` = 'config.sys.logo.filePathBrandRemark'
WHERE `config_id` = 104;
UPDATE `omc_db`.`sys_config`
SET
`config_name` = 'config.sys.loginBackground',
`config_key` = 'sys.loginBackground',
`config_value` = '#',
`config_type` = 'Y',
`create_by` = 'supervisor',
`create_time` = 1698112935847,
`update_by` = NULL,
`update_time` = 0,
`remark` = 'config.sys.loginBackgroundRemark'
WHERE `config_id` = 105;
UPDATE `omc_db`.`sys_config`
SET
`config_name` = 'config.sys.title',
`config_key` = 'sys.title',
`config_value` = 'AGrandEMS',
`config_type` = 'Y',
`create_by` = 'supervisor',
`create_time` = 1698112935847,
`update_by` = 'supervisor',
`update_time` = 1700536536786,
`remark` = 'config.sys.titleRemark'
WHERE `config_id` = 106;
UPDATE `omc_db`.`sys_config`
SET
`config_name` = 'config.sys.copyright',
`config_key` = 'sys.copyright',
`config_value` = 'config.sys.copyrightValue',
`config_type` = 'Y',
`create_by` = 'supervisor',
`create_time` = 1698112935847,
`update_by` = NULL,
`update_time` = 0,
`remark` = 'config.sys.copyrightRemark'
WHERE `config_id` = 107;
SET FOREIGN_KEY_CHECKS=1;

View File

@@ -88,4 +88,39 @@ VALUES (
NULL
);
-- for cn/en locale
UPDATE `omc_db`.`sys_dept`
SET
`parent_id` = 0,
`ancestors` = '0',
`dept_name` = 'dept.root',
`order_num` = 0,
`leader` = 'supervisor',
`phone` = NULL,
`email` = NULL,
`status` = '1',
`del_flag` = '0',
`create_by` = 'supervisor',
`create_time` = 1699348237468,
`update_by` = NULL,
`update_time` = 0
WHERE `dept_id` = 100;
UPDATE `omc_db`.`sys_dept`
SET
`parent_id` = 100,
`ancestors` = '0,100',
`dept_name` = 'dept.root.item1',
`order_num` = 1,
`leader` = 'supervisor',
`phone` = NULL,
`email` = NULL,
`status` = '1',
`del_flag` = '0',
`create_by` = 'supervisor',
`create_time` = 1699348237468,
`update_by` = NULL,
`update_time` = 0
WHERE `dept_id` = 101;
SET FOREIGN_KEY_CHECKS=1;

View File

@@ -99,7 +99,7 @@ VALUES (
'删除过期网元备份文件',
'SYSTEM',
'delExpiredNeBackup',
'{\"duration\":90}',
'{\"duration\":60}',
'0 20 0 * * ?',
'3',
'0',
@@ -109,7 +109,7 @@ VALUES (
1697091151529,
'admin',
1698134207967,
'删除过期网元etc备份文件, 传入参数表示保留90天的备份文件, 默认60天'
'删除过期网元etc备份文件, 传入参数表示保留{duration}天的备份文件, 默认60天'
);
INSERT IGNORE INTO
@@ -135,7 +135,7 @@ VALUES (
'删除过期历史告警记录',
'SYSTEM',
'deleteExpiredRecord',
'{\"duration\":34,\"tableName\":\"alarm\",\"colName\":\"event_time\",\"extras\":\"alarm_status=\'0\'\"}',
'{\"duration\":90,\"tableName\":\"alarm\",\"colName\":\"event_time\",\"extras\":\"alarm_status=\'0\'\"}',
'0 10 0 * * ?',
'3',
'0',
@@ -145,7 +145,7 @@ VALUES (
1698150591601,
'admin',
1698197292003,
'删除过期历史告警记录,传入参数表示保留90天的历史告警记录'
'删除过期历史告警记录,传入参数表示保留{duration}天的历史告警记录'
);
INSERT IGNORE INTO
@@ -171,7 +171,7 @@ VALUES (
'删除过期黄金指标记录',
'SYSTEM',
'deleteExpiredRecord',
'{\"duration\":39,\"tableName\":\"gold_kpi\",\"colName\":\"date\"}',
'{\"duration\":15,\"tableName\":\"gold_kpi\",\"colName\":\"date\"}',
'0 15 0 * * ?',
'3',
'0',
@@ -181,7 +181,7 @@ VALUES (
1698197983126,
'admin',
1698198074872,
'黄金指标记录保留60'
'黄金指标记录保留{duration}'
);
INSERT IGNORE INTO
@@ -220,8 +220,102 @@ VALUES (
'自动备份网元etc目录下的配置文件'
);
-- 调度任务记录日志字段
UPDATE `omc_db`.`sys_job`
SET
`invoke_target` = 'monitor_sys_resource',
`target_params` = '{\"interval\":5}',
`cron_expression` = '0 0/5 * * * ?',
`misfire_policy` = '3',
`concurrent` = '0',
`status` = '0',
`save_log` = '0',
`create_by` = 'supervisor',
`create_time` = 1698478134839,
`update_by` = 'supervisor',
`update_time` = 1700566657587,
`remark` = 'job.monitor_sys_resource_remark'
WHERE
`job_id` = 1
AND `job_name` = 'job.monitor_sys_resource'
AND `job_group` = 'SYSTEM';
UPDATE `omc_db`.`sys_job`
SET
`invoke_target` = 'delExpiredNeBackup',
`target_params` = '{\"duration\":60}',
`cron_expression` = '0 20 0 * * ?',
`misfire_policy` = '3',
`concurrent` = '0',
`status` = '1',
`save_log` = '1',
`create_by` = 'supervisor',
`create_time` = 1698478134840,
`update_by` = NULL,
`update_time` = 0,
`remark` = 'job.delExpiredNeBackupRemark'
WHERE
`job_id` = 4
AND `job_name` = 'job.delExpiredNeBackup'
AND `job_group` = 'SYSTEM';
UPDATE `omc_db`.`sys_job`
SET
`invoke_target` = 'deleteExpiredRecord',
`target_params` = '{\"duration\":90,\"tableName\":\"alarm\",\"colName\":\"event_time\",\"extras\":\"alarm_status=\'0\'\"}',
`cron_expression` = '0 10 0 * * ?',
`misfire_policy` = '3',
`concurrent` = '0',
`status` = '1',
`save_log` = '1',
`create_by` = 'supervisor',
`create_time` = 1698478134841,
`update_by` = NULL,
`update_time` = 0,
`remark` = 'job.deleteExpiredAlarmRecordRemark'
WHERE
`job_id` = 5
AND `job_name` = 'job.deleteExpiredAlarmRecord'
AND `job_group` = 'SYSTEM';
UPDATE `omc_db`.`sys_job`
SET
`invoke_target` = 'deleteExpiredRecord',
`target_params` = '{\"duration\":15,\"tableName\":\"gold_kpi\",\"colName\":\"date\"}',
`cron_expression` = '0 15 0 * * ?',
`misfire_policy` = '3',
`concurrent` = '0',
`status` = '1',
`save_log` = '1',
`create_by` = 'supervisor',
`create_time` = 1698478134842,
`update_by` = NULL,
`update_time` = 0,
`remark` = 'job.deleteExpiredKpiRecordRemark'
WHERE
`job_id` = 6
AND `job_name` = 'job.deleteExpiredKpiRecord'
AND `job_group` = 'SYSTEM';
UPDATE `omc_db`.`sys_job`
SET
`invoke_target` = 'backupEtcFromNE',
`target_params` = NULL,
`cron_expression` = '0 30 0 * * ?',
`misfire_policy` = '3',
`concurrent` = '0',
`status` = '1',
`save_log` = '1',
`create_by` = 'supervisor',
`create_time` = 1698478134843,
`update_by` = NULL,
`update_time` = 0,
`remark` = 'job.backupEtcFromNERemark'
WHERE
`job_id` = 7
AND `job_name` = 'job.backupEtcFromNE'
AND `job_group` = 'SYSTEM';
-- 调度任务记录日志字段
UPDATE `omc_db`.`sys_job` SET `save_log` = '1';
SET FOREIGN_KEY_CHECKS = 1;

View File

@@ -120,4 +120,57 @@ VALUES (
''
);
-- for cn/en locales
UPDATE `omc_db`.`sys_post`
SET
`post_code` = 'administator',
`post_name` = 'post.admin',
`post_sort` = 1,
`status` = '1',
`create_by` = 'supervisor',
`create_time` = 1697110106499,
`update_by` = NULL,
`update_time` = 0,
`remark` = NULL
WHERE `post_id` = 1;
UPDATE `omc_db`.`sys_post`
SET
`post_code` = 'operator',
`post_name` = 'post.operator',
`post_sort` = 2,
`status` = '1',
`create_by` = 'supervisor',
`create_time` = 1697110106499,
`update_by` = NULL,
`update_time` = 0,
`remark` = NULL
WHERE `post_id` = 2;
UPDATE `omc_db`.`sys_post`
SET
`post_code` = 'monitor',
`post_name` = 'post.monitor',
`post_sort` = 3,
`status` = '1',
`create_by` = 'supervisor',
`create_time` = 1697110106499,
`update_by` = NULL,
`update_time` = 0,
`remark` = NULL
WHERE `post_id` = 3;
UPDATE `omc_db`.`sys_post`
SET
`post_code` = 'visitor',
`post_name` = 'post.visitor',
`post_sort` = 4,
`status` = '1',
`create_by` = 'supervisor',
`create_time` = 1697110106499,
`update_by` = NULL,
`update_time` = 0,
`remark` = NULL
WHERE `post_id` = 4;
SET FOREIGN_KEY_CHECKS=1;

View File

@@ -172,4 +172,90 @@ VALUES (
'普通用户 只可看系统相关信息'
);
-- for cn/en locales
UPDATE `omc_db`.`sys_role`
SET
`role_name` = 'role.admin',
`role_key` = 'supervisor',
`role_sort` = 1,
`data_scope` = '1',
`menu_check_strictly` = '1',
`dept_check_strictly` = '1',
`status` = '1',
`del_flag` = '0',
`create_by` = 'supervisor',
`create_time` = 1697091437683,
`update_by` = NULL,
`update_time` = 0,
`remark` = 'role.adminRemark'
WHERE `role_id` = 1;
UPDATE `omc_db`.`sys_role`
SET
`role_name` = 'role.adminAssign',
`role_key` = 'administrator',
`role_sort` = 2,
`data_scope` = '1',
`menu_check_strictly` = '1',
`dept_check_strictly` = '1',
`status` = '1',
`del_flag` = '0',
`create_by` = 'supervisor',
`create_time` = 1698486915894,
`update_by` = NULL,
`update_time` = 0,
`remark` = 'role.adminAssignRemark'
WHERE `role_id` = 2;
UPDATE `omc_db`.`sys_role`
SET
`role_name` = 'role.operator',
`role_key` = 'operator',
`role_sort` = 3,
`data_scope` = '1',
`menu_check_strictly` = '1',
`dept_check_strictly` = '1',
`status` = '1',
`del_flag` = '0',
`create_by` = 'supervisor',
`create_time` = 1698486934900,
`update_by` = NULL,
`update_time` = 0,
`remark` = 'role.operatorRemark'
WHERE `role_id` = 3;
UPDATE `omc_db`.`sys_role`
SET
`role_name` = 'role.monitor',
`role_key` = 'monitor',
`role_sort` = 4,
`data_scope` = '1',
`menu_check_strictly` = '1',
`dept_check_strictly` = '1',
`status` = '1',
`del_flag` = '0',
`create_by` = 'supervisor',
`create_time` = 1698486950714,
`update_by` = NULL,
`update_time` = 0,
`remark` = 'role.monitorRemark'
WHERE `role_id` = 4;
UPDATE `omc_db`.`sys_role`
SET
`role_name` = 'role.vistor',
`role_key` = 'vistor',
`role_sort` = 5,
`data_scope` = '1',
`menu_check_strictly` = '1',
`dept_check_strictly` = '1',
`status` = '1',
`del_flag` = '0',
`create_by` = 'supervisor',
`create_time` = 1698486975779,
`update_by` = NULL,
`update_time` = 0,
`remark` = 'role.vistorRemark'
WHERE `role_id` = 5;
SET FOREIGN_KEY_CHECKS=1;

View File

@@ -378,4 +378,161 @@ VALUES (
'监控-系统资源-数据保留时长,单位天。根据当前日期,删除超过保留时长的日期数据信息。'
);
-- add for cn/en locales
UPDATE `omc_db`.`sys_config`
SET
`config_name` = 'config.sys.user.initPassword',
`config_key` = 'sys.user.initPassword',
`config_value` = 'Abcd@1234..',
`config_type` = 'Y',
`create_by` = 'supervisor',
`create_time` = 1698112935847,
`update_by` = NULL,
`update_time` = 0,
`remark` = 'config.sys.user.initPasswordRemark'
WHERE `config_id` = 1;
UPDATE `omc_db`.`sys_config`
SET
`config_name` = 'config.sys.account.captchaEnabled',
`config_key` = 'sys.account.captchaEnabled',
`config_value` = 'false',
`config_type` = 'Y',
`create_by` = 'supervisor',
`create_time` = 1698112935847,
`update_by` = NULL,
`update_time` = 0,
`remark` = 'config.sys.account.captchaEnabledRemark'
WHERE `config_id` = 2;
UPDATE `omc_db`.`sys_config`
SET
`config_name` = 'config.sys.account.registerUser',
`config_key` = 'sys.account.registerUser',
`config_value` = 'false',
`config_type` = 'Y',
`create_by` = 'supervisor',
`create_time` = 1698112935847,
`update_by` = NULL,
`update_time` = 0,
`remark` = 'config.sys.account.registerUserRemark'
WHERE `config_id` = 3;
UPDATE `omc_db`.`sys_config`
SET
`config_name` = 'config.sys.user.maxRetryCount',
`config_key` = 'sys.user.maxRetryCount',
`config_value` = '5',
`config_type` = 'Y',
`create_by` = 'supervisor',
`create_time` = 1698112935847,
`update_by` = NULL,
`update_time` = 0,
`remark` = 'config.sys.user.maxRetryCountRemark'
WHERE `config_id` = 4;
UPDATE `omc_db`.`sys_config`
SET
`config_name` = 'config.sys.user.lockTime',
`config_key` = 'sys.user.lockTime',
`config_value` = '10',
`config_type` = 'Y',
`create_by` = 'supervisor',
`create_time` = 1698112935847,
`update_by` = NULL,
`update_time` = 0,
`remark` = 'config.sys.user.lockTimeRemark'
WHERE `config_id` = 5;
UPDATE `omc_db`.`sys_config`
SET
`config_name` = 'config.monitor.sysResource.storeDays',
`config_key` = 'monitor.sysResource.storeDays',
`config_value` = '30',
`config_type` = 'Y',
`create_by` = 'supervisor',
`create_time` = 1698112935847,
`update_by` = NULL,
`update_time` = 0,
`remark` = 'config.monitor.sysResource.storeDaysRemark'
WHERE `config_id` = 10;
UPDATE `omc_db`.`sys_config`
SET
`config_name` = 'config.sys.logo.type',
`config_key` = 'sys.logo.type',
`config_value` = 'icon',
`config_type` = 'Y',
`create_by` = 'supervisor',
`create_time` = 1698112935847,
`update_by` = NULL,
`update_time` = 0,
`remark` = 'config.sys.logo.typeRemark'
WHERE `config_id` = 102;
UPDATE `omc_db`.`sys_config`
SET
`config_name` = 'config.sys.logo.filePathIcon',
`config_key` = 'sys.logo.filePathIcon',
`config_value` = '#',
`config_type` = 'Y',
`create_by` = 'supervisor',
`create_time` = 1698112935847,
`update_by` = NULL,
`update_time` = 0,
`remark` = 'config.sys.logo.filePathIconRemark'
WHERE `config_id` = 103;
UPDATE `omc_db`.`sys_config`
SET
`config_name` = 'config.sys.logo.filePathBrand',
`config_key` = 'sys.logo.filePathBrand',
`config_value` = '#',
`config_type` = 'Y',
`create_by` = 'supervisor',
`create_time` = 1698112935847,
`update_by` = NULL,
`update_time` = 0,
`remark` = 'config.sys.logo.filePathBrandRemark'
WHERE `config_id` = 104;
UPDATE `omc_db`.`sys_config`
SET
`config_name` = 'config.sys.loginBackground',
`config_key` = 'sys.loginBackground',
`config_value` = '#',
`config_type` = 'Y',
`create_by` = 'supervisor',
`create_time` = 1698112935847,
`update_by` = NULL,
`update_time` = 0,
`remark` = 'config.sys.loginBackgroundRemark'
WHERE `config_id` = 105;
UPDATE `omc_db`.`sys_config`
SET
`config_name` = 'config.sys.title',
`config_key` = 'sys.title',
`config_value` = 'AGrandEMS',
`config_type` = 'Y',
`create_by` = 'supervisor',
`create_time` = 1698112935847,
`update_by` = 'supervisor',
`update_time` = 1700536536786,
`remark` = 'config.sys.titleRemark'
WHERE `config_id` = 106;
UPDATE `omc_db`.`sys_config`
SET
`config_name` = 'config.sys.copyright',
`config_key` = 'sys.copyright',
`config_value` = 'config.sys.copyrightValue',
`config_type` = 'Y',
`create_by` = 'supervisor',
`create_time` = 1698112935847,
`update_by` = NULL,
`update_time` = 0,
`remark` = 'config.sys.copyrightRemark'
WHERE `config_id` = 107;
SET FOREIGN_KEY_CHECKS=1;

View File

@@ -89,4 +89,39 @@ VALUES (
NULL
);
-- for cn/en locale
UPDATE `omc_db`.`sys_dept`
SET
`parent_id` = 0,
`ancestors` = '0',
`dept_name` = 'dept.root',
`order_num` = 0,
`leader` = 'supervisor',
`phone` = NULL,
`email` = NULL,
`status` = '1',
`del_flag` = '0',
`create_by` = 'supervisor',
`create_time` = 1699348237468,
`update_by` = NULL,
`update_time` = 0
WHERE `dept_id` = 100;
UPDATE `omc_db`.`sys_dept`
SET
`parent_id` = 100,
`ancestors` = '0,100',
`dept_name` = 'dept.root.item1',
`order_num` = 1,
`leader` = 'supervisor',
`phone` = NULL,
`email` = NULL,
`status` = '1',
`del_flag` = '0',
`create_by` = 'supervisor',
`create_time` = 1699348237468,
`update_by` = NULL,
`update_time` = 0
WHERE `dept_id` = 101;
SET FOREIGN_KEY_CHECKS=1;

View File

@@ -41,7 +41,7 @@ CREATE TABLE `omc_db`.`sys_job` (
-- ----------------------------
-- Records of sys_job
-- ----------------------------
INSERT IGNORE INTO
INSERT INTO
`omc_db`.`sys_job` (
`job_id`,
`job_name`,
@@ -61,23 +61,23 @@ INSERT IGNORE INTO
)
VALUES (
1,
'监控-系统资源',
'job.monitor_sys_resource',
'SYSTEM',
'monitor_sys_resource',
'{\"interval\":5}',
'0 0/5 * * * ?',
'3',
'0',
'1',
'0',
'admin',
'0',
'supervisor',
1698478134839,
'admin',
1698483081920,
'系统资源CPU/IO/Netword收集interval单位分钟0 0/5 * * * ? 表示平均interva5分钟资源情况'
'supervisor',
1700566657587,
'job.monitor_sys_resource_remark'
);
INSERT IGNORE INTO
INSERT INTO
`omc_db`.`sys_job` (
`job_id`,
`job_name`,
@@ -97,23 +97,23 @@ INSERT IGNORE INTO
)
VALUES (
4,
'删除过期网元备份文件',
'job.delExpiredNeBackup',
'SYSTEM',
'delExpiredNeBackup',
'{\"duration\":90}',
'{\"duration\":60}',
'0 20 0 * * ?',
'3',
'0',
'1',
'1',
'admin',
1697091151529,
'admin',
1698134207967,
'删除过期网元etc备份文件, 传入参数表示保留90天的备份文件, 默认60天'
'supervisor',
1698478134840,
NULL,
0,
'job.delExpiredNeBackupRemark'
);
INSERT IGNORE INTO
INSERT INTO
`omc_db`.`sys_job` (
`job_id`,
`job_name`,
@@ -133,23 +133,23 @@ INSERT IGNORE INTO
)
VALUES (
5,
'删除过期历史告警记录',
'job.deleteExpiredAlarmRecord',
'SYSTEM',
'deleteExpiredRecord',
'{\"duration\":34,\"tableName\":\"alarm\",\"colName\":\"event_time\",\"extras\":\"alarm_status=\'0\'\"}',
'{\"duration\":90,\"tableName\":\"alarm\",\"colName\":\"event_time\",\"extras\":\"alarm_status=\'0\'\"}',
'0 10 0 * * ?',
'3',
'0',
'1',
'1',
'admin',
1698150591601,
'admin',
1698197292003,
'删除过期历史告警记录传入参数表示保留90天的历史告警记录'
'supervisor',
1698478134841,
NULL,
0,
'job.deleteExpiredAlarmRecordRemark'
);
INSERT IGNORE INTO
INSERT INTO
`omc_db`.`sys_job` (
`job_id`,
`job_name`,
@@ -169,23 +169,23 @@ INSERT IGNORE INTO
)
VALUES (
6,
'删除过期黄金指标记录',
'job.deleteExpiredKpiRecord',
'SYSTEM',
'deleteExpiredRecord',
'{\"duration\":39,\"tableName\":\"gold_kpi\",\"colName\":\"date\"}',
'{\"duration\":15,\"tableName\":\"gold_kpi\",\"colName\":\"date\"}',
'0 15 0 * * ?',
'3',
'0',
'1',
'1',
'admin',
1698197983126,
'admin',
1698198074872,
'黄金指标记录保留60天'
'supervisor',
1698478134842,
NULL,
0,
'job.deleteExpiredKpiRecordRemark'
);
INSERT IGNORE INTO
INSERT INTO
`omc_db`.`sys_job` (
`job_id`,
`job_name`,
@@ -205,24 +205,23 @@ INSERT IGNORE INTO
)
VALUES (
7,
'网元配置自动备份任务',
'job.backupEtcFromNE',
'SYSTEM',
'backupEtcFromNE',
'',
NULL,
'0 30 0 * * ?',
'3',
'0',
'1',
'1',
'admin',
1698223216479,
'',
'supervisor',
1698478134843,
NULL,
0,
'自动备份网元etc目录下的配置文件'
'job.backupEtcFromNERemark'
);
-- 调度任务记录日志字段
UPDATE `omc_db`.`sys_job` SET `save_log` = '1';
SET FOREIGN_KEY_CHECKS = 1;

View File

@@ -119,4 +119,57 @@ VALUES (
''
);
-- for cn/en locales
UPDATE `omc_db`.`sys_post`
SET
`post_code` = 'administator',
`post_name` = 'post.admin',
`post_sort` = 1,
`status` = '1',
`create_by` = 'supervisor',
`create_time` = 1697110106499,
`update_by` = NULL,
`update_time` = 0,
`remark` = NULL
WHERE `post_id` = 1;
UPDATE `omc_db`.`sys_post`
SET
`post_code` = 'operator',
`post_name` = 'post.operator',
`post_sort` = 2,
`status` = '1',
`create_by` = 'supervisor',
`create_time` = 1697110106499,
`update_by` = NULL,
`update_time` = 0,
`remark` = NULL
WHERE `post_id` = 2;
UPDATE `omc_db`.`sys_post`
SET
`post_code` = 'monitor',
`post_name` = 'post.monitor',
`post_sort` = 3,
`status` = '1',
`create_by` = 'supervisor',
`create_time` = 1697110106499,
`update_by` = NULL,
`update_time` = 0,
`remark` = NULL
WHERE `post_id` = 3;
UPDATE `omc_db`.`sys_post`
SET
`post_code` = 'visitor',
`post_name` = 'post.visitor',
`post_sort` = 4,
`status` = '1',
`create_by` = 'supervisor',
`create_time` = 1697110106499,
`update_by` = NULL,
`update_time` = 0,
`remark` = NULL
WHERE `post_id` = 4;
SET FOREIGN_KEY_CHECKS=1;

View File

@@ -172,4 +172,90 @@ VALUES (
'普通用户 只可看系统相关信息'
);
-- for cn/en locales
UPDATE `omc_db`.`sys_role`
SET
`role_name` = 'role.admin',
`role_key` = 'supervisor',
`role_sort` = 1,
`data_scope` = '1',
`menu_check_strictly` = '1',
`dept_check_strictly` = '1',
`status` = '1',
`del_flag` = '0',
`create_by` = 'supervisor',
`create_time` = 1697091437683,
`update_by` = NULL,
`update_time` = 0,
`remark` = 'role.adminRemark'
WHERE `role_id` = 1;
UPDATE `omc_db`.`sys_role`
SET
`role_name` = 'role.adminAssign',
`role_key` = 'administrator',
`role_sort` = 2,
`data_scope` = '1',
`menu_check_strictly` = '1',
`dept_check_strictly` = '1',
`status` = '1',
`del_flag` = '0',
`create_by` = 'supervisor',
`create_time` = 1698486915894,
`update_by` = NULL,
`update_time` = 0,
`remark` = 'role.adminAssignRemark'
WHERE `role_id` = 2;
UPDATE `omc_db`.`sys_role`
SET
`role_name` = 'role.operator',
`role_key` = 'operator',
`role_sort` = 3,
`data_scope` = '1',
`menu_check_strictly` = '1',
`dept_check_strictly` = '1',
`status` = '1',
`del_flag` = '0',
`create_by` = 'supervisor',
`create_time` = 1698486934900,
`update_by` = NULL,
`update_time` = 0,
`remark` = 'role.operatorRemark'
WHERE `role_id` = 3;
UPDATE `omc_db`.`sys_role`
SET
`role_name` = 'role.monitor',
`role_key` = 'monitor',
`role_sort` = 4,
`data_scope` = '1',
`menu_check_strictly` = '1',
`dept_check_strictly` = '1',
`status` = '1',
`del_flag` = '0',
`create_by` = 'supervisor',
`create_time` = 1698486950714,
`update_by` = NULL,
`update_time` = 0,
`remark` = 'role.monitorRemark'
WHERE `role_id` = 4;
UPDATE `omc_db`.`sys_role`
SET
`role_name` = 'role.vistor',
`role_key` = 'vistor',
`role_sort` = 5,
`data_scope` = '1',
`menu_check_strictly` = '1',
`dept_check_strictly` = '1',
`status` = '1',
`del_flag` = '0',
`create_by` = 'supervisor',
`create_time` = 1698486975779,
`update_by` = NULL,
`update_time` = 0,
`remark` = 'role.vistorRemark'
WHERE `role_id` = 5;
SET FOREIGN_KEY_CHECKS=1;