-- ----新增
-- 菜单 SQL
insert into sys_menu (menu_id, menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible,
                      status, perms, icon, btn_class, btn_script, create_by, create_time, update_by, update_time,
                      remark)
values (3, '校友活动管理', 0, '0', 'amActivity', '', 1, 0, 'M', '0', '0', '', 'x-diamond-fill',
        '', '', 'admin', sysdate(), '', null, '');

insert into sys_menu (menu_id, menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible,
                      status, perms, icon, create_by, create_time, update_by, update_time, remark)
values (2001, '校友信息管理', '3', '1', 'amActivity', 'system/amActivity/index', 1, 0, 'C', '0', '0',
        'amActivity:alumnus',
        'people-fill',
        'admin',
        sysdate(), '', null, '校友菜单');

-- 按钮 SQL
insert into sys_menu (menu_id, menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible,
                      status, perms, icon, btn_class, btn_script, create_by, create_time, update_by, update_time,
                      remark)
values (2002, '校友查询', 2001, '1', '#', '', 1, 0, 'F', '0', '0', 'amActivity:alumnus:query', 'eye', '', '',
        'admin',
        sysdate(), '', null, '');
insert into sys_menu (menu_id, menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible,
                      status, perms, icon, btn_class, btn_script, create_by, create_time, update_by, update_time,
                      remark)
values (2003, '校友新增', 2001, '2', '#', '', 1, 0, 'F', '0', '0', 'amActivity:alumnus:add', 'plus-square',
        'btn btn-light-primary', 'handleCreate', 'admin', sysdate(), '', null, '');
insert into sys_menu (menu_id, menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible,
                      status, perms, icon, btn_class, btn_script, create_by, create_time, update_by, update_time,
                      remark)
values (2004, '校友修改', 2001, '3', '#', '', 1, 0, 'F', '0', '0', 'amActivity:alumnus:edit', 'pencil-square',
        'btn btn-light-success', 'handleUpdate@1', 'admin', sysdate(), '', null, '');
insert into sys_menu (menu_id, menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible,
                      status, perms, icon, btn_class, btn_script, create_by, create_time, update_by, update_time,
                      remark)
values (2005, '校友删除', 2001, '4', '#', '', 1, 0, 'F', '0', '0', 'amActivity:alumnus:remove', 'dash-square',
        'btn btn-light-danger', 'handleDelete@0', 'admin', sysdate(), '', null, '');
insert into sys_menu (menu_id, menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible,
                      status, perms, icon, btn_class, btn_script, create_by, create_time, update_by, update_time,
                      remark)
values (2006, '校友导出', 2001, '5', '#', '', 1, 0, 'F', '0', '0', 'amActivity:alumnus:export', 'cloud-download',
        'btn btn-light-info', 'handleExport', 'admin', sysdate(), '', null, '');
insert into sys_menu (menu_id, menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible,
                      status, perms, icon, btn_class, btn_script, create_by, create_time, update_by, update_time,
                      remark)
values (2007, '校友审核', 2001, '5', '#', '', 1, 0, 'F', '0', '0', 'amActivity:alumnus:audit', '',
        '', '', 'admin', sysdate(), '', null, '');

insert into sys_role_menu
values ('1', 3);
insert into sys_role_menu
values ('1', 2001);
insert into sys_role_menu
values ('1', 2002);
insert into sys_role_menu
values ('1', 2003);
insert into sys_role_menu
values ('1', 2004);
insert into sys_role_menu
values ('1', 2005);
insert into sys_role_menu
values ('1', 2006);
insert into sys_role_menu
values ('1', 2007);

insert into sys_role_menu
values ('2', 3);
insert into sys_role_menu
values ('2', 2001);
insert into sys_role_menu
values ('2', 2002);
insert into sys_role_menu
values ('2', 2003);
insert into sys_role_menu
values ('2', 2004);
insert into sys_role_menu
values ('2', 2005);
insert into sys_role_menu
values ('2', 2006);
insert into sys_role_menu
values ('2', 2007);

insert into sys_role_menu
values ('3', 3);
insert into sys_role_menu
values ('3', 2001);
insert into sys_role_menu
values ('3', 2002);
insert into sys_role_menu
values ('3', 2003);
insert into sys_role_menu
values ('3', 2004);

