From 921f05fa19969addd224ed681357aee2c727cc4d Mon Sep 17 00:00:00 2001 From: Wu Clan Date: Sat, 27 Sep 2025 12:17:45 +0800 Subject: [PATCH] Fix the pgsql script in dict plugin (#842) --- backend/plugin/dict/sql/postgresql/init.sql | 96 ++++++++++----------- 1 file changed, 48 insertions(+), 48 deletions(-) diff --git a/backend/plugin/dict/sql/postgresql/init.sql b/backend/plugin/dict/sql/postgresql/init.sql index bda2457a..d562b63a 100644 --- a/backend/plugin/dict/sql/postgresql/init.sql +++ b/backend/plugin/dict/sql/postgresql/init.sql @@ -1,53 +1,53 @@ insert into sys_dict_type (id, name, code, remark, created_time, updated_time) values -(2048602512340156416, '通用状态', 'sys_status', '系统通用状态:1/0', now(), null), -(2048602512369516544, '通用开关', 'sys_choose', '系统通用开关:true/false', now(), null), -(2048602512432431104, '菜单类型', 'sys_menu_type', '系统菜单类型', now(), null), -(2048602512495345664, '登录状态', 'sys_login_status', '用户登录状态', now(), null), -(2048602512549871616, '数据规则运算符', 'sys_data_rule_operator', '数据权限规则运算符', now(), null), -(2048602512616980480, '数据规则表达式', 'sys_data_rule_expression', '数据权限规则表达式', now(), null), -(2048602512692477952, '前端参数配置', 'sys_frontend_config', '前端参数配置类型', now(), null), -(2048602512755392512, '任务策略类型', 'task_strategy_type', '定时任务策略类型', now(), null), -(2048602512818307072, '任务周期类型', 'task_period_type', '定时任务周期类型', now(), null), -(2048602512881221632, '通知公告', 'notice', '通知类型', now(), null), -(2048602512948330496, '在线状态', 'user_online_status', '用户在线状态', now(), null), -(2048602513015439360, '插件类型', 'sys_plugin_type', '插件类型', now(), null); +(1, '通用状态', 'sys_status', '系统通用状态:1/0', now(), null), +(2, '通用开关', 'sys_choose', '系统通用开关:true/false', now(), null), +(3, '菜单类型', 'sys_menu_type', '系统菜单类型', now(), null), +(4, '登录状态', 'sys_login_status', '用户登录状态', now(), null), +(5, '数据规则运算符', 'sys_data_rule_operator', '数据权限规则运算符', now(), null), +(6, '数据规则表达式', 'sys_data_rule_expression', '数据权限规则表达式', now(), null), +(7, '前端参数配置', 'sys_frontend_config', '前端参数配置类型', now(), null), +(8, '任务策略类型', 'task_strategy_type', '定时任务策略类型', now(), null), +(9, '任务周期类型', 'task_period_type', '定时任务周期类型', now(), null), +(10, '通知公告', 'notice', '通知类型', now(), null), +(11, '在线状态', 'user_online_status', '用户在线状态', now(), null), +(12, '插件类型', 'sys_plugin_type', '插件类型', now(), null); insert into sys_dict_data (id, type_code, label, value, color, sort, status, remark, type_id, created_time, updated_time) values -(2048602513078353920, 'sys_status', '停用', '0', 'red', 1, 1, '停用状态', 2048602512340156416, now(), null), -(2048602513128685568, 'sys_status', '正常', '1', 'green', 2, 1, '正常状态', 2048602512340156416, now(), null), -(2048602513174822912, 'sys_choose', '关闭', 'false', 'error', 1, 1, '关闭状态', 2048602512369516544, now(), null), -(2048602513241931776, 'sys_choose', '开启', 'true', 'success', 2, 1, '开启状态', 2048602512369516544, now(), null), -(2048602513292263424, 'sys_menu_type', '目录', '0', 'orange', 1, 1, '菜单目录', 2048602512432431104, now(), null), -(2048602513359372288, 'sys_menu_type', '菜单', '1', 'default', 2, 1, '普通菜单', 2048602512432431104, now(), null), -(2048602513422286848, 'sys_menu_type', '按钮', '2', 'processing', 3, 1, '菜单按钮', 2048602512432431104, now(), null), -(2048602513476812800, 'sys_menu_type', '内嵌', '3', 'cyan', 4, 1, '内嵌页面', 2048602512432431104, now(), null), -(2048602513543921664, 'sys_menu_type', '外链', '4', 'purple', 5, 1, '外部链接', 2048602512432431104, now(), null), -(2048602513590059008, 'sys_login_status', '失败', '0', 'error', 1, 1, '登录失败状态', 2048602512495345664, now(), null), -(2048602513657167872, 'sys_login_status', '成功', '1', 'success', 2, 1, '登录成功状态', 2048602512495345664, now(), null), -(2048602513720082432, 'sys_data_rule_operator', 'AND', '0', 'green', 1, 1, '逻辑 AND 运算符', 2048602512549871616, now(), null), -(2048602513782996992, 'sys_data_rule_operator', 'OR', '1', 'gold', 2, 1, '逻辑 OR 运算符', 2048602512549871616, now(), null), -(2048602513850105856, 'sys_data_rule_expression', '等于(==)', '0', 'success', 1, 1, '等于比较表达式', 2048602512616980480, now(), null), -(2048602513917214720, 'sys_data_rule_expression', '不等于(!=)', '1', 'error', 2, 1, '不等于比较表达式', 2048602512616980480, now(), null), -(2048602513984323584, 'sys_data_rule_expression', '大于(>)', '2', 'magenta', 3, 1, '大于比较表达式', 2048602512616980480, now(), null), -(2048602514051432448, 'sys_data_rule_expression', '大于等于(>=)', '3', 'volcano', 4, 1, '大于等于比较表达式', 2048602512616980480, now(), null), -(2048602514118541312, 'sys_data_rule_expression', '小于(<)', '4', 'gold', 5, 1, '小于比较表达式', 2048602512616980480, now(), null), -(2048602514168872960, 'sys_data_rule_expression', '小于等于(<=)', '5', 'orange', 6, 1, '小于等于比较表达式', 2048602512616980480, now(), null), -(2048602514231787520, 'sys_data_rule_expression', '包含(in)', '6', 'purple', 7, 1, '包含表达式', 2048602512616980480, now(), null), -(2048602514303090688, 'sys_data_rule_expression', '不包含(not in)', '7', 'error', 8, 1, '不包含表达式', 2048602512616980480, now(), null), -(2048602514366005248, 'sys_frontend_config', '否', '0', 'red', 1, 1, '不是前端参数配置', 2048602512692477952, now(), null), -(2048602514433114112, 'sys_frontend_config', '是', '1', 'green', 2, 1, '是前端参数配置', 2048602512692477952, now(), null), -(2048602514500222976, 'task_strategy_type', 'Interval(间隔)', '0', 'cyan', 1, 1, '时间间隔策略', 2048602512755392512, now(), null), -(2048602514567331840, 'task_strategy_type', 'Crontab(计划)', '1', 'purple', 2, 1, '时间表达式策略', 2048602512755392512, now(), null), -(2048602514634440704, 'task_period_type', '天', 'days', 'processing', 1, 1, '定时任务周期类型-天', 2048602512818307072, now(), null), -(2048602514701549568, 'task_period_type', '小时', 'hours', 'magenta', 2, 1, '定时任务周期类型-小时', 2048602512818307072, now(), null), -(2048602514768658432, 'task_period_type', '分钟', 'minutes', 'volcano', 3, 1, '定时任务周期类型-分钟', 2048602512818307072, now(), null), -(2048602514835767296, 'task_period_type', '秒', 'seconds', 'gold', 4, 1, '定时任务周期类型-秒', 2048602512818307072, now(), null), -(2048602514902876160, 'task_period_type', '微妙', 'microseconds', 'warning', 5, 1, '定时任务周期类型-微妙', 2048602512818307072, now(), null), -(2048602514969985024, 'notice', '通知', '0', 'magenta', 1, 1, '通知类型', 2048602512881221632, now(), null), -(2048602515037093888, 'notice', '公告', '1', 'purple', 2, 1, '公告类型', 2048602512881221632, now(), null), -(2048602515104202752, 'user_online_status', '离线', '0', 'warning', 1, 1, '用户离线状态', 2048602512948330496, now(), null), -(2048602515171311616, 'user_online_status', '在线', '1', 'success', 2, 1, '用户在线状态', 2048602512948330496, now(), null), -(2048602515238420480, 'sys_plugin_type', '压缩包', '0', 'gold', 1, 1, '插件类型-压缩包', 2048602513015439360, now(), null), -(2048602515305529344, 'sys_plugin_type', 'GIT', '1', 'processing', 2, 1, '插件类型-GIT', 2048602513015439360, now(), null); +(1, 'sys_status', '停用', '0', 'red', 1, 1, '停用状态', 1, now(), null), +(2, 'sys_status', '正常', '1', 'green', 2, 1, '正常状态', 1, now(), null), +(3, 'sys_choose', '关闭', 'false', 'error', 1, 1, '关闭状态', 2, now(), null), +(4, 'sys_choose', '开启', 'true', 'success', 2, 1, '开启状态', 2, now(), null), +(5, 'sys_menu_type', '目录', '0', 'orange', 1, 1, '菜单目录', 3, now(), null), +(6, 'sys_menu_type', '菜单', '1', 'default', 2, 1, '普通菜单', 3, now(), null), +(7, 'sys_menu_type', '按钮', '2', 'processing', 3, 1, '菜单按钮', 3, now(), null), +(8, 'sys_menu_type', '内嵌', '3', 'cyan', 4, 1, '内嵌页面', 3, now(), null), +(9, 'sys_menu_type', '外链', '4', 'purple', 5, 1, '外部链接', 3, now(), null), +(10, 'sys_login_status', '失败', '0', 'error', 1, 1, '登录失败状态', 4, now(), null), +(11, 'sys_login_status', '成功', '1', 'success', 2, 1, '登录成功状态', 4, now(), null), +(12, 'sys_data_rule_operator', 'AND', '0', 'green', 1, 1, '逻辑 AND 运算符', 5, now(), null), +(13, 'sys_data_rule_operator', 'OR', '1', 'gold', 2, 1, '逻辑 OR 运算符', 5, now(), null), +(14, 'sys_data_rule_expression', '等于(==)', '0', 'success', 1, 1, '等于比较表达式', 6, now(), null), +(15, 'sys_data_rule_expression', '不等于(!=)', '1', 'error', 2, 1, '不等于比较表达式', 6, now(), null), +(16, 'sys_data_rule_expression', '大于(>)', '2', 'magenta', 3, 1, '大于比较表达式', 6, now(), null), +(17, 'sys_data_rule_expression', '大于等于(>=)', '3', 'volcano', 4, 1, '大于等于比较表达式', 6, now(), null), +(18, 'sys_data_rule_expression', '小于(<)', '4', 'gold', 5, 1, '小于比较表达式', 6, now(), null), +(19, 'sys_data_rule_expression', '小于等于(<=)', '5', 'orange', 6, 1, '小于等于比较表达式', 6, now(), null), +(20, 'sys_data_rule_expression', '包含(in)', '6', 'purple', 7, 1, '包含表达式', 6, now(), null), +(21, 'sys_data_rule_expression', '不包含(not in)', '7', 'error', 8, 1, '不包含表达式', 6, now(), null), +(22, 'sys_frontend_config', '否', '0', 'red', 1, 1, '不是前端参数配置', 7, now(), null), +(23, 'sys_frontend_config', '是', '1', 'green', 2, 1, '是前端参数配置', 7, now(), null), +(24, 'task_strategy_type', 'Interval(间隔)', '0', 'cyan', 1, 1, '时间间隔策略', 8, now(), null), +(25, 'task_strategy_type', 'Crontab(计划)', '1', 'purple', 2, 1, '时间表达式策略', 8, now(), null), +(26, 'task_period_type', '天', 'days', 'processing', 1, 1, '定时任务周期类型-天', 9, now(), null), +(27, 'task_period_type', '小时', 'hours', 'magenta', 2, 1, '定时任务周期类型-小时', 9, now(), null), +(28, 'task_period_type', '分钟', 'minutes', 'volcano', 3, 1, '定时任务周期类型-分钟', 9, now(), null), +(29, 'task_period_type', '秒', 'seconds', 'gold', 4, 1, '定时任务周期类型-秒', 9, now(), null), +(30, 'task_period_type', '微妙', 'microseconds', 'warning', 5, 1, '定时任务周期类型-微妙', 9, now(), null), +(31, 'notice', '通知', '0', 'magenta', 1, 1, '通知类型', 10, now(), null), +(32, 'notice', '公告', '1', 'purple', 2, 1, '公告类型', 10, now(), null), +(33, 'user_online_status', '离线', '0', 'warning', 1, 1, '用户离线状态', 11, now(), null), +(34, 'user_online_status', '在线', '1', 'success', 2, 1, '用户在线状态', 11, now(), null), +(35, 'sys_plugin_type', '压缩包', '0', 'gold', 1, 1, '插件类型-压缩包', 12, now(), null), +(36, 'sys_plugin_type', 'GIT', '1', 'processing', 2, 1, '插件类型-GIT', 12, now(), null);