#####    jeeppay-plus S3 代理商模块 表结构及菜单权限初始化数据SQL   #####

-- 代理商信息表
DROP TABLE IF EXISTS t_agent_info;
CREATE TABLE `t_agent_info` (
                                `agent_no` VARCHAR(64) NOT NULL COMMENT '代理商账号',
                                `agent_name` VARCHAR(64) NOT NULL COMMENT '代理商名称',
                                `agent_short_name` VARCHAR(32) NOT NULL COMMENT '代理商简称',
                                `isv_no` VARCHAR(64) NOT NULL COMMENT '服务商号',
                                `pid` VARCHAR(64) NOT NULL DEFAULT '' COMMENT '上级代理商号， 空串表示顶级代理商',
                                `pname` VARCHAR(32) COMMENT '上级代理商简称',
                                `contact_name` VARCHAR(32) COMMENT '联系人姓名',
                                `contact_tel` VARCHAR(32) COMMENT '联系人手机号',
                                `contact_email` VARCHAR(32) COMMENT '联系人邮箱',
                                `state` TINYINT(6) NOT NULL DEFAULT 1 COMMENT '代理商状态: 0-停用, 1-正常, 2-待审核, 3-审核驳回, 4-未认证',
                                `level` INT(11) NOT NULL DEFAULT 1 COMMENT '代理商等级',
                                `add_agent_flag` TINYINT(6) NOT NULL DEFAULT 0 COMMENT '是否允许发展子代理: 0-不允许, 1-允许',
                                `add_mch_flag` TINYINT(6) NOT NULL DEFAULT 0 COMMENT '是否允许发展子商户: 0-不允许, 1-允许',
                                `remark` VARCHAR(128) COMMENT '代理商备注',
                                `audit_remark` VARCHAR(128) COMMENT '审核备注',
                                `cashout_fee_rule_type` TINYINT(6) NOT NULL DEFAULT 1 COMMENT '手续费计算公式类型： 1-使用系统默认配置, 2-自定义',
                                `cashout_fee_rule` VARCHAR(200) NOT NULL DEFAULT '{}' COMMENT '手续费计算公式',
                                `sett_account_type` VARCHAR(20) COMMENT '结算账户类型： WX_CASH-微信零钱; ALIPAY_CASH-支付宝转账; BANK_CARD-银行卡; BANK_PUBLIC-对公; BANK_PRIVATE-对私',
                                `sett_account_no` VARCHAR(64) COMMENT '结算账户账号',
                                `sett_account_name` VARCHAR(64) COMMENT '结算账户姓名',
                                `sett_account_bank` VARCHAR(32) COMMENT '结算账户开户行名称',
                                `sett_account_sub_bank` VARCHAR(32) COMMENT '开户行支行名称',
                                `sett_account_telphone` VARCHAR(32) COMMENT '结算账户联系人手机号（一般为代理商手机号）',
                                `license_img` VARCHAR(128) COMMENT '营业执照照片',
                                `idcard1_img` VARCHAR(128) COMMENT '身份证人像面照片',
                                `idcard2_img` VARCHAR(128) COMMENT '身份证国徽面照片',
                                `idcard_in_hand_img` VARCHAR(128) COMMENT '手持身份证照片',
                                `bank_card_img` VARCHAR(128) COMMENT '银行卡照片',
                                `permit_img` VARCHAR(128) COMMENT '许可证照片',
                                `agent_type` TINYINT(6) NOT NULL DEFAULT 1 COMMENT '代理商类型: 1-个人, 2-企业',
                                `init_user_id` BIGINT(20) DEFAULT NULL COMMENT '初始用户ID（创建代理商时，允许代理商登录的用户）',
                                `login_username` varchar(32) NOT NULL COMMENT '登录用户名',
                                `sipw` VARCHAR(64) COMMENT '支付密码(敏感信息密码Sensitive information password)',
                                `freeze_amount` BIGINT(20) NOT NULL DEFAULT 0 COMMENT '钱包冻结金额, 单位分',
                                `freeze_desc`  VARCHAR(256) DEFAULT NULL COMMENT '冻结原因',
                                `created_uid` BIGINT(20) COMMENT '创建者用户ID',
                                `created_by` VARCHAR(64) COMMENT '创建者姓名',
                                `created_at` TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3) COMMENT '创建时间',
                                `updated_at` TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3) ON UPDATE CURRENT_TIMESTAMP(3) COMMENT '更新时间',
                                PRIMARY KEY (`agent_no`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='代理商信息表';

-- 提现结算记录表
DROP TABLE IF EXISTS t_cashout_record;
CREATE TABLE `t_cashout_record` (
                                    `rid` BIGINT(20) NOT NULL AUTO_INCREMENT COMMENT '提现记录ID',
                                    `info_id` VARCHAR(64) NOT NULL COMMENT '代理商号等',
                                    `info_type` VARCHAR(10) NOT NULL COMMENT '系统类型： 参考：SYS_ROLE_TYPE ',
                                    `info_name` VARCHAR(64) COMMENT '名称快照',
                                    `apply_amount` BIGINT(20) NOT NULL COMMENT '申请金额,单位分',
                                    `sett_fee_amount` BIGINT(20) NOT NULL COMMENT '手续费金额,单位分',
                                    `sett_fee_rule` VARCHAR(100) NOT NULL DEFAULT '' COMMENT '手续费计算公式（快照）',
                                    `sett_amount` BIGINT(20) NOT NULL COMMENT '最终结算金额 （申请-手续费）, 单位分',
                                    `sett_account_type` VARCHAR(20) NOT NULL COMMENT '结算账户类型： WX_CASH-微信零钱; ALIPAY_CASH-支付宝转账; BANK_CARD-银行卡',
                                    `sett_account_no` VARCHAR(64) NOT NULL COMMENT '结算账户账号',
                                    `sett_account_name` VARCHAR(64) COMMENT '结算账户姓名',
                                    `sett_account_bank` VARCHAR(32) COMMENT '结算账户开户行名称',
                                    `sett_account_sub_bank` VARCHAR(32) COMMENT '开户行支行名称',
                                    `sett_account_telphone` VARCHAR(32) COMMENT '结算账户联系人手机号（一般为代理商手机号）',
                                    `apply_remark`  VARCHAR(100)  NOT NULL DEFAULT '' COMMENT '用户提现备注',
                                    `sett_info` VARCHAR(100) NOT NULL DEFAULT '' COMMENT '结算备注[系统生成]',
                                    `state` TINYINT(6) NOT NULL DEFAULT '1' COMMENT '结算状态: 1-审核中, 2-审核失败, 3-结算中, 4-结算成功, 5-结算失败',
                                    `sett_cert_img` VARCHAR(256) COMMENT '申请资料',
                                    `transfer_cert_img` VARCHAR(256) COMMENT '打款凭证（运营平台）',
                                    `sett_type` TINYINT(6) NOT NULL COMMENT '提现类型： 1-佣金提现',
                                    `transfer_mch_app_id`             VARCHAR(64) COMMENT '发起转账的自营应用ID',
                                    `transfer_order_id`               VARCHAR(64) COMMENT '转账系统订单号',
                                    `transfer_if_code`                VARCHAR(64) COMMENT '转账接口类型',
                                    `transfer_platform_mchfee_amount` BIGINT(20) COMMENT '自营商户费率费用',
                                    `transfer_platform_cost_amount`   BIGINT(20) COMMENT '平台真实成本费用（ 来自转账订单数据 = 自营商户费率费用 - 平台利润 ）',
                                    `audit_time` DATETIME DEFAULT NULL COMMENT '审核时间',
                                    `audit_remark` VARCHAR(100) COMMENT '审核备注',
                                    `created_at` TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3) COMMENT '创建时间',
                                    `updated_at` TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3) ON UPDATE CURRENT_TIMESTAMP(3) COMMENT '更新时间',
                                    PRIMARY KEY (`rid`)
) ENGINE=InnoDB AUTO_INCREMENT=80000001 DEFAULT CHARSET=utf8mb4 COMMENT='提现结算记录表';