insert into sys_dict_type
values (16, '活动审核状态', 'activity_audit_status', '0', 'admin', sysdate(), '', null, '活动审核状态');
insert into sys_dict_data
values (46, 0, '申请中', '0', 'activity_audit_status', '', 'info', 'Y', '0', 'admin', sysdate(), '', null, '');
insert into sys_dict_data
values (47, 0, '报名中', '1', 'activity_audit_status', '', 'primary', 'N', '0', 'admin', sysdate(), '', null, '');
insert into sys_dict_data
values (48, 0, '未通过', '2', 'activity_audit_status', '', 'danger', 'N', '0', 'admin', sysdate(), '', null, '');
# insert into sys_dict_data
# values (49, 0, '已结束', '3', 'activity_audit_status', '', 'danger', 'N', '0', 'admin', sysdate(), '', null, '');

insert into sys_dict_type
values (17, '活动报名状态', 'activity_apply_status', '0', 'admin', sysdate(), '', null, '活动报名状态');
insert into sys_dict_data
values (50, 0, '报名中', '0', 'activity_apply_status', '', 'primary', 'Y', '0', 'admin', sysdate(), '', null, '');
insert into sys_dict_data
values (51, 1, '报名成功', '1', 'activity_apply_status', '', 'success', 'N', '0', 'admin', sysdate(), '', null, '');
insert into sys_dict_data
values (52, 2, '报名失败', '2', 'activity_apply_status', '', 'danger', 'N', '0', 'admin', sysdate(), '', null, '');

insert into sys_dict_type
values (18, '活动付费状态', 'activity_cost_status', '0', 'admin', sysdate(), '', null, '活动付费状态');
insert into sys_dict_data
values (53, 0, '未付费', '0', 'activity_cost_status', '', 'info', 'Y', '0', 'admin', sysdate(), '', null, '');
insert into sys_dict_data
values (54, 1, '已付费', '1', 'activity_cost_status', '', 'success', 'N', '0', 'admin', sysdate(), '', null, '');


-- 菜单 SQL
insert into sys_menu (menu_id, menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible,
                      status, perms, icon, create_by, create_time, update_by, update_time, remark)
values (2008, '活动信息管理', '3', '3', 'activity', 'amActivity/activity/index', 1, 0, 'C', '0', '0',
        'amActivity:activity', 'boxes', 'admin', sysdate(), '', null, '活动信息菜单');

-- 按钮 SQL
insert into sys_menu (menu_id, menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible,
                      status, perms, icon, btn_class, btn_script, create_by, create_time, update_by, update_time,
                      remark)
values (2009, '活动查询', 2008, '1', '#', '', 1, 0, 'F', '0', '0', 'amActivity:activity:query', 'eye', '', '',
        'admin', sysdate(), '', null, '');
insert into sys_menu (menu_id, menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible,
                      status, perms, icon, btn_class, btn_script, create_by, create_time, update_by, update_time,
                      remark)
values (2010, '活动新增', 2008, '2', '#', '', 1, 0, 'F', '0', '0', 'amActivity:activity:add', 'plus-square',
        'btn btn-light-primary', 'handleCreate', 'admin', sysdate(), '', null, '');
insert into sys_menu (menu_id, menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible,
                      status, perms, icon, btn_class, btn_script, create_by, create_time, update_by, update_time,
                      remark)
values (2011, '活动修改', 2008, '3', '#', '', 1, 0, 'F', '0', '0', 'amActivity:activity:edit', 'pencil-square',
        'btn btn-light-success', 'handleUpdate@1', 'admin', sysdate(), '', null, '');
insert into sys_menu (menu_id, menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible,
                      status, perms, icon, btn_class, btn_script, create_by, create_time, update_by, update_time,
                      remark)
values (2012, '活动删除', 2008, '4', '#', '', 1, 0, 'F', '0', '0', 'amActivity:activity:remove', 'dash-square',
        'btn btn-light-danger', 'handleDelete@0', 'admin', sysdate(), '', null, '');
insert into sys_menu (menu_id, menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible,
                      status, perms, icon, btn_class, btn_script, create_by, create_time, update_by, update_time,
                      remark)
values (2013, '活动审核', 2008, '5', '#', '', 1, 0, 'F', '0', '0', 'amActivity:activity:audit', '', '', '', 'admin',
        sysdate(), '', null, '');
insert into sys_menu (menu_id, menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible,
                      status, perms, icon, btn_class, btn_script, create_by, create_time, update_by, update_time,
                      remark)
values (2014, '活动置顶', 2008, '6', '#', '', 1, 0, 'F', '0', '0', 'amActivity:activity:top', '', '', '', 'admin',
        sysdate(), '', null, '');
insert into sys_menu (menu_id, menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible,
                      status, perms, icon, btn_class, btn_script, create_by, create_time, update_by, update_time,
                      remark)
values (2015, '结束活动', 2008, '7', '#', '', 1, 0, 'F', '0', '0', 'amActivity:activity:close', '', '', '', 'admin',
        sysdate(), '', null, '');
insert into sys_menu (menu_id, menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible,
                      status, perms, icon, btn_class, btn_script, create_by, create_time, update_by, update_time,
                      remark)
values (2016, '活动报名审核', 2008, '8', '#', '', 1, 0, 'F', '0', '0', 'amActivity:activity:apply', '', '', '', 'admin',
        sysdate(), '', null, '');
insert into sys_menu (menu_id, menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible,
                      status, perms, icon, btn_class, btn_script, create_by, create_time, update_by, update_time,
                      remark)
values (2017, '活动付费审核', 2008, '9', '#', '', 1, 0, 'F', '0', '0', 'amActivity:activity:cost', '', '', '', 'admin',
        sysdate(), '', null, '');
insert into sys_menu (menu_id, menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible,
                      status, perms, icon, btn_class, btn_script, create_by, create_time, update_by, update_time,
                      remark)
values (2018, '活动热门', 2008, '10', '#', '', 1, 0, 'F', '0', '0', 'amActivity:activity:hot', '', '', '', 'admin',
        sysdate(), '', null, '');


insert into sys_role_menu
values ('1', 2008);
insert into sys_role_menu
values ('1', 2009);
insert into sys_role_menu
values ('1', 2010);
insert into sys_role_menu
values ('1', 2011);
insert into sys_role_menu
values ('1', 2012);
insert into sys_role_menu
values ('1', 2013);
insert into sys_role_menu
values ('1', 2014);
insert into sys_role_menu
values ('1', 2015);
insert into sys_role_menu
values ('1', 2016);
insert into sys_role_menu
values ('1', 2017);
insert into sys_role_menu
values ('1', 2018);

insert into sys_role_menu
values ('2', 2008);
insert into sys_role_menu
values ('2', 2009);
insert into sys_role_menu
values ('2', 2010);
insert into sys_role_menu
values ('2', 2011);
insert into sys_role_menu
values ('2', 2012);
insert into sys_role_menu
values ('2', 2013);
insert into sys_role_menu
values ('2', 2014);
insert into sys_role_menu
values ('2', 2015);
insert into sys_role_menu
values ('2', 2016);
insert into sys_role_menu
values ('2', 2017);
insert into sys_role_menu
values ('2', 2018);

insert into sys_role_menu
values ('3', 2008);
insert into sys_role_menu
values ('3', 2009);
insert into sys_role_menu
values ('3', 2010);
insert into sys_role_menu
values ('3', 2011);
insert into sys_role_menu
values ('3', 2016);
insert into sys_role_menu
values ('3', 2017);


insert into sys_dict_type
values (19, '互助审核状态', 'help_audit_status', '0', 'admin', sysdate(), '', null, '互助审核状态');
insert into sys_dict_data
values (55, 0, '审核中', '0', 'help_audit_status', '', 'primary', 'Y', '0', 'admin', sysdate(), '', null, '');
insert into sys_dict_data
values (56, 1, '已审核', '1', 'help_audit_status', '', 'success', 'N', '0', 'admin', sysdate(), '', null, '');
insert into sys_dict_data
values (57, 2, '未通过', '2', 'help_audit_status', '', 'danger', 'N', '0', 'admin', sysdate(), '', null, '');
# insert into sys_dict_data
# values (58, 2, '已关闭', '2', 'help_audit_status', '', 'danger', 'N', '0', 'admin', sysdate(), '', null, '');

insert into sys_dict_type
values (20, '资讯状态', 'news_status', '0', 'admin', sysdate(), '', null, '资讯状态');
insert into sys_dict_data
values (59, 0, '草稿', '0', 'news_status', '', 'info', 'Y', '0', 'admin', sysdate(), '', null, '');
insert into sys_dict_data
values (60, 1, '已发布', '1', 'news_status', '', 'success', 'N', '0', 'admin', sysdate(), '', null, '');