-- 代理商配置表
DROP TABLE IF EXISTS `t_agent_config`;
CREATE TABLE `t_agent_config` (
      `agent_no` VARCHAR(64) NOT NULL COMMENT '代理商号',
      `config_key` VARCHAR(50) NOT NULL COMMENT '配置KEY',
      `config_val` TEXT NOT NULL COMMENT '配置内容项',
      `group_key` TEXT NOT NULL COMMENT '配置分组',
      `created_at` TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3) COMMENT '创建时间',
      `updated_at` TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3) ON UPDATE CURRENT_TIMESTAMP(3) COMMENT '更新时间',
      PRIMARY KEY (`config_key`, `agent_no`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='代理商配置表';

INSERT INTO `t_sys_config` VALUES ('agentSiteUrl', '代理商平台网址(不包含结尾/)', '代理商平台网址(不包含结尾/)', 'applicationConfig', '系统应用配置', 'http://127.0.0.1:9219', 'text', 2, '2021-5-18 14:46:10');
-- 代理商进件初始配置项
INSERT INTO `t_sys_config` VALUES ('agentApplymentPreAudit', '代理商进件是否需要运营平台预审核', '代理商进件是否需要运营平台预审核', 'defaultConfig', '进件初始配置', '0', 'text', 0, '2023-3-29 10:53:30');
INSERT INTO `t_sys_config` VALUES ('agentApplyTimeLimit', '代理商发起进件默认时间限制', '代理商发起进件默认时间限制', 'defaultConfig', '进件初始配置', '', 'text', 0, '2023-3-29 10:53:30');

-- 【运营平台】 代理商管理
insert into t_sys_entitlement values('ENT_AGENT', '代理商管理', 'shop', '', 'RouteView', 'ML', 0, 1,  'ROOT', '35', 'PLATFORM', null, now(), now());
insert into t_sys_entitlement values('ENT_AGENT_INFO', '代理商列表', 'profile', '/agent', 'AgentListPage', 'ML', 0, 1,  'ENT_AGENT', '10', 'PLATFORM', null, now(), now());
insert into t_sys_entitlement values('ENT_AGENT_LIST', '页面：代理商列表', 'no-icon', '', '', 'PB', 0, 1,  'ENT_AGENT_INFO', '0', 'PLATFORM', null, now(), now());
insert into t_sys_entitlement values('ENT_AGENT_INFO_ADD', '按钮：新增', 'no-icon', '', '', 'PB', 0, 1,  'ENT_AGENT_INFO', '0', 'PLATFORM', null, now(), now());
insert into t_sys_entitlement values('ENT_AGENT_INFO_EDIT', '按钮：编辑', 'no-icon', '', '', 'PB', 0, 1,  'ENT_AGENT_INFO', '0', 'PLATFORM', null, now(), now());
insert into t_sys_entitlement values('ENT_AGENT_INFO_VIEW', '按钮：详情', 'no-icon', '', '', 'PB', 0, 1,  'ENT_AGENT_INFO', '0', 'PLATFORM', null, now(), now());
insert into t_sys_entitlement values('ENT_AGENT_INFO_DEL', '按钮：删除', 'no-icon', '', '', 'PB', 0, 1,  'ENT_AGENT_INFO', '0', 'PLATFORM', null, now(), now());
insert into t_sys_entitlement values('ENT_AGENT_RATE_CONFIG', '按钮：费率配置', 'no-icon', '', '', 'PB', 0, 1,  'ENT_AGENT_INFO', '0', 'PLATFORM', null, now(), now());
insert into t_sys_entitlement values('ENT_AGENT_CONFIG_PAGE', '按钮：代理商配置信息', 'no-icon', '', '', 'PB', 0, 1,  'ENT_AGENT_INFO', '0', 'PLATFORM', null, now(), now());
insert into t_sys_entitlement values('ENT_AGENT_BALANCE_CHANGE', '按钮：调账', 'no-icon', '', '', 'PB', 0, 1,  'ENT_AGENT_INFO', '0', 'PLATFORM', null, now(), now());
insert into t_sys_entitlement values('ENT_AGENT_INFO_AUDIT', '按钮：审核', 'no-icon', '', '', 'PB', 0, 1,  'ENT_AGENT_INFO', '0', 'PLATFORM', null, now(), now());
insert into t_sys_entitlement values('ENT_AGENT_INFO_COUNT', '页面：统计', 'no-icon', '', '', 'PB', 0, 1,  'ENT_AGENT_INFO', '0', 'PLATFORM', null, now(), now());

-- 提现管理
insert into t_sys_entitlement values('ENT_PROFIT_CASHOUT_RECORD', '提现申请管理', 'account-book', '/cashouts', 'CashoutRecordListPage', 'ML', 0, 1,  'ENT_PROFIT', '20', 'PLATFORM', null, now(), now());
insert into t_sys_entitlement values('ENT_PROFIT_CASHOUT_RECORD_LIST', '页面：提现单列表', 'no-icon', '', '', 'PB', 0, 1,  'ENT_PROFIT_CASHOUT_RECORD', '0', 'PLATFORM', null, now(), now());
insert into t_sys_entitlement values('ENT_PROFIT_CASHOUT_RECORD_VIEW', '按钮：详情', 'no-icon', '', '', 'PB', 0, 1,  'ENT_PROFIT_CASHOUT_RECORD', '0', 'PLATFORM', null, now(), now());
insert into t_sys_entitlement values('ENT_PROFIT_CASHOUT_RECORD_AUDIT', '按钮：审核', 'no-icon', '', '', 'PB', 0, 1,  'ENT_PROFIT_CASHOUT_RECORD', '0', 'PLATFORM', null, now(), now());
insert into t_sys_entitlement values('ENT_PROFIT_CASHOUT_RECORD_COUNT', '页面：统计', 'no-icon', '', '', 'PB', 0, 1,  'ENT_PROFIT_CASHOUT_RECORD', '0', 'PLATFORM', null, now(), now());

-- 代理商统计
insert into t_sys_entitlement values('ENT_STATISTIC_AGENT', '代理商统计', 'area-chart', '/statistic/agent', 'AgentCountPage', 'ML', 0, 1,  'ENT_ORDER_STATISTIC', '30', 'PLATFORM', null, now(), now());

-- 【代理商系统】 主页
insert into t_sys_entitlement values('ENT_COMMONS', '系统通用菜单', 'no-icon', '', 'RouteView', 'MO', 0, 1,  'ROOT', '-1', 'AGENT', '{epUserEnt:true}', now(), now());
insert into t_sys_entitlement values('ENT_C_USERINFO', '个人中心', 'no-icon', '/current/userinfo', 'CurrentUserInfo', 'MO', 0, 1,  'ENT_COMMONS', '-1', 'AGENT', '{epUserEnt:true}', now(), now());
insert into t_sys_entitlement values('ENT_ARTICLE_NOTICEINFO', '公告管理', 'message', '/notices', 'NoticeInfoPage', 'MO', 0, 1,  'ENT_COMMONS', '-1', 'AGENT', '{epUserEnt:true}', now(), now());

insert into t_sys_entitlement values('ENT_C_MAIN_AGENT_COUNT', '接口：代理商/拓展员统计', 'no-icon', '', '', 'PB', 0, 1,  'ENT_COMMONS', '-1', 'AGENT', '{epUserEnt:true}', now(), now());

insert into t_sys_entitlement values('ENT_AGENT_MAIN', '主页', 'home', '/main', 'MainPage', 'ML', 0, 1,  'ROOT', '1', 'AGENT', null, now(), now());
insert into t_sys_entitlement values('ENT_AGENT_MAIN_PAY_DAY_COUNT', '今日/昨日交易统计', 'no-icon', '', '', 'PB', 0, 1,  'ENT_C_MAIN', '0', 'AGENT', null, now(), now());
insert into t_sys_entitlement values('ENT_AGENT_MAIN_PAY_TREND_COUNT', '趋势图统计', 'no-icon', '', '', 'PB', 0, 1,  'ENT_C_MAIN', '0', 'AGENT', null, now(), now());
insert into t_sys_entitlement values('ENT_AGENT_MAIN_PAY_COUNT', '主页交易统计', 'no-icon', '', '', 'PB', 0, 1,  'ENT_C_MAIN', '0', 'AGENT', null, now(), now());
insert into t_sys_entitlement values('ENT_AGENT_MAIN_PAY_TYPE_COUNT', '主页交易方式统计', 'no-icon', '', '', 'PB', 0, 1,  'ENT_C_MAIN', '0', 'AGENT', null, now(), now());

-- 【代理商系统】 账户中心
insert into t_sys_entitlement values('ENT_AGENT_ACCOUNT_CENTER', '账户中心', 'wallet', '', 'RouteView', 'ML', 0, 1, 'ROOT', '20', 'AGENT', null, now(), now());
insert into t_sys_entitlement values('ENT_AGENT_WALLET', '钱包', 'wallet', '/wallet', 'WalletPage', 'ML', 0, 1,  'ENT_AGENT_ACCOUNT_CENTER', '10', 'AGENT', null, now(), now());
insert into t_sys_entitlement values('ENT_CASHOUT_RECORD_LIST', '页面：提现记录列表', 'no-icon', '', '', 'PB', 0, 1,  'ENT_AGENT_WALLET', '0', 'AGENT', null, now(), now());
insert into t_sys_entitlement values('ENT_CASHOUT_RECORD_DETAIL', '按钮：详情', 'no-icon', '', '', 'PB', 0, 1,  'ENT_AGENT_WALLET', '0', 'AGENT', null, now(), now());
insert into t_sys_entitlement values('ENT_CASHOUT_RECORD_SETT', '按钮：发起提现', 'no-icon', '', '', 'PB', 0, 1,  'ENT_AGENT_WALLET', '0', 'AGENT', null, now(), now());
insert into t_sys_entitlement values('ENT_CASHOUT_PAYWAY_FEE', '按钮：费率', 'no-icon', '', '', 'PB', 0, 1,  'ENT_AGENT_WALLET', '0', 'AGENT', null, now(), now());
insert into t_sys_entitlement values('ENT_CASHOUT_RECORD_COUNT', '页面：统计', 'no-icon', '', '', 'PB', 0, 1,  'ENT_AGENT_WALLET', '0', 'AGENT', null, now(), now());

insert into t_sys_entitlement values('ENT_AGENT_STATISTIC', '数据统计', 'fund-view', '/statistic', 'StatisticsPage', 'ML', 0, 1,  'ENT_AGENT_ACCOUNT_CENTER', '20', 'AGENT', null, now(), now());
insert into t_sys_entitlement values('ENT_AGENT_STATISTIC_COUNT', '页面：代理商统计', 'no-icon', '', '', 'PB', 0, 1,  'ENT_AGENT_STATISTIC', '0', 'AGENT', null, now(), now());

insert into t_sys_entitlement values('ENT_PC', '费率配置', 'file-done', '/passageConfig', 'PayConfigPage', 'ML', 0, 1,  'ENT_AGENT_ACCOUNT_CENTER', '30', 'AGENT', null, now(), now());

insert into t_sys_entitlement values('ENT_ACCOUNT_HISTORY', '钱包流水', 'fund-view', '/history', 'HistoryPage', 'ML', 0, 1,  'ENT_AGENT_ACCOUNT_CENTER', '40', 'AGENT', null, now(), now());
insert into t_sys_entitlement values('ENT_ACCOUNT_HISTORY_LIST', '页面：钱包流水列表', 'no-icon', '', '', 'PB', 0, 1,  'ENT_ACCOUNT_HISTORY', '0', 'AGENT', null, now(), now());
insert into t_sys_entitlement values('ENT_ACCOUNT_HISTORY_DETAIL', '按钮：详情', 'no-icon', '', '', 'PB', 0, 1,  'ENT_ACCOUNT_HISTORY', '0', 'AGENT', null, now(), now());

-- 代理商管理
insert into t_sys_entitlement values('ENT_AGENT', '代理商管理', 'shop', '', 'RouteView', 'ML', 0, 1,  'ROOT', '25', 'AGENT', null, now(), now());
insert into t_sys_entitlement values('ENT_AGENT_INFO', '代理商列表', 'profile', '/agent', 'AgentListPage', 'ML', 0, 1,  'ENT_AGENT', '10', 'AGENT', null, now(), now());
insert into t_sys_entitlement values('ENT_AGENT_LIST', '页面：代理商列表', 'no-icon', '', '', 'PB', 0, 1,  'ENT_AGENT_INFO', '0', 'AGENT', null, now(), now());
insert into t_sys_entitlement values('ENT_AGENT_INFO_ADD', '按钮：新增', 'no-icon', '', '', 'PB', 0, 1,  'ENT_AGENT_INFO', '0', 'AGENT', null, now(), now());
insert into t_sys_entitlement values('ENT_AGENT_INFO_EDIT', '按钮：编辑', 'no-icon', '', '', 'PB', 0, 1,  'ENT_AGENT_INFO', '0', 'AGENT', null, now(), now());
insert into t_sys_entitlement values('ENT_AGENT_INFO_VIEW', '按钮：详情', 'no-icon', '', '', 'PB', 0, 1,  'ENT_AGENT_INFO', '0', 'AGENT', null, now(), now());
insert into t_sys_entitlement values('ENT_AGENT_INFO_DEL', '按钮：删除', 'no-icon', '', '', 'PB', 0, 1,  'ENT_AGENT_INFO', '0', 'AGENT', null, now(), now());
insert into t_sys_entitlement values('ENT_AGENT_RATE_CONFIG', '按钮：费率配置', 'no-icon', '', '', 'PB', 0, 1,  'ENT_AGENT_INFO', '0', 'AGENT', null, now(), now());

insert into t_sys_entitlement values('ENT_MCH', '商户管理', 'shop', '', 'RouteView', 'ML', 0, 1,  'ROOT', '30', 'AGENT', '{epUserEnt:true}', now(), now());
insert into t_sys_entitlement values('ENT_MCH_INFO', '商户列表', 'profile', '/mch', 'MchListPage', 'ML', 0, 1,  'ENT_MCH', '10', 'AGENT', '{epUserEnt:true}', now(), now());
insert into t_sys_entitlement values('ENT_MCH_LIST', '页面：商户列表', 'no-icon', '', '', 'PB', 0, 1,  'ENT_MCH_INFO', '0', 'AGENT', '{epUserEnt:true}', now(), now());
insert into t_sys_entitlement values('ENT_MCH_INFO_ADD', '按钮：新增', 'no-icon', '', '', 'PB', 0, 1,  'ENT_MCH_INFO', '0', 'AGENT', '{epUserEnt:true}', now(), now());
insert into t_sys_entitlement values('ENT_MCH_INFO_EDIT', '按钮：编辑', 'no-icon', '', '', 'PB', 0, 1,  'ENT_MCH_INFO', '0', 'AGENT', null, now(), now());
insert into t_sys_entitlement values('ENT_MCH_INFO_VIEW', '按钮：详情', 'no-icon', '', '', 'PB', 0, 1,  'ENT_MCH_INFO', '0', 'AGENT', '{epUserEnt:true}', now(), now());
insert into t_sys_entitlement values('ENT_MCH_INFO_DEL', '按钮：删除', 'no-icon', '', '', 'PB', 0, 1,  'ENT_MCH_INFO', '0', 'AGENT', null, now(), now());
insert into t_sys_entitlement values('ENT_MCH_APP_CONFIG', '应用配置', 'no-icon', '', '', 'PB', 0, 1,  'ENT_MCH_INFO', '0', 'AGENT', null, now(), now());
insert into t_sys_entitlement values('ENT_ISV_LIST', '服务商列表', 'no-icon', '', '', 'PB', 0, 1,  'ENT_MCH_INFO', '0', 'AGENT', null, now(), now());
insert into t_sys_entitlement
values ('ENT_MCH_CONFIG_PAGE', '按钮：商户配置信息', 'no-icon', '', '', 'PB', 0, 1, 'ENT_MCH_INFO', '0', 'AGENT', null,
        now(), now());

insert into t_sys_entitlement values('ENT_MCH_APP', '应用管理', 'appstore', '/apps', 'MchAppPage', 'ML', 0, 1,  'ENT_MCH', '20', 'AGENT', null, now(), now());
insert into t_sys_entitlement values('ENT_MCH_APP_LIST', '页面：应用列表', 'no-icon', '', '', 'PB', 0, 1,  'ENT_MCH_APP', '0', 'AGENT', null, now(), now());
insert into t_sys_entitlement values('ENT_MCH_APP_ADD', '按钮：新增', 'no-icon', '', '', 'PB', 0, 1,  'ENT_MCH_APP', '0', 'AGENT', null, now(), now());
insert into t_sys_entitlement values('ENT_MCH_APP_EDIT', '按钮：编辑', 'no-icon', '', '', 'PB', 0, 1,  'ENT_MCH_APP', '0', 'AGENT', null, now(), now());
insert into t_sys_entitlement values('ENT_MCH_APP_VIEW', '按钮：详情', 'no-icon', '', '', 'PB', 0, 1,  'ENT_MCH_APP', '0', 'AGENT', null, now(), now());
insert into t_sys_entitlement values('ENT_MCH_APP_DEL', '按钮：删除', 'no-icon', '', '', 'PB', 0, 1,  'ENT_MCH_APP', '0', 'AGENT', null, now(), now());
insert into t_sys_entitlement values('ENT_MCH_APP_PAY_CONFIG', '按钮：支付配置', 'no-icon', '', '', 'PB', 0, 1,  'ENT_MCH_APP', '0', 'AGENT', null, now(), now());

insert into t_sys_entitlement values('ENT_MCH_STORE', '门店管理', 'profile', '/store', 'StorePage', 'ML', 0, 1,  'ENT_MCH', '40', 'AGENT', null, now(), now());
insert into t_sys_entitlement values('ENT_MCH_STORE_LIST', '页面：数据列表', 'no-icon', '', '', 'PB', 0, 1,  'ENT_MCH_STORE', '0', 'AGENT', null, now(), now());
insert into t_sys_entitlement values('ENT_MCH_STORE_VIEW', '按钮：详情', 'no-icon', '', '', 'PB', 0, 1,  'ENT_MCH_STORE', '0', 'AGENT', null, now(), now());
insert into t_sys_entitlement values('ENT_MCH_STORE_ADD', '按钮：新增', 'no-icon', '', '', 'PB', 0, 1,  'ENT_MCH_STORE', '0', 'AGENT', null, now(), now());
insert into t_sys_entitlement values('ENT_MCH_STORE_DELETE', '按钮：删除', 'no-icon', '', '', 'PB', 0, 1,  'ENT_MCH_STORE', '0', 'AGENT', null, now(), now());
insert into t_sys_entitlement values('ENT_MCH_STORE_EDIT', '按钮：修改', 'no-icon', '', '', 'PB', 0, 1,  'ENT_MCH_STORE', '0', 'AGENT', null, now(), now());
insert into t_sys_entitlement values('ENT_MCH_STORE_MAP', '按钮：地图配置', 'no-icon', '', '', 'PB', 0, 1,  'ENT_MCH_STORE', '0', 'AGENT', null, now(), now());

-- 进件管理
insert into t_sys_entitlement values('ENT_MCH_APPLYMENT', '进件管理', 'schedule', '/applyments', 'MchApplymentListPage', 'ML', 0, 1,  'ENT_MCH', '40', 'AGENT', '{epUserEnt:true}', now(), now());
insert into t_sys_entitlement values('ENT_MCH_APPLYMENT_LIST', '页面：进件管理列表', 'no-icon', '', '', 'PB', 0, 1,  'ENT_MCH_APPLYMENT', '0', 'AGENT', '{epUserEnt:true}', now(), now());
insert into t_sys_entitlement values('ENT_MCH_APPLYMENT_ADD', '按钮：发起进件', 'no-icon', '', '', 'PB', 0, 1,  'ENT_MCH_APPLYMENT', '0', 'AGENT', '{epUserEnt:true}', now(), now());
insert into t_sys_entitlement values('ENT_MCH_APPLYMENT_EDIT', '按钮：修改/继续填写', 'no-icon', '', '', 'PB', 0, 1,  'ENT_MCH_APPLYMENT', '0', 'AGENT', '{epUserEnt:true}', now(), now());
insert into t_sys_entitlement values('ENT_MCH_APPLYMENT_VIEW', '按钮：详细信息', 'no-icon', '', '', 'PB', 0, 1,  'ENT_MCH_APPLYMENT', '0', 'AGENT', '{epUserEnt:true}', now(), now());
insert into t_sys_entitlement values('ENT_MCH_APPLYMENT_PAY_CONFIG', '按钮：参数配置', 'no-icon', '', '', 'PB', 0, 1,  'ENT_MCH_APPLYMENT', '0', 'AGENT', null, now(), now());
insert into t_sys_entitlement values('ENT_MCH_APPLYMENT_SIGN', '按钮：自主签约', 'no-icon', '', '', 'PB', 0, 1,  'ENT_MCH_APPLYMENT', '0', 'AGENT', '{epUserEnt:true}', now(), now());
insert into t_sys_entitlement values('ENT_MCH_APPLYMENT_GET_INFO', '按钮：获取最新结果', 'no-icon', '', '', 'PB', 0, 1,  'ENT_MCH_APPLYMENT', '0', 'AGENT', '{epUserEnt:true}', now(), now());
insert into t_sys_entitlement values('ENT_MCH_IMG_OCR_DETAIL', '功能：ocr图片识别', 'no-icon', '', '', 'PB', 0, 1,  'ENT_MCH_APPLYMENT', '0', 'AGENT', '{epUserEnt:true}', now(), now());

-- 【代理商系统】 订单管理
insert into t_sys_entitlement values('ENT_ORDER', '订单管理', 'transaction', '', 'RouteView', 'ML', 0, 1,  'ROOT', '40', 'AGENT', null, now(), now());
-- 支付订单
insert into t_sys_entitlement values('ENT_PAY_ORDER', '支付订单', 'account-book', '/pay', 'PayOrderListPage', 'ML', 0, 1,  'ENT_ORDER', '10', 'AGENT', null, now(), now());
insert into t_sys_entitlement values('ENT_ORDER_LIST', '页面：订单列表', 'no-icon', '', '', 'PB', 0, 1,  'ENT_PAY_ORDER', '0', 'AGENT', null, now(), now());
insert into t_sys_entitlement values('ENT_PAY_ORDER_VIEW', '按钮：详情', 'no-icon', '', '', 'PB', 0, 1,  'ENT_PAY_ORDER', '0', 'AGENT', null, now(), now());
insert into t_sys_entitlement values('ENT_PAY_ORDER_SEARCH_PAY_WAY', '筛选项：支付方式', 'no-icon', '', '', 'PB', 0, 1,  'ENT_PAY_ORDER', '0', 'AGENT', null, now(), now());
insert into t_sys_entitlement values('ENT_PAY_ORDER_REFUND', '按钮：订单退款', 'no-icon', '', '', 'PB', 0, 1,  'ENT_PAY_ORDER', '0', 'AGENT', null, now(), now());
insert into t_sys_entitlement values('ENT_ORDER_COUNT', '支付统计', 'no-icon', '', '', 'PB', 0, 1,  'ENT_PAY_ORDER', '0', 'AGENT', null, now(), now());
-- 退款订单
insert into t_sys_entitlement values('ENT_REFUND_ORDER', '退款订单', 'exception', '/refund', 'RefundOrderListPage', 'ML', 0, 1,  'ENT_ORDER', '20', 'AGENT', null, now(), now());
insert into t_sys_entitlement values('ENT_REFUND_LIST', '页面：退款订单列表', 'no-icon', '', '', 'PB', 0, 1,  'ENT_REFUND_ORDER', '0', 'AGENT', null, now(), now());
insert into t_sys_entitlement values('ENT_REFUND_ORDER_VIEW', '按钮：详情', 'no-icon', '', '', 'PB', 0, 1,  'ENT_REFUND_ORDER', '0', 'AGENT', null, now(), now());
insert into t_sys_entitlement
values ('ENT_REFUND_ORDER_COUNT', '退款统计', 'no-icon', '', '', 'PB', 0, 1, 'ENT_REFUND_ORDER', '0', 'AGENT', null,
        now(), now());

insert into t_sys_entitlement values('ENT_TRANSFER_ORDER', '转账订单', 'property-safety', '/transfer', 'TransferOrderListPage', 'ML', 0, 1,  'ENT_ORDER', '30', 'AGENT', null, now(), now());
insert into t_sys_entitlement values('ENT_TRANSFER_ORDER_LIST', '页面：转账订单列表', 'no-icon', '', '', 'PB', 0, 1,  'ENT_TRANSFER_ORDER', '0', 'AGENT', null, now(), now());
insert into t_sys_entitlement values('ENT_TRANSFER_ORDER_VIEW', '按钮：详情', 'no-icon', '', '', 'PB', 0, 1,  'ENT_TRANSFER_ORDER', '0', 'AGENT', null, now(), now());

-- 数据统计
insert into t_sys_entitlement values('ENT_ORDER_STATISTIC', '数据统计', 'bar-chart', '', 'RouteView', 'ML', 0, 1,  'ROOT', '50', 'AGENT', null, now(), now());

insert into t_sys_entitlement values('ENT_STATISTIC_TRANSACTION', '交易报表', 'account-book', '/statistic/transaction', 'TransactionPage', 'ML', 0, 1,  'ENT_ORDER_STATISTIC', '10', 'AGENT', null, now(), now());

insert into t_sys_entitlement values('ENT_STATISTIC_MCH', '商户统计', 'line-chart', '/statistic/mch', 'MchCountPage', 'ML', 0, 1,  'ENT_ORDER_STATISTIC', '20', 'AGENT', null, now(), now());
insert into t_sys_entitlement values('ENT_STATISTIC_MCH_STORE', '门店统计', 'no-icon', '', '', 'PB', 0, 1,  'ENT_STATISTIC_MCH', '0', 'AGENT', null, now(), now());
insert into t_sys_entitlement values('ENT_STATISTIC_MCH_WAY', '支付方式统计', 'no-icon', '', '', 'PB', 0, 1,  'ENT_STATISTIC_MCH', '0', 'AGENT', null, now(), now());
insert into t_sys_entitlement values('ENT_STATISTIC_MCH_TYPE', '支付类型统计', 'no-icon', '', '', 'PB', 0, 1,  'ENT_STATISTIC_MCH', '0', 'AGENT', null, now(), now());

insert into t_sys_entitlement values('ENT_STATISTIC_AGENT', '代理商统计', 'area-chart', '/statistic/agent', 'AgentCountPage', 'ML', 0, 1,  'ENT_ORDER_STATISTIC', '30', 'AGENT', null, now(), now());
insert into t_sys_entitlement values('ENT_STATISTIC_DEVICE', '设备统计', 'mobile', '/statistic/device', 'DeviceCountPage', 'ML', 0, 1,  'ENT_ORDER_STATISTIC', '40', 'AGENT', null, now(), now());

-- 设备管理菜单
insert into t_sys_entitlement values('ENT_DEVICE', '设备管理', 'appstore', '', 'RouteView', 'ML', 0, 1,  'ROOT', '70', 'AGENT', null, now(), now());
insert into t_sys_entitlement values('ENT_DEVICE_QRC', '码牌', 'qrcode', '/qrc', 'QrcodeCardPage', 'ML', 0, 1,  'ENT_DEVICE', '5', 'AGENT', null, now(), now());
insert into t_sys_entitlement values('ENT_DEVICE_QRC_LIST', '页面：列表', 'no-icon', '', '', 'PB', 0, 1,  'ENT_DEVICE_QRC', '0', 'AGENT', null, now(), now());
insert into t_sys_entitlement values('ENT_DEVICE_QRC_VIEW', '按钮：详情', 'no-icon', '', '', 'PB', 0, 1,  'ENT_DEVICE_QRC', '0', 'AGENT', null, now(), now());
insert into t_sys_entitlement values('ENT_DEVICE_QRC_EDIT', '按钮：修改', 'no-icon', '', '', 'PB', 0, 1,  'ENT_DEVICE_QRC', '0', 'AGENT', null, now(), now());
insert into t_sys_entitlement values('ENT_DEVICE_QRC_EXPORT', '按钮：导出', 'no-icon', '', '', 'PB', 0, 1,  'ENT_DEVICE_QRC', '0', 'AGENT', null, now(), now());
insert into t_sys_entitlement values('ENT_DEVICE_QRC_ALLOT', '按钮：划拨', 'no-icon', '', '', 'PB', 0, 1,  'ENT_DEVICE_QRC', '0', 'AGENT', null, now(), now());
insert into t_sys_entitlement
values ('ENT_DEVICE_QRC_RELIEVE', '按钮：解除', 'no-icon', '', '', 'PB', 0, 1, 'ENT_DEVICE_QRC', '0', 'AGENT', null,
        now(), now());

insert into t_sys_entitlement values('ENT_DEVICE_SPEAKER_DEVICE', '云喇叭', 'sound', '/speaker/device', 'SpeakerDevicePage', 'ML', 0, 1,  'ENT_DEVICE', '15', 'AGENT', null, now(), now());
insert into t_sys_entitlement values('ENT_DEVICE_SPEAKER_DEVICE_LIST', '页面：云喇叭设备列表', 'no-icon', '', '', 'PB', 0, 1,  'ENT_DEVICE_SPEAKER_DEVICE', '0', 'AGENT', null, now(), now());
insert into t_sys_entitlement values('ENT_DEVICE_SPEAKER_DEVICE_VIEW', '按钮：详情', 'no-icon', '', '', 'PB', 0, 1,  'ENT_DEVICE_SPEAKER_DEVICE', '0', 'AGENT', null, now(), now());
insert into t_sys_entitlement values('ENT_DEVICE_SPEAKER_DEVICE_EDIT', '按钮：修改', 'no-icon', '', '', 'PB', 0, 1,  'ENT_DEVICE_SPEAKER_DEVICE', '0', 'AGENT', null, now(), now());
insert into t_sys_entitlement values('ENT_DEVICE_SPEAKER_DEVICE_TEST', '按钮：播报测试', 'no-icon', '', '', 'PB', 0, 1,  'ENT_DEVICE_SPEAKER_DEVICE', '0', 'AGENT', null, now(), now());
insert into t_sys_entitlement values('ENT_DEVICE_SPEAKER_DEVICE_ALLOT', '按钮：划拨设备', 'no-icon', '', '', 'PB', 0, 1,  'ENT_DEVICE_SPEAKER_DEVICE', '0', 'AGENT', null, now(), now());

insert into t_sys_entitlement values('ENT_DEVICE_PRINTER_DEVICE', '云打印', 'printer', '/printer/device', 'PrinterDevicePage', 'ML', 0, 1,  'ENT_DEVICE', '25', 'AGENT', null, now(), now());
insert into t_sys_entitlement values('ENT_DEVICE_PRINTER_DEVICE_LIST', '页面：云打印设备列表', 'no-icon', '', '', 'PB', 0, 1,  'ENT_DEVICE_PRINTER_DEVICE', '0', 'AGENT', null, now(), now());
insert into t_sys_entitlement values('ENT_DEVICE_PRINTER_DEVICE_VIEW', '按钮：详情', 'no-icon', '', '', 'PB', 0, 1,  'ENT_DEVICE_PRINTER_DEVICE', '0', 'AGENT', null, now(), now());
insert into t_sys_entitlement values('ENT_DEVICE_PRINTER_DEVICE_EDIT', '按钮：修改', 'no-icon', '', '', 'PB', 0, 1,  'ENT_DEVICE_PRINTER_DEVICE', '0', 'AGENT', null, now(), now());
insert into t_sys_entitlement values('ENT_DEVICE_PRINTER_DEVICE_TEST', '按钮：打印测试', 'no-icon', '', '', 'PB', 0, 1,  'ENT_DEVICE_PRINTER_DEVICE', '0', 'AGENT', null, now(), now());
insert into t_sys_entitlement values('ENT_DEVICE_PRINTER_DEVICE_CLEAR', '按钮：清空打印队列', 'no-icon', '', '', 'PB', 0, 1,  'ENT_DEVICE_PRINTER_DEVICE', '0', 'AGENT', null, now(), now());
insert into t_sys_entitlement values('ENT_DEVICE_PRINTER_DEVICE_ALLOT', '按钮：划拨/收回', 'no-icon', '', '', 'PB', 0, 1,  'ENT_DEVICE_PRINTER_DEVICE', '0', 'AGENT', null, now(), now());

insert into t_sys_entitlement values('ENT_DEVICE_PLUGIN_CDKEY', '收银插件激活码', 'file', '/plugin/cdkey', 'PluginCdKeyPage', 'ML', 0, 1,  'ENT_DEVICE', '30', 'AGENT', null, now(), now());
insert into t_sys_entitlement values('ENT_DEVICE_PLUGIN_CDKEY_LIST', '页面：列表', 'no-icon', '', '', 'PB', 0, 1,  'ENT_DEVICE_PLUGIN_CDKEY', '0', 'AGENT', null, now(), now());
insert into t_sys_entitlement values('ENT_DEVICE_PLUGIN_CDKEY_VIEW', '按钮：详情', 'no-icon', '', '', 'PB', 0, 1,  'ENT_DEVICE_PLUGIN_CDKEY', '0', 'AGENT', null, now(), now());
insert into t_sys_entitlement values('ENT_DEVICE_PLUGIN_CDKEY_EDIT', '按钮：修改', 'no-icon', '', '', 'PB', 0, 1,  'ENT_DEVICE_PLUGIN_CDKEY', '0', 'AGENT', null, now(), now());
insert into t_sys_entitlement values('ENT_DEVICE_PLUGIN_CDKEY_ALLOT', '按钮：划拨/收回', 'no-icon', '', '', 'PB', 0, 1,  'ENT_DEVICE_PLUGIN_CDKEY', '0', 'AGENT', null, now(), now());

insert into t_sys_entitlement values('ENT_DEVICE_POS_DEVICE', '扫码POS', 'scan', '/pos/device', 'PosDevicePage', 'ML', 0, 1,  'ENT_DEVICE', '35', 'AGENT', null, now(), now());
insert into t_sys_entitlement values('ENT_DEVICE_POS_DEVICE_LIST', '页面：列表', 'no-icon', '', '', 'PB', 0, 1,  'ENT_DEVICE_POS_DEVICE', '0', 'AGENT', null, now(), now());
insert into t_sys_entitlement values('ENT_DEVICE_POS_DEVICE_VIEW', '按钮：详情', 'no-icon', '', '', 'PB', 0, 1,  'ENT_DEVICE_POS_DEVICE', '0', 'AGENT', null, now(), now());
insert into t_sys_entitlement values('ENT_DEVICE_POS_DEVICE_EDIT', '按钮：修改', 'no-icon', '', '', 'PB', 0, 1,  'ENT_DEVICE_POS_DEVICE', '0', 'AGENT', null, now(), now());
insert into t_sys_entitlement values('ENT_DEVICE_POS_DEVICE_ALLOT', '按钮：划拨/收回', 'no-icon', '', '', 'PB', 0, 1,  'ENT_DEVICE_POS_DEVICE', '0', 'AGENT', null, now(), now());

insert into t_sys_entitlement values('ENT_DEVICE_AUTO_POS', '智能POS', 'file', '/auto/pos', 'AutoPosPage', 'ML', 0, 1,  'ENT_DEVICE', '45', 'AGENT', null, now(), now());
insert into t_sys_entitlement values('ENT_DEVICE_AUTO_POS_LIST', '页面：列表', 'no-icon', '', '', 'PB', 0, 1,  'ENT_DEVICE_AUTO_POS', '0', 'AGENT', null, now(), now());
insert into t_sys_entitlement values('ENT_DEVICE_AUTO_POS_VIEW', '按钮：详情', 'no-icon', '', '', 'PB', 0, 1,  'ENT_DEVICE_AUTO_POS', '0', 'AGENT', null, now(), now());
insert into t_sys_entitlement values('ENT_DEVICE_AUTO_POS_EDIT', '按钮：修改', 'no-icon', '', '', 'PB', 0, 1,  'ENT_DEVICE_AUTO_POS', '0', 'AGENT', null, now(), now());
insert into t_sys_entitlement values('ENT_DEVICE_AUTO_POS_ALLOT', '按钮：划拨/收回', 'no-icon', '', '', 'PB', 0, 1,  'ENT_DEVICE_AUTO_POS', '0', 'AGENT', null, now(), now());

insert into t_sys_entitlement values('ENT_DEVICE_FACE_APP', '刷脸设备', 'smile', '/face', 'FaceAppPage', 'ML', 0, 1,  'ENT_DEVICE', '47', 'AGENT', null, now(), now());
insert into t_sys_entitlement values('ENT_DEVICE_FACE_APP_LIST', '页面：列表', 'no-icon', '', '', 'PB', 0, 1,  'ENT_DEVICE_FACE_APP', '0', 'AGENT', null, now(), now());
insert into t_sys_entitlement values('ENT_DEVICE_FACE_APP_VIEW', '按钮：详情', 'no-icon', '', '', 'PB', 0, 1,  'ENT_DEVICE_FACE_APP', '0', 'AGENT', null, now(), now());
insert into t_sys_entitlement values('ENT_DEVICE_FACE_APP_ADD', '按钮：新增', 'no-icon', '', '', 'PB', 0, 1,  'ENT_DEVICE_FACE_APP', '0', 'AGENT', null, now(), now());
insert into t_sys_entitlement values('ENT_DEVICE_FACE_APP_EDIT', '按钮：修改', 'no-icon', '', '', 'PB', 0, 1,  'ENT_DEVICE_FACE_APP', '0', 'AGENT', null, now(), now());
insert into t_sys_entitlement values('ENT_DEVICE_FACE_APP_ALLOT', '按钮：划拨/收回', 'no-icon', '', '', 'PB', 0, 1,  'ENT_DEVICE_FACE_APP', '0', 'AGENT', null, now(), now());

insert into t_sys_entitlement values('ENT_TERMINAL', '辅助终端报备', 'issues-close', '/terminals', 'TerminalPage', 'ML', 0, 1,  'ENT_DEVICE', '50', 'AGENT', null, now(), now());
insert into t_sys_entitlement values('ENT_TERMINAL_LIST', '页面：列表', 'no-icon', '', '', 'PB', 0, 1,  'ENT_TERMINAL', '0', 'AGENT', null, now(), now());
insert into t_sys_entitlement values('ENT_TERMINAL_VIEW', '按钮：详情', 'no-icon', '', '', 'PB', 0, 1,  'ENT_TERMINAL', '0', 'AGENT', null, now(), now());
insert into t_sys_entitlement values('ENT_TERMINAL_ADD', '按钮：新增', 'no-icon', '', '', 'PB', 0, 1,  'ENT_TERMINAL', '0', 'AGENT', null, now(), now());
insert into t_sys_entitlement values('ENT_TERMINAL_EDIT', '按钮：修改', 'no-icon', '', '', 'PB', 0, 1,  'ENT_TERMINAL', '0', 'AGENT', null, now(), now());
insert into t_sys_entitlement values('ENT_TERMINAL_DEL', '按钮：删除', 'no-icon', '', '', 'PB', 0, 1,  'ENT_TERMINAL', '0', 'AGENT', null, now(), now());
insert into t_sys_entitlement values('ENT_TERMINAL_SENDUP', '按钮：报备', 'no-icon', '', '', 'PB', 0, 1,  'ENT_TERMINAL', '0', 'AGENT', null, now(), now());

insert into t_sys_entitlement values('ENT_DEVICE_RUYI', '如意Lite', 'file', '/ruyi', 'RuyiPage', 'ML', 0, 1,  'ENT_DEVICE', '60', 'AGENT', null, now(), now());
insert into t_sys_entitlement values('ENT_DEVICE_RUYI_LIST', '页面：列表', 'no-icon', '', '', 'PB', 0, 1,  'ENT_DEVICE_RUYI', '0', 'AGENT', null, now(), now());
insert into t_sys_entitlement values('ENT_DEVICE_RUYI_VIEW', '按钮：详情', 'no-icon', '', '', 'PB', 0, 1,  'ENT_DEVICE_RUYI', '0', 'AGENT', null, now(), now());
insert into t_sys_entitlement values('ENT_DEVICE_RUYI_ADD', '按钮：新增', 'no-icon', '', '', 'PB', 0, 1,  'ENT_DEVICE_RUYI', '0', 'AGENT', null, now(), now());
insert into t_sys_entitlement values('ENT_DEVICE_RUYI_EDIT', '按钮：修改', 'no-icon', '', '', 'PB', 0, 1,  'ENT_DEVICE_RUYI', '0', 'AGENT', null, now(), now());
insert into t_sys_entitlement values('ENT_DEVICE_RUYI_ALLOT', '按钮：划拨/收回', 'no-icon', '', '', 'PB', 0, 1,  'ENT_DEVICE_RUYI', '0', 'AGENT', null, now(), now());

-- 系统管理
insert into t_sys_entitlement values('ENT_SYS_CONFIG', '系统管理', 'setting', '', 'RouteView', 'ML', 0, 1,  'ROOT', '200', 'AGENT', null, now(), now());

insert into t_sys_entitlement values('ENT_UR', '用户角色管理', 'team', '', 'RouteView', 'ML', 0, 1,  'ENT_SYS_CONFIG', '10', 'AGENT', null, now(), now());
insert into t_sys_entitlement values('ENT_UR_USER', '操作员管理', 'contacts', '/users', 'SysUserPage', 'ML', 0, 1,  'ENT_UR', '10', 'AGENT', null, now(), now());
insert into t_sys_entitlement values('ENT_UR_USER_LIST', '页面：操作员列表', 'no-icon', '', '', 'PB', 0, 1,  'ENT_UR_USER', '0', 'AGENT', null, now(), now());
insert into t_sys_entitlement values('ENT_UR_USER_SEARCH', '按钮：搜索', 'no-icon', '', '', 'PB', 0, 1,  'ENT_UR_USER', '0', 'AGENT', null, now(), now());
insert into t_sys_entitlement values('ENT_UR_USER_ADD', '按钮：添加操作员', 'no-icon', '', '', 'PB', 0, 1,  'ENT_UR_USER', '0', 'AGENT', null, now(), now());
insert into t_sys_entitlement values('ENT_UR_USER_VIEW', '按钮： 详情', '', 'no-icon', '', 'PB', 0, 1,  'ENT_UR_USER', '0', 'AGENT', null, now(), now());
insert into t_sys_entitlement values('ENT_UR_USER_EDIT', '按钮： 修改基本信息', 'no-icon', '', '', 'PB', 0, 1,  'ENT_UR_USER', '0', 'AGENT', null, now(), now());
insert into t_sys_entitlement values('ENT_UR_USER_DELETE', '按钮： 删除操作员', 'no-icon', '', '', 'PB', 0, 1,  'ENT_UR_USER', '0', 'AGENT', null, now(), now());
insert into t_sys_entitlement values('ENT_UR_USER_UPD_ROLE', '按钮： 角色分配', 'no-icon', '', '', 'PB', 0, 1,  'ENT_UR_USER', '0', 'AGENT', null, now(), now());
insert into t_sys_entitlement values('ENT_UR_USER_MFA_DELETE', '按钮： MFA解绑', 'no-icon', '', '', 'PB', 0, 1,  'ENT_UR_USER', '0', 'AGENT', null, now(), now());
insert into t_sys_entitlement values('ENT_UR_USER_LOGIN_LIMIT_DELETE', '按钮： 解除登录限制', 'no-icon', '', '', 'PB', 0, 1,  'ENT_UR_USER', '0', 'AGENT', null, now(), now());

insert into t_sys_entitlement values('ENT_UR_TEAM', '团队管理', 'team', '/teams', 'SysUserTeamPage', 'ML', 0, 1,  'ENT_UR', '15', 'AGENT', null, now(), now());
insert into t_sys_entitlement values('ENT_UR_TEAM_LIST', '页面：团队列表', 'no-icon', '', '', 'PB', 0, 1,  'ENT_UR_TEAM', '0', 'AGENT', null, now(), now());
insert into t_sys_entitlement values('ENT_UR_TEAM_SEARCH', '按钮：搜索', 'no-icon', '', '', 'PB', 0, 1,  'ENT_UR_TEAM', '0', 'AGENT', null, now(), now());
insert into t_sys_entitlement values('ENT_UR_TEAM_ADD', '按钮：添加团队', 'no-icon', '', '', 'PB', 0, 1,  'ENT_UR_TEAM', '0', 'AGENT', null, now(), now());
insert into t_sys_entitlement values('ENT_UR_TEAM_VIEW', '按钮： 详情', '', 'no-icon', '', 'PB', 0, 1,  'ENT_UR_TEAM', '0', 'AGENT', null, now(), now());
insert into t_sys_entitlement values('ENT_UR_TEAM_EDIT', '按钮： 修改', 'no-icon', '', '', 'PB', 0, 1,  'ENT_UR_TEAM', '0', 'AGENT', null, now(), now());
insert into t_sys_entitlement values('ENT_UR_TEAM_DELETE', '按钮： 删除', 'no-icon', '', '', 'PB', 0, 1,  'ENT_UR_TEAM', '0', 'AGENT', null, now(), now());

insert into t_sys_entitlement values('ENT_UR_ROLE', '角色管理', 'user', '/roles', 'RolePage', 'ML', 0, 1,  'ENT_UR', '20', 'AGENT', null, now(), now());
insert into t_sys_entitlement values('ENT_UR_ROLE_LIST', '页面：角色列表', 'no-icon', '', '', 'PB', 0, 1,  'ENT_UR_ROLE', '0', 'AGENT', null, now(), now());
insert into t_sys_entitlement values('ENT_UR_ROLE_SEARCH', '页面：搜索', 'no-icon', '', '', 'PB', 0, 1,  'ENT_UR_ROLE', '0', 'AGENT', null, now(), now());
insert into t_sys_entitlement values('ENT_UR_ROLE_ADD', '按钮：添加角色', 'no-icon', '', '', 'PB', 0, 1,  'ENT_UR_ROLE', '0', 'AGENT', null, now(), now());
insert into t_sys_entitlement values('ENT_UR_ROLE_DIST', '按钮： 分配权限', 'no-icon', '', '', 'PB', 0, 1,  'ENT_UR_ROLE', '0', 'AGENT', null, now(), now());
insert into t_sys_entitlement values('ENT_UR_ROLE_EDIT', '按钮： 修改名称', 'no-icon', '', '', 'PB', 0, 1,  'ENT_UR_ROLE', '0', 'AGENT', null, now(), now());
insert into t_sys_entitlement values('ENT_UR_ROLE_DEL', '按钮： 删除', 'no-icon', '', '', 'PB', 0, 1,  'ENT_UR_ROLE', '0', 'AGENT', null, now(), now());

insert into t_sys_entitlement values('ENT_ADVERT_CONTROL', '广告管理', 'message', '/advert', 'AdvertInfoPage', 'ML', 0, 1,  'ENT_SYS_CONFIG', '15', 'AGENT', null, now(), now());
insert into t_sys_entitlement values('ENT_ADVERT_LIST', '页面：列表', 'no-icon', '', '', 'PB', 0, 1,  'ENT_ADVERT_CONTROL', '0', 'AGENT', null, now(), now());
insert into t_sys_entitlement values('ENT_ADVERT_VIEW', '按钮：详情', 'no-icon', '', '', 'PB', 0, 1,  'ENT_ADVERT_CONTROL', '0', 'AGENT', null, now(), now());
insert into t_sys_entitlement values('ENT_ADVERT_ADD', '按钮：新增', 'no-icon', '', '', 'PB', 0, 1,  'ENT_ADVERT_CONTROL', '0', 'AGENT', null, now(), now());
insert into t_sys_entitlement values('ENT_ADVERT_EDIT', '按钮：修改', 'no-icon', '', '', 'PB', 0, 1,  'ENT_ADVERT_CONTROL', '0', 'AGENT', null, now(), now());
insert into t_sys_entitlement values('ENT_ADVERT_DEL', '按钮：删除', 'no-icon', '', '', 'PB', 0, 1,  'ENT_ADVERT_CONTROL', '0', 'AGENT', null, now(), now());

insert into t_sys_entitlement values('ENT_AGENT_CONFIG', '系统配置', 'setting', '/config', 'AgentConfigPage', 'ML', 0, 1,  'ENT_SYS_CONFIG', '20', 'AGENT', null, now(), now());
insert into t_sys_entitlement values('ENT_AGENT_CONFIG_EDIT', '按钮：修改系统配置', 'no-icon', '', '', 'PB', 0, 1,  'ENT_MCH_CONFIG', '0', 'AGENT', null, now(), now());