insert into sys_dict_type
values (21, '结束状态', 'sys_close_status', '0', 'admin', sysdate(), '', null, '结束状态');
insert into sys_dict_data
values (61, 0, '未结束', '0', 'sys_close_status', '', 'success', 'Y', '0', 'admin', sysdate(), '', null, '');
insert into sys_dict_data
values (62, 1, '已结束', '1', 'sys_close_status', '', 'danger', 'N', '0', 'admin', sysdate(), '', null, '');
-- 菜单 SQL
insert into sys_menu (menu_id, menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible,
                      status, perms, icon, create_by, create_time, update_by, update_time, remark)
values (2019, '互助信息管理', '3', '4', 'help', 'amActivity/help/index', 1, 0, 'C', '0', '0', 'amActivity:help',
        'heart-fill',
        'admin', sysdate(), '', null, '互助信息菜单');

-- 按钮 SQL
insert into sys_menu (menu_id, menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible,
                      status, perms, icon, btn_class, btn_script, create_by, create_time, update_by, update_time,
                      remark)
values (2020, '互助查询', 2019, '1', '#', '', 1, 0, 'F', '0', '0', 'amActivity:help:query', 'eye', '', '', 'admin',
        sysdate(), '', null, '');

insert into sys_menu (menu_id, menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible,
                      status, perms, icon, btn_class, btn_script, create_by, create_time, update_by, update_time,
                      remark)
values (2021, '互助新增', 2019, '2', '#', '', 1, 0, 'F', '0', '0', 'amActivity:help:add', 'plus-square',
        'btn btn-light-primary', 'handleCreate', 'admin', sysdate(), '', null, '');

insert into sys_menu (menu_id, menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible,
                      status, perms, icon, btn_class, btn_script, create_by, create_time, update_by, update_time,
                      remark)
values (2022, '互助修改', 2019, '3', '#', '', 1, 0, 'F', '0', '0', 'amActivity:help:edit', 'pencil-square',
        'btn btn-light-success', 'handleUpdate@1', 'admin', sysdate(), '', null, '');

insert into sys_menu (menu_id, menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible,
                      status, perms, icon, btn_class, btn_script, create_by, create_time, update_by, update_time,
                      remark)
values (2023, '互助删除', 2019, '4', '#', '', 1, 0, 'F', '0', '0', 'amActivity:help:remove', 'dash-square',
        'btn btn-light-danger', 'handleDelete@0', 'admin', sysdate(), '', null, '');

insert into sys_menu (menu_id, menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible,
                      status, perms, icon, btn_class, btn_script, create_by, create_time, update_by, update_time,
                      remark)
values (2024, '互助审核', 2019, '5', '#', '', 1, 0, 'F', '0', '0', 'amActivity:help:audit', '', '', '', 'admin',
        sysdate(), '', null, '');

insert into sys_menu (menu_id, menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible,
                      status, perms, icon, btn_class, btn_script, create_by, create_time, update_by, update_time,
                      remark)
values (2025, '互助置顶', 2019, '6', '#', '', 1, 0, 'F', '0', '0', 'amActivity:help:top', '', '', '', 'admin',
        sysdate(), '', null, '');
insert into sys_menu (menu_id, menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible,
                      status, perms, icon, btn_class, btn_script, create_by, create_time, update_by, update_time,
                      remark)
values (2026, '互助热门', 2019, '7', '#', '', 1, 0, 'F', '0', '0', 'amActivity:help:hot', '', '', '', 'admin',
        sysdate(), '', null, '');

insert into sys_role_menu
values ('1', 2019);
insert into sys_role_menu
values ('1', 2020);
insert into sys_role_menu
values ('1', 2021);
insert into sys_role_menu
values ('1', 2022);
insert into sys_role_menu
values ('1', 2023);
insert into sys_role_menu
values ('1', 2024);
insert into sys_role_menu
values ('1', 2025);
insert into sys_role_menu
values ('1', 2026);

insert into sys_role_menu
values ('2', 2019);
insert into sys_role_menu
values ('2', 2020);
insert into sys_role_menu
values ('2', 2021);
insert into sys_role_menu
values ('2', 2022);
insert into sys_role_menu
values ('2', 2023);
insert into sys_role_menu
values ('2', 2024);
insert into sys_role_menu
values ('2', 2025);
insert into sys_role_menu
values ('2', 2026);

insert into sys_role_menu
values ('3', 2019);
insert into sys_role_menu
values ('3', 2020);
insert into sys_role_menu
values ('3', 2021);
insert into sys_role_menu
values ('3', 2022);
insert into sys_role_menu
values ('3', 2023);


-- 菜单 SQL
insert into sys_menu (menu_id, menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible,
                      status, perms, icon, create_by, create_time, update_by, update_time, remark)
values (2027, '资讯信息管理', '3', '2', 'news', 'amActivity/news/index', 1, 0, 'C', '0', '0', 'amActivity:news',
        'receipt',
        'admin', sysdate(), '', null, '资讯信息菜单');

-- 按钮 SQL
insert into sys_menu (menu_id, menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible,
                      status, perms, icon, btn_class, btn_script, create_by, create_time, update_by, update_time,
                      remark)
values (2028, '资讯查询', 2027, '1', '#', '', 1, 0, 'F', '0', '0', 'amActivity:news:query', 'eye', '', '', 'admin',
        sysdate(), '', null, '');

insert into sys_menu (menu_id, menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible,
                      status, perms, icon, btn_class, btn_script, create_by, create_time, update_by, update_time,
                      remark)
values (2029, '资讯新增', 2027, '2', '#', '', 1, 0, 'F', '0', '0', 'amActivity:news:add', 'plus-square',
        'btn btn-light-primary', 'handleCreate', 'admin', sysdate(), '', null, '');

insert into sys_menu (menu_id, menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible,
                      status, perms, icon, btn_class, btn_script, create_by, create_time, update_by, update_time,
                      remark)
values (2030, '资讯修改', 2027, '3', '#', '', 1, 0, 'F', '0', '0', 'amActivity:news:edit', 'pencil-square',
        'btn btn-light-success', 'handleUpdate@1', 'admin', sysdate(), '', null, '');

insert into sys_menu (menu_id, menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible,
                      status, perms, icon, btn_class, btn_script, create_by, create_time, update_by, update_time,
                      remark)
values (2031, '资讯删除', 2027, '4', '#', '', 1, 0, 'F', '0', '0', 'amActivity:news:remove', 'dash-square',
        'btn btn-light-danger', 'handleDelete@0', 'admin', sysdate(), '', null, '');
insert into sys_menu (menu_id, menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible,
                      status, perms, icon, btn_class, btn_script, create_by, create_time, update_by, update_time,
                      remark)
values (2032, '资讯发布', 2027, '5', '#', '', 1, 0, 'F', '0', '0', 'amActivity:news:publish', 'envelope-open',
        'btn btn-light-info', 'handlePublisht@1', 'admin', sysdate(), '', null, '');
insert into sys_menu (menu_id, menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible,
                      status, perms, icon, btn_class, btn_script, create_by, create_time, update_by, update_time,
                      remark)
values (2033, '资讯置顶', 2027, '6', '#', '', 1, 0, 'F', '0', '0', 'amActivity:news:top', '',
        '', '', 'admin', sysdate(), '', null, '');
insert into sys_menu (menu_id, menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible,
                      status, perms, icon, btn_class, btn_script, create_by, create_time, update_by, update_time,
                      remark)
values (2034, '资讯热门', 2027, '7', '#', '', 1, 0, 'F', '0', '0', 'amActivity:news:hot', '',
        '', '', 'admin', sysdate(), '', null, '');

insert into sys_role_menu
values ('1', 2027);
insert into sys_role_menu
values ('1', 2028);
insert into sys_role_menu
values ('1', 2029);
insert into sys_role_menu
values ('1', 2030);
insert into sys_role_menu
values ('1', 2031);
insert into sys_role_menu
values ('1', 2032);
insert into sys_role_menu
values ('1', 2033);
insert into sys_role_menu
values ('1', 2034);

insert into sys_role_menu
values ('2', 2027);
insert into sys_role_menu
values ('2', 2028);
insert into sys_role_menu
values ('2', 2029);
insert into sys_role_menu
values ('2', 2030);
insert into sys_role_menu
values ('2', 2031);
insert into sys_role_menu
values ('2', 2032);
insert into sys_role_menu
values ('2', 2033);
insert into sys_role_menu
values ('2', 2034);

insert into sys_role_menu
values ('3', 2027);
insert into sys_role_menu
values ('3', 2028);
