#####    jeeppay-plus S3 支付基础模块 菜单权限初始化SQL   #####

-- delete from t_sys_entitlement;

-- 菜单权限表基础数据：

-- match_rule 过滤条件规则：  设置为空，表示没有任何过滤条件， 全部可见。

-- 根据商户级别过滤： {mchLevelArray: ["M1"]} , 设置几级商户可看
-- 商户类型： {mchType: 2} ， 设置哪种商户类型可见
-- 商户拥有分账管理权限才可见： {mchDivisionEnt: true} ， 设置哪种商户类型可见
-- 扩展员： { epUserEnt: true } ， 设置是否扩展员菜单： 当扩展员登录的时候根据此菜单过滤范围进行筛选。
-- 商户便捷收银台菜单过滤配置项：   {mchSelfCashierEnt: true}， 拥有便捷收银台权限的用户才可见。
-- 商户广告配置菜单过滤配置项：  {mchAdvertEnt: true}， 拥有广告权限的用户才可见。
-- 商户会员菜单过滤配置项：  {mchMemberEnt: true}， 拥有会员权限的商户才可见。
-- userEntRules： 比如商户用户需要动态切换时使用， 比如 店长、店员 + 动态特殊权限， 关联： t_sys_user_entrule_rela
-- 定义如下：
-- USER_TYPE_11_INIT :  店长默认权限
-- USER_TYPE_12_INIT:   店员默认权限
-- STORE： 门店管理权限
-- QUICK_PAY:   快捷收银权限
-- REFUND:  退款权限
-- DEVICE: 设备管理权限
-- STATS:  统计报表权限

-- 运营平台

-- 权限表数据 （ 不包含根目录 ）
insert into t_sys_entitlement values('ENT_COMMONS', '系统通用菜单', 'no-icon', '', 'RouteView', 'MO', 0, 1,  'ROOT', '-1', 'PLATFORM', '{epUserEnt:true}', now(), now());
insert into t_sys_entitlement values('ENT_C_USERINFO', '个人中心', 'no-icon', '/current/userinfo', 'CurrentUserInfo', 'MO', 0, 1,  'ENT_COMMONS', '-1', 'PLATFORM', '{epUserEnt:true}', now(), now());


insert into t_sys_entitlement values('ENT_C_MAIN', '主页', 'home', '/main', 'MainPage', 'ML', 0, 1,  'ROOT', '1', 'PLATFORM', null, now(), now());
insert into t_sys_entitlement values('ENT_C_MAIN_ISV_MCH_COUNT', '服务商/商户统计', 'no-icon', '', '', 'PB', 0, 1,  'ENT_C_MAIN', '0', 'PLATFORM', null, now(), now());
insert into t_sys_entitlement values('ENT_C_MAIN_PAY_DAY_COUNT', '今日/昨日交易统计', 'no-icon', '', '', 'PB', 0, 1,  'ENT_C_MAIN', '0', 'PLATFORM', null, now(), now());
insert into t_sys_entitlement values('ENT_C_MAIN_PAY_TREND_COUNT', '趋势图统计', 'no-icon', '', '', 'PB', 0, 1,  'ENT_C_MAIN', '0', 'PLATFORM', null, now(), now());
insert into t_sys_entitlement values('ENT_C_MAIN_PAY_COUNT', '主页交易统计', 'no-icon', '', '', 'PB', 0, 1,  'ENT_C_MAIN', '0', 'PLATFORM', null, now(), now());
insert into t_sys_entitlement values('ENT_C_MAIN_PAY_TYPE_COUNT', '主页交易方式统计', 'no-icon', '', '', 'PB', 0, 1,  'ENT_C_MAIN', '0', 'PLATFORM', null, now(), now());

-- 商户管理
insert into t_sys_entitlement values('ENT_MCH', '商户管理', 'shop', '', 'RouteView', 'ML', 0, 1,  'ROOT', '30', 'PLATFORM', '{epUserEnt:true}', now(), now());
insert into t_sys_entitlement values('ENT_MCH_INFO', '商户列表', 'profile', '/mch', 'MchListPage', 'ML', 0, 1,  'ENT_MCH', '10', 'PLATFORM', '{epUserEnt:true}', now(), now());
insert into t_sys_entitlement values('ENT_MCH_LIST', '页面：商户列表', 'no-icon', '', '', 'PB', 0, 1,  'ENT_MCH_INFO', '0', 'PLATFORM', '{epUserEnt:true}', now(), now());
insert into t_sys_entitlement values('ENT_MCH_INFO_ADD', '按钮：新增', 'no-icon', '', '', 'PB', 0, 1,  'ENT_MCH_INFO', '0', 'PLATFORM', '{epUserEnt:true}', now(), now());
insert into t_sys_entitlement values('ENT_MCH_INFO_EDIT', '按钮：编辑', 'no-icon', '', '', 'PB', 0, 1,  'ENT_MCH_INFO', '0', 'PLATFORM', null, now(), now());
insert into t_sys_entitlement values('ENT_MCH_CONFIG_PAGE', '按钮：商户配置信息', 'no-icon', '', '', 'PB', 0, 1,  'ENT_MCH_INFO', '0', 'PLATFORM', null, now(), now());
insert into t_sys_entitlement values('ENT_MCH_INFO_VIEW', '按钮：详情', 'no-icon', '', '', 'PB', 0, 1,  'ENT_MCH_INFO', '0', 'PLATFORM', '{epUserEnt:true}', now(), now());
insert into t_sys_entitlement values('ENT_MCH_INFO_DEL', '按钮：删除', 'no-icon', '', '', 'PB', 0, 1,  'ENT_MCH_INFO', '0', 'PLATFORM', null, now(), now());
insert into t_sys_entitlement values('ENT_MCH_APP_CONFIG', '应用配置', 'no-icon', '', '', 'PB', 0, 1,  'ENT_MCH_INFO', '0', 'PLATFORM', null, now(), now());
insert into t_sys_entitlement values('ENT_MCH_CASHIER_URL', '便捷收银台', 'no-icon', '', '', 'PB', 0, 1,  'ENT_MCH_INFO', '0', 'PLATFORM', null, now(), now());
insert into t_sys_entitlement values('ENT_MCH_ALIPAY_SP_OPERATION', '支付宝代运营授权', 'no-icon', '', '', 'PB', 0, 1,  'ENT_MCH_INFO', '0', 'PLATFORM', null, now(), now());

insert into t_sys_entitlement values('ENT_MCH_CHANNEL_ACCOUNT', '三方账户管理', 'no-icon', '/channel/account', 'ChannelAccountPage', 'MO', 0, 1,  'ENT_MCH', '-1', 'PLATFORM', null, now(), now());
insert into t_sys_entitlement values('ENT_MCH_CHANNEL_CASHOUT', '按钮：提现', 'no-icon', '', '', 'PB', 0, 1,  'ENT_MCH_CHANNEL_ACCOUNT', '0', 'PLATFORM', null, now(), now());


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


-- 进件管理
insert into t_sys_entitlement values('ENT_MCH_APPLYMENT', '进件管理', 'schedule', '/applyments', 'MchApplymentListPage', 'ML', 0, 1,  'ENT_MCH', '30', 'PLATFORM', '{epUserEnt:true}', now(), now());
insert into t_sys_entitlement values('ENT_MCH_APPLYMENT_LIST', '页面：进件管理列表', 'no-icon', '', '', 'PB', 0, 1,  'ENT_MCH_APPLYMENT', '0', 'PLATFORM', '{epUserEnt:true}', now(), now());
insert into t_sys_entitlement values('ENT_MCH_APPLYMENT_ADD', '按钮：发起进件', 'no-icon', '', '', 'PB', 0, 1,  'ENT_MCH_APPLYMENT', '0', 'PLATFORM', '{epUserEnt:true}', now(), now());
insert into t_sys_entitlement values('ENT_MCH_APPLYMENT_EDIT', '按钮：修改/继续填写', 'no-icon', '', '', 'PB', 0, 1,  'ENT_MCH_APPLYMENT', '0', 'PLATFORM', '{epUserEnt:true}', now(), now());
insert into t_sys_entitlement values('ENT_MCH_APPLYMENT_VIEW', '按钮：详细信息', 'no-icon', '', '', 'PB', 0, 1,  'ENT_MCH_APPLYMENT', '0', 'PLATFORM', '{epUserEnt:true}', now(), now());
insert into t_sys_entitlement values('ENT_MCH_APPLYMENT_PAY_CONFIG', '按钮：参数配置', 'no-icon', '', '', 'PB', 0, 1,  'ENT_MCH_APPLYMENT', '0', 'PLATFORM', null, now(), now());
insert into t_sys_entitlement values('ENT_MCH_APPLYMENT_SIGN', '按钮：自主签约', 'no-icon', '', '', 'PB', 0, 1,  'ENT_MCH_APPLYMENT', '0', 'PLATFORM', '{epUserEnt:true}', now(), now());
insert into t_sys_entitlement values('ENT_MCH_APPLYMENT_STORE', '按钮：门店入驻', 'no-icon', '', '', 'PB', 0, 1,  'ENT_MCH_APPLYMENT', '0', 'PLATFORM', null, now(), now());
insert into t_sys_entitlement values('ENT_MCH_APPLYMENT_GET_INFO', '按钮：获取最新结果', 'no-icon', '', '', 'PB', 0, 1,  'ENT_MCH_APPLYMENT', '0', 'PLATFORM', '{epUserEnt:true}', now(), now());
insert into t_sys_entitlement values('ENT_MCH_APPLYMENT_PRE_AUDIT', '按钮：预审核', 'no-icon', '', '', 'PB', 0, 1,  'ENT_MCH_APPLYMENT', '0', 'PLATFORM', '{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', 'PLATFORM', '{epUserEnt:true}', now(), now());
insert into t_sys_entitlement values('ENT_MCH_APPLYMENT_DELETE', '按钮：删除', 'no-icon', '', '', 'PB', 0, 1,  'ENT_MCH_APPLYMENT', '0', 'PLATFORM', '{epUserEnt:true}', now(), now());

-- 门店管理
insert into t_sys_entitlement values('ENT_MCH_STORE', '门店管理', 'profile', '/store', 'StorePage', 'ML', 0, 1,  'ENT_MCH', '40', 'PLATFORM', null, now(), now());
insert into t_sys_entitlement values('ENT_MCH_STORE_LIST', '页面：数据列表', 'no-icon', '', '', 'PB', 0, 1,  'ENT_MCH_STORE', '0', 'PLATFORM', null, now(), now());
insert into t_sys_entitlement values('ENT_MCH_STORE_VIEW', '按钮：详情', 'no-icon', '', '', 'PB', 0, 1,  'ENT_MCH_STORE', '0', 'PLATFORM', null, now(), now());
insert into t_sys_entitlement values('ENT_MCH_STORE_ADD', '按钮：新增', 'no-icon', '', '', 'PB', 0, 1,  'ENT_MCH_STORE', '0', 'PLATFORM', null, now(), now());
insert into t_sys_entitlement values('ENT_MCH_STORE_DELETE', '按钮：删除', 'no-icon', '', '', 'PB', 0, 1,  'ENT_MCH_STORE', '0', 'PLATFORM', null, now(), now());
insert into t_sys_entitlement values('ENT_MCH_STORE_EDIT', '按钮：修改', 'no-icon', '', '', 'PB', 0, 1,  'ENT_MCH_STORE', '0', 'PLATFORM', null, now(), now());
insert into t_sys_entitlement values('ENT_MCH_STORE_MAP', '按钮：地图配置', 'no-icon', '', '', 'PB', 0, 1,  'ENT_MCH_STORE', '0', 'PLATFORM', null, now(), now());
-- 蚂蚁店铺
insert into t_sys_entitlement values('ENT_MCH_ALIPAY_SHOP_VIEW', '按钮：详情', 'no-icon', '', '', 'PB', 0, 1,  'ENT_MCH_STORE', '0', 'PLATFORM', null, now(), now());
insert into t_sys_entitlement values('ENT_MCH_ALIPAY_SHOP_STATUS', '按钮：查询审核状态', 'no-icon', '', '', 'PB', 0, 1,  'ENT_MCH_STORE', '0', 'PLATFORM', null, now(), now());
insert into t_sys_entitlement values('ENT_MCH_ALIPAY_SHOP_ADD', '按钮：新增', 'no-icon', '', '', 'PB', 0, 1,  'ENT_MCH_STORE', '0', 'PLATFORM', null, now(), now());
insert into t_sys_entitlement values('ENT_MCH_ALIPAY_SHOP_DELETE', '按钮：删除', 'no-icon', '', '', 'PB', 0, 1,  'ENT_MCH_STORE', '0', 'PLATFORM', null, now(), now());
insert into t_sys_entitlement values('ENT_MCH_ALIPAY_SHOP_EDIT', '按钮：修改', 'no-icon', '', '', 'PB', 0, 1,  'ENT_MCH_STORE', '0', 'PLATFORM', null, now(), now());

-- 服务商管理
insert into t_sys_entitlement values('ENT_ISV', '服务商管理', 'block', '', 'RouteView', 'ML', 0, 1,  'ROOT', '40', 'PLATFORM', null, now(), now());
insert into t_sys_entitlement values('ENT_ISV_INFO', '服务商列表', 'profile', '/isv', 'IsvListPage', 'ML', 0, 1,  'ENT_ISV', '10', 'PLATFORM', null, now(), now());
insert into t_sys_entitlement values('ENT_ISV_LIST', '页面：服务商列表', 'no-icon', '', '', 'PB', 0, 1,  'ENT_ISV_INFO', '0', 'PLATFORM', null, now(), now());
insert into t_sys_entitlement values('ENT_ISV_INFO_ADD', '按钮：新增', 'no-icon', '', '', 'PB', 0, 1,  'ENT_ISV_INFO', '0', 'PLATFORM', null, now(), now());
insert into t_sys_entitlement values('ENT_ISV_INFO_EDIT', '按钮：编辑', 'no-icon', '', '', 'PB', 0, 1,  'ENT_ISV_INFO', '0', 'PLATFORM', null, now(), now());
insert into t_sys_entitlement values('ENT_ISV_INFO_VIEW', '按钮：详情', 'no-icon', '', '', 'PB', 0, 1,  'ENT_ISV_INFO', '0', 'PLATFORM', null, now(), now());
insert into t_sys_entitlement values('ENT_ISV_INFO_DEL', '按钮：删除', 'no-icon', '', '', 'PB', 0, 1,  'ENT_ISV_INFO', '0', 'PLATFORM', null, now(), now());
insert into t_sys_entitlement values('ENT_ISV_PAY_CONFIG', '按钮：支付配置', 'no-icon', '', '', 'PB', 0, 1,  'ENT_ISV_INFO', '0', 'PLATFORM', null, now(), now());

-- 佣金管理
insert into t_sys_entitlement values('ENT_PROFIT', '佣金管理', 'wallet', '', 'RouteView', 'ML', 0, 1,  'ROOT', '40', 'PLATFORM', null, now(), now());

insert into t_sys_entitlement values('ENT_PROFIT_PLATFORM', '运营佣金统计', 'account-book', '/platformProfits', 'PlatformProfitPage', 'ML', 0, 1,  'ENT_PROFIT', '10', 'PLATFORM', null, now(), now());
insert into t_sys_entitlement values('ENT_PROFIT_PLATFORM_LIST', '页面：运营佣金统计', 'no-icon', '', '', 'PB', 0, 1,  'ENT_PROFIT_PLATFORM', '0', 'PLATFORM', null, now(), now());

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

-- 订单管理
insert into t_sys_entitlement values('ENT_ORDER', '订单管理', 'transaction', '', 'RouteView', 'ML', 0, 1,  'ROOT', '50', 'PLATFORM', null, now(), now());
insert into t_sys_entitlement values('ENT_PAY_ORDER', '支付订单', 'account-book', '/pay', 'PayOrderListPage', 'ML', 0, 1,  'ENT_ORDER', '10', 'PLATFORM', null, now(), now());
insert into t_sys_entitlement values('ENT_ORDER_LIST', '页面：订单列表', 'no-icon', '', '', 'PB', 0, 1,  'ENT_PAY_ORDER', '0', 'PLATFORM', null, now(), now());
insert into t_sys_entitlement values('ENT_PAY_ORDER_VIEW', '按钮：详情', 'no-icon', '', '', 'PB', 0, 1,  'ENT_PAY_ORDER', '0', 'PLATFORM', null, now(), now());
insert into t_sys_entitlement values('ENT_PAY_ORDER_REFUND', '按钮：订单退款', 'no-icon', '', '', 'PB', 0, 1,  'ENT_PAY_ORDER', '0', 'PLATFORM', null, now(), now());
insert into t_sys_entitlement values('ENT_PAY_ORDER_SEARCH_PAY_WAY', '筛选项：支付方式', 'no-icon', '', '', 'PB', 0, 1,  'ENT_PAY_ORDER', '0', 'PLATFORM', null, now(), now());
insert into t_sys_entitlement values('ENT_ORDER_COUNT', '支付统计', 'no-icon', '', '', 'PB', 0, 1,  'ENT_PAY_ORDER', '0', 'PLATFORM', null, now(), now());

insert into t_sys_entitlement values('ENT_REFUND_ORDER', '退款订单', 'exception', '/refund', 'RefundOrderListPage', 'ML', 0, 1,  'ENT_ORDER', '20', 'PLATFORM', null, now(), now());
insert into t_sys_entitlement values('ENT_REFUND_LIST', '页面：退款订单列表', 'no-icon', '', '', 'PB', 0, 1,  'ENT_REFUND_ORDER', '0', 'PLATFORM', null, now(), now());
insert into t_sys_entitlement values('ENT_REFUND_ORDER_VIEW', '按钮：详情', 'no-icon', '', '', 'PB', 0, 1,  'ENT_REFUND_ORDER', '0', 'PLATFORM', null, now(), now());
insert into t_sys_entitlement
values ('ENT_REFUND_ORDER_COUNT', '退款统计', 'no-icon', '', '', 'PB', 0, 1, 'ENT_REFUND_ORDER', '0', 'PLATFORM', null,
        now(), now());

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

insert into t_sys_entitlement values('ENT_MCH_NOTIFY', '商户通知', 'notification', '/notify', 'MchNotifyListPage', 'ML', 0, 1,  'ENT_ORDER', '30', 'PLATFORM', null, now(), now());
insert into t_sys_entitlement values('ENT_NOTIFY_LIST', '页面：商户通知列表', 'no-icon', '', '', 'PB', 0, 1,  'ENT_MCH_NOTIFY', '0', 'PLATFORM', null, now(), now());
insert into t_sys_entitlement values('ENT_MCH_NOTIFY_VIEW', '按钮：详情', 'no-icon', '', '', 'PB', 0, 1,  'ENT_MCH_NOTIFY', '0', 'PLATFORM', null, now(), now());
insert into t_sys_entitlement values('ENT_MCH_NOTIFY_RESEND', '按钮：重发通知', 'no-icon', '', '', 'PB', 0, 1,  'ENT_MCH_NOTIFY', '0', 'PLATFORM', null, now(), now());

insert into t_sys_entitlement values('ENT_CHANNEL_CASHOUT', '提现记录', 'pay-circle', '/channel/cashout', 'ChannelCashoutPage', 'ML', 0, 1,  'ENT_ORDER', '40', 'PLATFORM', null, now(), now());
insert into t_sys_entitlement values('ENT_CHANNEL_CASHOUT_LIST', '页面：提现记录列表', 'no-icon', '', '', 'PB', 0, 1,  'ENT_CHANNEL_CASHOUT', '0', 'PLATFORM', null, now(), now());
insert into t_sys_entitlement values('ENT_CHANNEL_CASHOUT_RECORD_VIEW', '按钮：详情', 'no-icon', '', '', 'PB', 0, 1,  'ENT_CHANNEL_CASHOUT', '0', 'PLATFORM', null, now(), now());

insert into t_sys_entitlement values('ENT_ZFT_SETT_RECORD', '直付通结算订单', 'account-book', '/settle/zft', 'ZftSettRecordPage', 'ML', 0, 1,  'ENT_ORDER', '50', 'PLATFORM', null, now(), now());
insert into t_sys_entitlement values('ENT_ZFT_SETT_RECORD_LIST', '页面：提现记录列表', 'no-icon', '', '', 'PB', 0, 1,  'ENT_ZFT_SETT_RECORD', '0', 'PLATFORM', null, now(), now());
insert into t_sys_entitlement values('ENT_ZFT_SETT_RECORD_VIEW', '按钮：详情', 'no-icon', '', '', 'PB', 0, 1,  'ENT_ZFT_SETT_RECORD', '0', 'PLATFORM', null, now(), now());

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

insert into t_sys_entitlement values('ENT_STATISTIC_TRANSACTION', '交易报表', 'account-book', '/statistic/transaction', 'TransactionPage', 'ML', 0, 1,  'ENT_ORDER_STATISTIC', '10', 'PLATFORM', null, now(), now());
insert into t_sys_entitlement values('ENT_STATISTIC_MCH', '商户统计', 'line-chart', '/statistic/mch', 'MchCountPage', 'ML', 0, 1,  'ENT_ORDER_STATISTIC', '20', 'PLATFORM', null, now(), now());
insert into t_sys_entitlement values('ENT_STATISTIC_MCH_STORE', '门店统计', 'no-icon', '', '', 'PB', 0, 1,  'ENT_STATISTIC_MCH', '0', 'PLATFORM', null, now(), now());
insert into t_sys_entitlement values('ENT_STATISTIC_MCH_WAY', '支付方式统计', 'no-icon', '', '', 'PB', 0, 1,  'ENT_STATISTIC_MCH', '0', 'PLATFORM', null, now(), now());
insert into t_sys_entitlement values('ENT_STATISTIC_MCH_TYPE', '支付类型统计', 'no-icon', '', '', 'PB', 0, 1,  'ENT_STATISTIC_MCH', '0', 'PLATFORM', null, now(), now());

insert into t_sys_entitlement values('ENT_STATISTIC_ISV', '服务商统计', 'fund', '/statistic/isv', 'IsvCountPage', 'ML', 0, 1,  'ENT_ORDER_STATISTIC', '40', 'PLATFORM', null, now(), now());

insert into t_sys_entitlement values('ENT_STATISTIC_CHANNEL', '通道统计', 'project', '/statistic/channel', 'ChannelCountPage', 'ML', 0, 1,  'ENT_ORDER_STATISTIC', '50', 'PLATFORM', null, now(), now());
insert into t_sys_entitlement values('ENT_STATISTIC_DEVICE', '设备统计', 'mobile', '/statistic/device', 'DeviceCountPage', 'ML', 0, 1,  'ENT_ORDER_STATISTIC', '60', 'PLATFORM', null, now(), now());

-- 支付配置菜单
insert into t_sys_entitlement values('ENT_PC', '支付配置', 'file-done', '', 'RouteView', 'ML', 0, 1,  'ROOT', '60', 'PLATFORM', null, now(), now());
insert into t_sys_entitlement values('ENT_PC_IF_DEFINE', '支付接口', 'interaction', '/ifdefines', 'IfDefinePage', 'ML', 0, 1,  'ENT_PC', '10', 'PLATFORM', null, now(), now());
insert into t_sys_entitlement values('ENT_PC_IF_DEFINE_LIST', '页面：支付接口定义列表', 'no-icon', '', '', 'PB', 0, 1,  'ENT_PC_IF_DEFINE', '0', 'PLATFORM', null, now(), now());
insert into t_sys_entitlement values('ENT_PC_IF_DEFINE_SEARCH', '页面：搜索', 'no-icon', '', '', 'PB', 0, 1,  'ENT_PC_IF_DEFINE', '0', 'PLATFORM', null, now(), now());
insert into t_sys_entitlement values('ENT_PC_IF_DEFINE_VIEW', '按钮：详情', 'no-icon', '', '', 'PB', 0, 1,  'ENT_PC_IF_DEFINE', '0', 'PLATFORM', null, now(), now());
insert into t_sys_entitlement values('ENT_PC_IF_DEFINE_ADD', '按钮：新增', 'no-icon', '', '', 'PB', 0, 1,  'ENT_PC_IF_DEFINE', '0', 'PLATFORM', null, now(), now());
insert into t_sys_entitlement values('ENT_PC_IF_DEFINE_EDIT', '按钮：修改', 'no-icon', '', '', 'PB', 0, 1,  'ENT_PC_IF_DEFINE', '0', 'PLATFORM', null, now(), now());
insert into t_sys_entitlement values('ENT_PC_IF_DEFINE_DEL', '按钮：删除', 'no-icon', '', '', 'PB', 0, 1,  'ENT_PC_IF_DEFINE', '0', 'PLATFORM', null, now(), now());
insert into t_sys_entitlement values('ENT_PC_WAY', '支付方式', 'appstore', '/payways', 'PayWayPage', 'ML', 0, 1,  'ENT_PC', '20', 'PLATFORM', null, now(), now());
insert into t_sys_entitlement values('ENT_PC_WAY_LIST', '页面：支付方式列表', 'no-icon', '', '', 'PB', 0, 1,  'ENT_PC_WAY', '0', 'PLATFORM', null, now(), now());
insert into t_sys_entitlement values('ENT_PC_WAY_SEARCH', '页面：搜索', 'no-icon', '', '', 'PB', 0, 1,  'ENT_PC_WAY', '0', 'PLATFORM', null, now(), now());
insert into t_sys_entitlement values('ENT_PC_WAY_VIEW', '按钮：详情', 'no-icon', '', '', 'PB', 0, 1,  'ENT_PC_WAY', '0', 'PLATFORM', null, now(), now());
insert into t_sys_entitlement values('ENT_PC_WAY_ADD', '按钮：新增', 'no-icon', '', '', 'PB', 0, 1,  'ENT_PC_WAY', '0', 'PLATFORM', null, now(), now());
insert into t_sys_entitlement values('ENT_PC_WAY_EDIT', '按钮：修改', 'no-icon', '', '', 'PB', 0, 1,  'ENT_PC_WAY', '0', 'PLATFORM', null, now(), now());
insert into t_sys_entitlement values('ENT_PC_WAY_DEL', '按钮：删除', 'no-icon', '', '', 'PB', 0, 1,  'ENT_PC_WAY', '0', 'PLATFORM', null, now(), now());

-- 分账管理菜单
insert into t_sys_entitlement values('ENT_DIVISION', '分账管理', 'apartment', '', 'RouteView', 'ML', 0, 1,  'ROOT', '65', 'PLATFORM', null, now(), now());
insert into t_sys_entitlement values('ENT_DIVISION_RECEIVER_GROUP', '账号组管理', 'team', '/divisionReceiverGroup', 'DivisionReceiverGroupPage', 'ML', 0, 1,  'ENT_DIVISION', '10', 'PLATFORM', null, now(), now());
insert into t_sys_entitlement values('ENT_DIVISION_RECEIVER_GROUP_LIST', '页面：数据列表', 'no-icon', '', '', 'PB', 0, 1,  'ENT_DIVISION_RECEIVER_GROUP', '0', 'PLATFORM', null, now(), now());
insert into t_sys_entitlement values('ENT_DIVISION_RECEIVER_GROUP_VIEW', '按钮：详情', 'no-icon', '', '', 'PB', 0, 1,  'ENT_DIVISION_RECEIVER_GROUP', '0', 'PLATFORM', null, now(), now());
insert into t_sys_entitlement values('ENT_DIVISION_RECEIVER_GROUP_ADD', '按钮：新增', 'no-icon', '', '', 'PB', 0, 1,  'ENT_DIVISION_RECEIVER_GROUP', '0', 'PLATFORM', null, now(), now());
insert into t_sys_entitlement values('ENT_DIVISION_RECEIVER_GROUP_EDIT', '按钮：修改', 'no-icon', '', '', 'PB', 0, 1,  'ENT_DIVISION_RECEIVER_GROUP', '0', 'PLATFORM', null, now(), now());
insert into t_sys_entitlement values('ENT_DIVISION_RECEIVER_GROUP_DELETE', '按钮：删除', 'no-icon', '', '', 'PB', 0, 1,  'ENT_DIVISION_RECEIVER_GROUP', '0', 'PLATFORM', null, now(), now());
insert into t_sys_entitlement values('ENT_DIVISION_RECEIVER', '收款账号管理', 'trademark', '/divisionReceiver', 'DivisionReceiverPage', 'ML', 0, 1,  'ENT_DIVISION', '20', 'PLATFORM', null, now(), now());
insert into t_sys_entitlement values('ENT_DIVISION_RECEIVER_LIST', '页面：数据列表', 'no-icon', '', '', 'PB', 0, 1,  'ENT_DIVISION_RECEIVER', '0', 'PLATFORM', null, now(), now());
insert into t_sys_entitlement values('ENT_DIVISION_RECEIVER_VIEW', '按钮：详情', 'no-icon', '', '', 'PB', 0, 1,  'ENT_DIVISION_RECEIVER', '0', 'PLATFORM', null, now(), now());
insert into t_sys_entitlement values('ENT_DIVISION_RECEIVER_ADD', '按钮：新增收款账号', 'no-icon', '', '', 'PB', 0, 1,  'ENT_DIVISION_RECEIVER', '0', 'PLATFORM', null, now(), now());
insert into t_sys_entitlement values('ENT_DIVISION_RECEIVER_DELETE', '按钮：删除收款账号', 'no-icon', '', '', 'PB', 0, 1,  'ENT_DIVISION_RECEIVER', '0', 'PLATFORM', null, now(), now());
insert into t_sys_entitlement values('ENT_DIVISION_RECEIVER_EDIT', '按钮：修改账号信息', 'no-icon', '', '', 'PB', 0, 1,  'ENT_DIVISION_RECEIVER', '0', 'PLATFORM', null, now(), now());
insert into t_sys_entitlement values('ENT_DIVISION_CHANNEL_USER', '按钮：扫码获取userId', 'no-icon', '', '', 'PB', 0, 1,  'ENT_DIVISION_RECEIVER', '0', 'PLATFORM', null, now(), now());
insert into t_sys_entitlement values('ENT_DIVISION_RECORD', '分账记录', 'unordered-list', '/divisionRecord', 'DivisionRecordPage', 'ML', 0, 1,  'ENT_DIVISION', '30', 'PLATFORM', null, now(), now());
insert into t_sys_entitlement values('ENT_DIVISION_RECORD_LIST', '页面：数据列表', 'no-icon', '', '', 'PB', 0, 1,  'ENT_DIVISION_RECORD', '0', 'PLATFORM', null, now(), now());
insert into t_sys_entitlement values('ENT_DIVISION_RECORD_VIEW', '按钮：详情', 'no-icon', '', '', 'PB', 0, 1,  'ENT_DIVISION_RECORD', '0', 'PLATFORM', null, now(), now());
insert into t_sys_entitlement values('ENT_DIVISION_RECORD_RESEND', '按钮：重试', 'no-icon', '', '', 'PB', 0, 1,  'ENT_DIVISION_RECORD', '0', 'PLATFORM', null, now(), now());
insert into t_sys_entitlement values('ENT_DIVISION_REFUND_RECORD', '分账回退记录', 'node-collapse', '/divisionRefundRecord', 'DivisionRefundRecordPage', 'ML', 0, 1,  'ENT_DIVISION', '40', 'PLATFORM', null, now(), now());
insert into t_sys_entitlement values('ENT_DIVISION_REFUND_RECORD_LIST', '页面：数据列表', 'no-icon', '', '', 'PB', 0, 1,  'ENT_DIVISION_REFUND_RECORD', '0', 'PLATFORM', null, now(), now());
insert into t_sys_entitlement values('ENT_DIVISION_REFUND_RECORD_VIEW', '按钮：详情', 'no-icon', '', '', 'PB', 0, 1,  'ENT_DIVISION_REFUND_RECORD', '0', 'PLATFORM', null, now(), now());

-- 对账管理菜单
insert into t_sys_entitlement values('ENT_CHECK', '对账管理', 'merge-cells', '', 'RouteView', 'ML', 0, 1,  'ROOT', '67', 'PLATFORM', null, now(), now());

insert into t_sys_entitlement values('ENT_CHECK_BATCH', '对账批次', 'control', '/checkBatch', 'CheckBatchPage', 'ML', 0, 1,  'ENT_CHECK', '10', 'PLATFORM', null, now(), now());
insert into t_sys_entitlement values('ENT_CHECK_BATCH_LIST', '页面：数据列表', 'no-icon', '', '', 'PB', 0, 1,  'ENT_CHECK_BATCH', '0', 'PLATFORM', null, now(), now());
insert into t_sys_entitlement values('ENT_CHECK_BATCH_VIEW', '按钮：详情', 'no-icon', '', '', 'PB', 0, 1,  'ENT_CHECK_BATCH', '0', 'PLATFORM', null, now(), now());
insert into t_sys_entitlement values('ENT_CHECK_BATCH_RELOAD', '按钮：重新对账', 'no-icon', '', '', 'PB', 0, 1,  'ENT_CHECK_BATCH', '0', 'PLATFORM', null, now(), now());

insert into t_sys_entitlement values('ENT_CHECK_CHANNEL_BILL', '渠道账单', 'container', '/channelBill', 'CheckChannelBillPage', 'ML', 0, 1,  'ENT_CHECK', '20', 'PLATFORM', null, now(), now());
insert into t_sys_entitlement values('ENT_CHECK_CHANNEL_BILL_LIST', '页面：数据列表', 'no-icon', '', '', 'PB', 0, 1,  'ENT_CHECK_CHANNEL_BILL', '0', 'PLATFORM', null, now(), now());
insert into t_sys_entitlement values('ENT_CHECK_CHANNEL_BILL_VIEW', '按钮：详情', 'no-icon', '', '', 'PB', 0, 1,  'ENT_CHECK_CHANNEL_BILL', '0', 'PLATFORM', null, now(), now());
insert into t_sys_entitlement values('ENT_CHECK_CHANNEL_BILL_COUNT', '按钮：数据统计', 'no-icon', '', '', 'PB', 0, 1,  'ENT_CHECK_CHANNEL_BILL', '0', 'PLATFORM', null, now(), now());

insert into t_sys_entitlement values('ENT_CHECK_DIFF', '差异账单', 'file-unknown', '/diff', 'CheckDiffPage', 'ML', 0, 1,  'ENT_CHECK', '30', 'PLATFORM', null, now(), now());
insert into t_sys_entitlement values('ENT_CHECK_DIFF_LIST', '页面：数据列表', 'no-icon', '', '', 'PB', 0, 1,  'ENT_CHECK_DIFF', '0', 'PLATFORM', null, now(), now());
insert into t_sys_entitlement values('ENT_CHECK_DIFF_VIEW', '按钮：详情', 'no-icon', '', '', 'PB', 0, 1,  'ENT_CHECK_DIFF', '0', 'PLATFORM', null, now(), now());
insert into t_sys_entitlement values('ENT_CHECK_DIFF_REISSUE', '按钮：补单', 'no-icon', '', '', 'PB', 0, 1,  'ENT_CHECK_DIFF', '0', 'PLATFORM', null, now(), now());
insert into t_sys_entitlement values('ENT_CHECK_DIFF_IGNORE', '按钮：忽略差异', 'no-icon', '', '', 'PB', 0, 1,  'ENT_CHECK_DIFF', '0', 'PLATFORM', null, now(), now());


-- 设备管理菜单
insert into t_sys_entitlement values('ENT_DEVICE', '设备配置', 'appstore', '', 'RouteView', 'ML', 0, 1,  'ROOT', '70', 'PLATFORM', null, now(), now());
insert into t_sys_entitlement values('ENT_QRC', '码牌', 'shop', '', 'RouteView', 'ML', 0, 1,  'ENT_DEVICE', '10', 'PLATFORM', null, now(), now());
insert into t_sys_entitlement values('ENT_DEVICE_QRC_SHELL', '模板管理', 'file', '/shell', 'QrcodeShellPage', 'ML', 0, 1,  'ENT_QRC', '10', 'PLATFORM', null, now(), now());
insert into t_sys_entitlement values('ENT_DEVICE_QRC_SHELL_LIST', '页面：列表', 'no-icon', '', '', 'PB', 0, 1,  'ENT_DEVICE_QRC_SHELL', '0', 'PLATFORM', null, now(), now());
insert into t_sys_entitlement values('ENT_DEVICE_QRC_SHELL_VIEW', '按钮：详情', 'no-icon', '', '', 'PB', 0, 1,  'ENT_DEVICE_QRC_SHELL', '0', 'PLATFORM', null, now(), now());
insert into t_sys_entitlement values('ENT_DEVICE_QRC_SHELL_ADD', '按钮：新增', 'no-icon', '', '', 'PB', 0, 1,  'ENT_DEVICE_QRC_SHELL', '0', 'PLATFORM', null, now(), now());
insert into t_sys_entitlement values('ENT_DEVICE_QRC_SHELL_DEL', '按钮：删除', 'no-icon', '', '', 'PB', 0, 1,  'ENT_DEVICE_QRC_SHELL', '0', 'PLATFORM', null, now(), now());
insert into t_sys_entitlement values('ENT_DEVICE_QRC_SHELL_EDIT', '按钮：修改', 'no-icon', '', '', 'PB', 0, 1,  'ENT_DEVICE_QRC_SHELL', '0', 'PLATFORM', null, now(), now());

insert into t_sys_entitlement values('ENT_DEVICE_QRC', '码牌管理', 'qrcode', '/qrc', 'QrcodeCardPage', 'ML', 0, 1,  'ENT_QRC', '20', 'PLATFORM', null, now(), now());
insert into t_sys_entitlement values('ENT_DEVICE_QRC_LIST', '页面：列表', 'no-icon', '', '', 'PB', 0, 1,  'ENT_DEVICE_QRC', '0', 'PLATFORM', null, now(), now());
insert into t_sys_entitlement values('ENT_DEVICE_QRC_VIEW', '按钮：详情', 'no-icon', '', '', 'PB', 0, 1,  'ENT_DEVICE_QRC', '0', 'PLATFORM', null, now(), now());
insert into t_sys_entitlement values('ENT_DEVICE_QRC_ADD', '按钮：新增', 'no-icon', '', '', 'PB', 0, 1,  'ENT_DEVICE_QRC', '0', 'PLATFORM', null, now(), now());
insert into t_sys_entitlement values('ENT_DEVICE_QRC_DEL', '按钮：删除', 'no-icon', '', '', 'PB', 0, 1,  'ENT_DEVICE_QRC', '0', 'PLATFORM', null, now(), now());
insert into t_sys_entitlement values('ENT_DEVICE_QRC_EDIT', '按钮：修改', 'no-icon', '', '', 'PB', 0, 1,  'ENT_DEVICE_QRC', '0', 'PLATFORM', null, now(), now());
insert into t_sys_entitlement values('ENT_DEVICE_QRC_ALLOT', '按钮：划拨', 'no-icon', '', '', 'PB', 0, 1,  'ENT_DEVICE_QRC', '0', 'PLATFORM', null, now(), now());
insert into t_sys_entitlement values('ENT_DEVICE_QRC_EXPORT', '按钮：导出', 'no-icon', '', '', 'PB', 0, 1,  'ENT_DEVICE_QRC', '0', 'PLATFORM', null, now(), now());


insert into t_sys_entitlement values('ENT_SPEAKER', '云喇叭', 'sound', '', 'RouteView', 'ML', 0, 1,  'ENT_DEVICE', '20', 'PLATFORM', null, now(), now());
insert into t_sys_entitlement values('ENT_DEVICE_SPEAKER', '厂商管理', 'setting', '/speaker', 'SpeakerPage', 'ML', 0, 1,  'ENT_SPEAKER', '10', 'PLATFORM', null, now(), now());
insert into t_sys_entitlement values('ENT_DEVICE_SPEAKER_LIST', '页面：云喇叭厂商配置列表', 'no-icon', '', '', 'PB', 0, 1,  'ENT_DEVICE_SPEAKER', '0', 'PLATFORM', null, now(), now());
insert into t_sys_entitlement values('ENT_DEVICE_SPEAKER_VIEW', '按钮：详情', 'no-icon', '', '', 'PB', 0, 1,  'ENT_DEVICE_SPEAKER', '0', 'PLATFORM', null, now(), now());
insert into t_sys_entitlement values('ENT_DEVICE_SPEAKER_ADD', '按钮：新增', 'no-icon', '', '', 'PB', 0, 1,  'ENT_DEVICE_SPEAKER', '0', 'PLATFORM', null, now(), now());
insert into t_sys_entitlement values('ENT_DEVICE_SPEAKER_EDIT', '按钮：修改', 'no-icon', '', '', 'PB', 0, 1,  'ENT_DEVICE_SPEAKER', '0', 'PLATFORM', null, now(), now());
insert into t_sys_entitlement values('ENT_DEVICE_SPEAKER_DEL', '按钮：删除', 'no-icon', '', '', 'PB', 0, 1,  'ENT_DEVICE_SPEAKER', '0', 'PLATFORM', null, now(), now());

insert into t_sys_entitlement values('ENT_DEVICE_SPEAKER_DEVICE', '云喇叭管理', 'file', '/speaker/device', 'SpeakerDevicePage', 'ML', 0, 1,  'ENT_SPEAKER', '20', 'PLATFORM', null, now(), now());
insert into t_sys_entitlement values('ENT_DEVICE_SPEAKER_DEVICE_LIST', '页面：云喇叭设备列表', 'no-icon', '', '', 'PB', 0, 1,  'ENT_DEVICE_SPEAKER_DEVICE', '0', 'PLATFORM', null, now(), now());
insert into t_sys_entitlement values('ENT_DEVICE_SPEAKER_DEVICE_VIEW', '按钮：详情', 'no-icon', '', '', 'PB', 0, 1,  'ENT_DEVICE_SPEAKER_DEVICE', '0', 'PLATFORM', null, now(), now());
insert into t_sys_entitlement values('ENT_DEVICE_SPEAKER_DEVICE_ADD', '按钮：新增', 'no-icon', '', '', 'PB', 0, 1,  'ENT_DEVICE_SPEAKER_DEVICE', '0', 'PLATFORM', null, now(), now());
insert into t_sys_entitlement values('ENT_DEVICE_SPEAKER_DEVICE_EDIT', '按钮：修改', 'no-icon', '', '', 'PB', 0, 1,  'ENT_DEVICE_SPEAKER_DEVICE', '0', 'PLATFORM', null, now(), now());
insert into t_sys_entitlement values('ENT_DEVICE_SPEAKER_DEVICE_DEL', '按钮：删除', 'no-icon', '', '', 'PB', 0, 1,  'ENT_DEVICE_SPEAKER_DEVICE', '0', 'PLATFORM', null, now(), now());
insert into t_sys_entitlement values('ENT_DEVICE_SPEAKER_DEVICE_ALLOT', '按钮：划拨/收回', 'no-icon', '', '', 'PB', 0, 1,  'ENT_DEVICE_SPEAKER_DEVICE', '0', 'PLATFORM', null, now(), now());
insert into t_sys_entitlement values('ENT_DEVICE_SPEAKER_DEVICE_TEST', '按钮：播报测试', 'no-icon', '', '', 'PB', 0, 1,  'ENT_DEVICE_SPEAKER_DEVICE', '0', 'PLATFORM', null, now(), now());

insert into t_sys_entitlement values('ENT_PRINTER', '云打印', 'printer', '', 'RouteView', 'ML', 0, 1,  'ENT_DEVICE', '30', 'PLATFORM', null, now(), now());
insert into t_sys_entitlement values('ENT_DEVICE_PRINTER', '厂商管理', 'setting', '/printer', 'PrinterPage', 'ML', 0, 1,  'ENT_PRINTER', '10', 'PLATFORM', null, now(), now());
insert into t_sys_entitlement values('ENT_DEVICE_PRINTER_LIST', '页面：云打印列表', 'no-icon', '', '', 'PB', 0, 1,  'ENT_DEVICE_PRINTER', '0', 'PLATFORM', null, now(), now());
insert into t_sys_entitlement values('ENT_DEVICE_PRINTER_VIEW', '按钮：详情', 'no-icon', '', '', 'PB', 0, 1,  'ENT_DEVICE_PRINTER', '0', 'PLATFORM', null, now(), now());
insert into t_sys_entitlement values('ENT_DEVICE_PRINTER_ADD', '按钮：新增', 'no-icon', '', '', 'PB', 0, 1,  'ENT_DEVICE_PRINTER', '0', 'PLATFORM', null, now(), now());
insert into t_sys_entitlement values('ENT_DEVICE_PRINTER_EDIT', '按钮：修改', 'no-icon', '', '', 'PB', 0, 1,  'ENT_DEVICE_PRINTER', '0', 'PLATFORM', null, now(), now());
insert into t_sys_entitlement values('ENT_DEVICE_PRINTER_DEL', '按钮：删除', 'no-icon', '', '', 'PB', 0, 1,  'ENT_DEVICE_PRINTER', '0', 'PLATFORM', null, now(), now());

insert into t_sys_entitlement values('ENT_DEVICE_PRINTER_DEVICE', '云打印管理', 'file', '/printer/device', 'PrinterDevicePage', 'ML', 0, 1,  'ENT_PRINTER', '20', 'PLATFORM', null, now(), now());
insert into t_sys_entitlement values('ENT_DEVICE_PRINTER_DEVICE_LIST', '页面：云打印设备列表', 'no-icon', '', '', 'PB', 0, 1,  'ENT_DEVICE_PRINTER_DEVICE', '0', 'PLATFORM', null, now(), now());
insert into t_sys_entitlement values('ENT_DEVICE_PRINTER_DEVICE_VIEW', '按钮：详情', 'no-icon', '', '', 'PB', 0, 1,  'ENT_DEVICE_PRINTER_DEVICE', '0', 'PLATFORM', null, now(), now());
insert into t_sys_entitlement values('ENT_DEVICE_PRINTER_DEVICE_ADD', '按钮：新增', 'no-icon', '', '', 'PB', 0, 1,  'ENT_DEVICE_PRINTER_DEVICE', '0', 'PLATFORM', null, now(), now());
insert into t_sys_entitlement values('ENT_DEVICE_PRINTER_DEVICE_EDIT', '按钮：修改', 'no-icon', '', '', 'PB', 0, 1,  'ENT_DEVICE_PRINTER_DEVICE', '0', 'PLATFORM', null, now(), now());
insert into t_sys_entitlement values('ENT_DEVICE_PRINTER_DEVICE_DEL', '按钮：删除', 'no-icon', '', '', 'PB', 0, 1,  'ENT_DEVICE_PRINTER_DEVICE', '0', 'PLATFORM', null, now(), now());
insert into t_sys_entitlement values('ENT_DEVICE_PRINTER_DEVICE_ALLOT', '按钮：划拨/收回', 'no-icon', '', '', 'PB', 0, 1,  'ENT_DEVICE_PRINTER_DEVICE', '0', 'PLATFORM', null, now(), now());
insert into t_sys_entitlement values('ENT_DEVICE_PRINTER_DEVICE_TEST', '按钮：打印测试', 'no-icon', '', '', 'PB', 0, 1,  'ENT_DEVICE_PRINTER_DEVICE', '0', 'PLATFORM', null, now(), now());
insert into t_sys_entitlement values('ENT_DEVICE_PRINTER_DEVICE_CLEAR', '按钮：清空打印队列', 'no-icon', '', '', 'PB', 0, 1,  'ENT_DEVICE_PRINTER_DEVICE', '0', 'PLATFORM', null, now(), now());

insert into t_sys_entitlement values('ENT_PLUGIN', '收银插件', 'api', '', 'RouteView', 'ML', 0, 1,  'ENT_DEVICE', '35', 'PLATFORM', null, now(), now());
insert into t_sys_entitlement values('ENT_DEVICE_PLUGIN', '厂商管理', 'setting', '/plugin', 'PluginPage', 'ML', 0, 1,  'ENT_PLUGIN', '10', 'PLATFORM', null, now(), now());
insert into t_sys_entitlement values('ENT_DEVICE_PLUGIN_LIST', '页面：列表', 'no-icon', '', '', 'PB', 0, 1,  'ENT_DEVICE_PLUGIN', '0', 'PLATFORM', null, now(), now());
insert into t_sys_entitlement values('ENT_DEVICE_PLUGIN_VIEW', '按钮：详情', 'no-icon', '', '', 'PB', 0, 1,  'ENT_DEVICE_PLUGIN', '0', 'PLATFORM', null, now(), now());
insert into t_sys_entitlement values('ENT_DEVICE_PLUGIN_ADD', '按钮：新增', 'no-icon', '', '', 'PB', 0, 1,  'ENT_DEVICE_PLUGIN', '0', 'PLATFORM', null, now(), now());
insert into t_sys_entitlement values('ENT_DEVICE_PLUGIN_EDIT', '按钮：修改', 'no-icon', '', '', 'PB', 0, 1,  'ENT_DEVICE_PLUGIN', '0', 'PLATFORM', null, now(), now());
insert into t_sys_entitlement values('ENT_DEVICE_PLUGIN_DEL', '按钮：删除', 'no-icon', '', '', 'PB', 0, 1,  'ENT_DEVICE_PLUGIN', '0', 'PLATFORM', null, now(), now());
insert into t_sys_entitlement values('ENT_DEVICE_PLUGIN_CDKEY', '激活码管理', 'file', '/plugin/cdkey', 'PluginCdKeyPage', 'ML', 0, 1,  'ENT_PLUGIN', '20', 'PLATFORM', null, now(), now());
insert into t_sys_entitlement values('ENT_DEVICE_PLUGIN_CDKEY_LIST', '页面：列表', 'no-icon', '', '', 'PB', 0, 1,  'ENT_DEVICE_PLUGIN_CDKEY', '0', 'PLATFORM', null, now(), now());
insert into t_sys_entitlement values('ENT_DEVICE_PLUGIN_CDKEY_VIEW', '按钮：详情', 'no-icon', '', '', 'PB', 0, 1,  'ENT_DEVICE_PLUGIN_CDKEY', '0', 'PLATFORM', null, now(), now());
insert into t_sys_entitlement values('ENT_DEVICE_PLUGIN_CDKEY_ADD', '按钮：新增', 'no-icon', '', '', 'PB', 0, 1,  'ENT_DEVICE_PLUGIN_CDKEY', '0', 'PLATFORM', null, now(), now());
insert into t_sys_entitlement values('ENT_DEVICE_PLUGIN_CDKEY_EDIT', '按钮：修改', 'no-icon', '', '', 'PB', 0, 1,  'ENT_DEVICE_PLUGIN_CDKEY', '0', 'PLATFORM', null, now(), now());
insert into t_sys_entitlement values('ENT_DEVICE_PLUGIN_CDKEY_DEL', '按钮：删除', 'no-icon', '', '', 'PB', 0, 1,  'ENT_DEVICE_PLUGIN_CDKEY', '0', 'PLATFORM', null, now(), now());
insert into t_sys_entitlement values('ENT_DEVICE_PLUGIN_CDKEY_ALLOT', '按钮：划拨/收回', 'no-icon', '', '', 'PB', 0, 1,  'ENT_DEVICE_PLUGIN_CDKEY', '0', 'PLATFORM', null, now(), now());

insert into t_sys_entitlement values('ENT_POS', '扫码POS', 'scan', '', 'RouteView', 'ML', 0, 1,  'ENT_DEVICE', '40', 'PLATFORM', null, now(), now());
insert into t_sys_entitlement values('ENT_DEVICE_POS', '厂商管理', 'setting', '/pos', 'PosPage', 'ML', 0, 1,  'ENT_POS', '10', 'PLATFORM', null, now(), now());
insert into t_sys_entitlement values('ENT_DEVICE_POS_LIST', '页面：列表', 'no-icon', '', '', 'PB', 0, 1,  'ENT_DEVICE_POS', '0', 'PLATFORM', null, now(), now());
insert into t_sys_entitlement values('ENT_DEVICE_POS_VIEW', '按钮：详情', 'no-icon', '', '', 'PB', 0, 1,  'ENT_DEVICE_POS', '0', 'PLATFORM', null, now(), now());
insert into t_sys_entitlement values('ENT_DEVICE_POS_ADD', '按钮：新增', 'no-icon', '', '', 'PB', 0, 1,  'ENT_DEVICE_POS', '0', 'PLATFORM', null, now(), now());
insert into t_sys_entitlement values('ENT_DEVICE_POS_EDIT', '按钮：修改', 'no-icon', '', '', 'PB', 0, 1,  'ENT_DEVICE_POS', '0', 'PLATFORM', null, now(), now());
insert into t_sys_entitlement values('ENT_DEVICE_POS_DEL', '按钮：删除', 'no-icon', '', '', 'PB', 0, 1,  'ENT_DEVICE_POS', '0', 'PLATFORM', null, now(), now());

insert into t_sys_entitlement values('ENT_DEVICE_POS_DEVICE', '扫码POS管理', 'file', '/pos/device', 'PosDevicePage', 'ML', 0, 1,  'ENT_POS', '20', 'PLATFORM', null, now(), now());
insert into t_sys_entitlement values('ENT_DEVICE_POS_DEVICE_LIST', '页面：列表', 'no-icon', '', '', 'PB', 0, 1,  'ENT_DEVICE_POS_DEVICE', '0', 'PLATFORM', null, now(), now());
insert into t_sys_entitlement values('ENT_DEVICE_POS_DEVICE_VIEW', '按钮：详情', 'no-icon', '', '', 'PB', 0, 1,  'ENT_DEVICE_POS_DEVICE', '0', 'PLATFORM', null, now(), now());
insert into t_sys_entitlement values('ENT_DEVICE_POS_DEVICE_ADD', '按钮：新增', 'no-icon', '', '', 'PB', 0, 1,  'ENT_DEVICE_POS_DEVICE', '0', 'PLATFORM', null, now(), now());
insert into t_sys_entitlement values('ENT_DEVICE_POS_DEVICE_EDIT', '按钮：修改', 'no-icon', '', '', 'PB', 0, 1,  'ENT_DEVICE_POS_DEVICE', '0', 'PLATFORM', null, now(), now());
insert into t_sys_entitlement values('ENT_DEVICE_POS_DEVICE_DEL', '按钮：删除', 'no-icon', '', '', 'PB', 0, 1,  'ENT_DEVICE_POS_DEVICE', '0', 'PLATFORM', null, now(), now());
insert into t_sys_entitlement values('ENT_DEVICE_POS_DEVICE_ALLOT', '按钮：划拨/收回', 'no-icon', '', '', 'PB', 0, 1,  'ENT_DEVICE_POS_DEVICE', '0', 'PLATFORM', null, now(), now());

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

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

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

insert into t_sys_entitlement values('ENT_DEVICE_RUYI', '如意Lite管理', 'file', '/ruyi', 'RuyiPage', 'ML', 0, 1,  'ENT_DEVICE', '60', 'PLATFORM', null, now(), now());
insert into t_sys_entitlement values('ENT_DEVICE_RUYI_LIST', '页面：列表', 'no-icon', '', '', 'PB', 0, 1,  'ENT_DEVICE_RUYI', '0', 'PLATFORM', null, now(), now());
insert into t_sys_entitlement values('ENT_DEVICE_RUYI_VIEW', '按钮：详情', 'no-icon', '', '', 'PB', 0, 1,  'ENT_DEVICE_RUYI', '0', 'PLATFORM', null, now(), now());
insert into t_sys_entitlement values('ENT_DEVICE_RUYI_ADD', '按钮：新增', 'no-icon', '', '', 'PB', 0, 1,  'ENT_DEVICE_RUYI', '0', 'PLATFORM', null, now(), now());
insert into t_sys_entitlement values('ENT_DEVICE_RUYI_EDIT', '按钮：修改', 'no-icon', '', '', 'PB', 0, 1,  'ENT_DEVICE_RUYI', '0', 'PLATFORM', null, now(), now());
insert into t_sys_entitlement values('ENT_DEVICE_RUYI_DEL', '按钮：删除', 'no-icon', '', '', 'PB', 0, 1,  'ENT_DEVICE_RUYI', '0', 'PLATFORM', null, now(), now());
insert into t_sys_entitlement values('ENT_DEVICE_RUYI_ALLOT', '按钮：划拨/收回', 'no-icon', '', '', 'PB', 0, 1,  'ENT_DEVICE_RUYI', '0', 'PLATFORM', null, now(), now());
insert into t_sys_entitlement values('ENT_DEVICE_RUYI_BIND', '按钮：绑定蚂蚁店铺', 'no-icon', '', '', 'PB', 0, 1,  'ENT_DEVICE_RUYI', '0', 'PLATFORM', null, now(), now());



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

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

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

insert into t_sys_entitlement values('ENT_UR_ROLE_ENT', '权限管理', 'apartment', '/ents', 'EntPage', 'ML', 0, 1,  'ENT_UR', '30', 'PLATFORM', null, now(), now());
insert into t_sys_entitlement values('ENT_UR_ROLE_ENT_LIST', '页面： 权限列表', 'no-icon', '', '', 'PB', 0, 1,  'ENT_UR_ROLE_ENT', '0', 'PLATFORM', null, now(), now());
insert into t_sys_entitlement values('ENT_UR_ROLE_ENT_EDIT', '按钮： 权限变更', 'no-icon', '', '', 'PB', 0, 1,  'ENT_UR_ROLE_ENT', '0', 'PLATFORM', null, now(), now());

insert into t_sys_entitlement values('ENT_STATISTIC_MANAGE', '数据管理', 'tool', '/statistic/repair', 'RepairPage', 'ML', 0, 1,  'ENT_SYS_CONFIG', '12', 'PLATFORM', null, now(), now());
insert into t_sys_entitlement values('ENT_STATISTIC_RECORD_LIST', '页面：列表', 'no-icon', '', '', 'PB', 0, 1,  'ENT_STATISTIC_MANAGE', '0', 'PLATFORM', null, now(), now());
insert into t_sys_entitlement values('ENT_STATISTIC_RECORD_VIEW', '按钮：查看', 'no-icon', '', '', 'PB', 0, 1,  'ENT_STATISTIC_MANAGE', '0', 'PLATFORM', null, now(), now());
insert into t_sys_entitlement values('ENT_STATISTIC_REPAIR', '按钮：数据修复', 'no-icon', '', '', 'PB', 0, 1,  'ENT_STATISTIC_MANAGE', '0', 'PLATFORM', null, now(), now());


insert into t_sys_entitlement values('ENT_SYS_CONFIG_INFO', '系统配置', 'setting', '/config', 'SysConfigPage', 'ML', 0, 1,  'ENT_SYS_CONFIG', '15', 'PLATFORM', null, now(), now());
insert into t_sys_entitlement values('ENT_SYS_CONFIG_VIEW', '页面：查看', 'no-icon', '', '', 'PB', 0, 1,  'ENT_SYS_CONFIG_INFO', '0', 'PLATFORM', null, now(), now());
insert into t_sys_entitlement values('ENT_SYS_CONFIG_EDIT', '按钮：修改', 'no-icon', '', '', 'PB', 0, 1,  'ENT_SYS_CONFIG_INFO', '0', 'PLATFORM', null, now(), now());

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

insert into t_sys_entitlement values('ENT_PUSH_CONFIG_INFO', '通知配置', 'notification', '/push', 'PushConfigPage', 'ML', 0, 1,  'ENT_SYS_CONFIG', '18', 'PLATFORM', null, now(), now());
insert into t_sys_entitlement values('ENT_PUSH_CONFIG_VIEW', '页面：查看', 'no-icon', '', '', 'PB', 0, 1,  'ENT_PUSH_CONFIG_INFO', '0', 'PLATFORM', null, now(), now());
insert into t_sys_entitlement values('ENT_PUSH_CONFIG_EDIT', '按钮：修改', 'no-icon', '', '', 'PB', 0, 1,  'ENT_PUSH_CONFIG_INFO', '0', 'PLATFORM', null, now(), now());

insert into t_sys_entitlement values('ENT_ARTICLE_NOTICEINFO', '公告管理', 'message', '/notices', 'NoticeInfoPage', 'ML', 0, 1,  'ENT_SYS_CONFIG', '19', 'PLATFORM', null, now(), now());
insert into t_sys_entitlement values('ENT_NOTICE_LIST', '页面：列表', 'no-icon', '', '', 'PB', 0, 1,  'ENT_ARTICLE_NOTICEINFO', '0', 'PLATFORM', null, now(), now());
insert into t_sys_entitlement values('ENT_NOTICE_VIEW', '按钮：详情', 'no-icon', '', '', 'PB', 0, 1,  'ENT_ARTICLE_NOTICEINFO', '0', 'PLATFORM', null, now(), now());
insert into t_sys_entitlement values('ENT_NOTICE_ADD', '按钮：新增', 'no-icon', '', '', 'PB', 0, 1,  'ENT_ARTICLE_NOTICEINFO', '0', 'PLATFORM', null, now(), now());
insert into t_sys_entitlement values('ENT_NOTICE_EDIT', '按钮：修改', 'no-icon', '', '', 'PB', 0, 1,  'ENT_ARTICLE_NOTICEINFO', '0', 'PLATFORM', null, now(), now());
insert into t_sys_entitlement values('ENT_NOTICE_DEL', '按钮：删除', 'no-icon', '', '', 'PB', 0, 1,  'ENT_ARTICLE_NOTICEINFO', '0', 'PLATFORM', null, now(), now());

insert into t_sys_entitlement values('ENT_SYS_LOG', '系统日志', 'file-text', '/log', 'SysLogPage', 'ML', 0, 1,  'ENT_SYS_CONFIG', '20', 'PLATFORM', null, now(), now());
insert into t_sys_entitlement values('ENT_LOG_LIST', '页面：系统日志列表', 'no-icon', '', '', 'PB', 0, 1,  'ENT_SYS_LOG', '0', 'PLATFORM', null, now(), now());
insert into t_sys_entitlement values('ENT_SYS_LOG_VIEW', '按钮：详情', 'no-icon', '', '', 'PB', 0, 1,  'ENT_SYS_LOG', '0', 'PLATFORM', null, now(), now());
insert into t_sys_entitlement values('ENT_SYS_LOG_DEL', '按钮：删除', 'no-icon', '', '', 'PB', 0, 1,  'ENT_SYS_LOG', '0', 'PLATFORM', null, now(), now());

insert into t_sys_entitlement values('ENT_SYS_CLIENT_VERSION', '版本管理', 'flag', '/version', 'ClientVersionPage', 'ML', 0, 1,  'ENT_SYS_CONFIG', '30', 'PLATFORM', null, now(), now());
insert into t_sys_entitlement values('ENT_CLIENT_VERSION_LIST', '页面：列表', 'no-icon', '', '', 'PB', 0, 1,  'ENT_SYS_CLIENT_VERSION', '0', 'PLATFORM', null, now(), now());
insert into t_sys_entitlement values('ENT_CLIENT_VERSION_ADD', '按钮：新增', 'no-icon', '', '', 'PB', 0, 1,  'ENT_SYS_CLIENT_VERSION', '0', 'PLATFORM', null, now(), now());
insert into t_sys_entitlement values('ENT_CLIENT_VERSION_EDIT', '按钮：编辑', 'no-icon', '', '', 'PB', 0, 1,  'ENT_SYS_CLIENT_VERSION', '0', 'PLATFORM', null, now(), now());
insert into t_sys_entitlement values('ENT_CLIENT_VERSION_VIEW', '按钮：详情', 'no-icon', '', '', 'PB', 0, 1,  'ENT_SYS_CLIENT_VERSION', '0', 'PLATFORM', null, now(), now());
insert into t_sys_entitlement values('ENT_CLIENT_VERSION_DEL', '按钮：删除', 'no-icon', '', '', 'PB', 0, 1,  'ENT_SYS_CLIENT_VERSION', '0', 'PLATFORM', null, now(), now());

insert into t_sys_entitlement
values ('ENT_LEGAL_DAY', '节假日管理', 'table', '/legalday', 'LegalDayPage', 'ML', 0, 1, 'ENT_SYS_CONFIG', '40',
        'PLATFORM', null, now(), now());
insert into t_sys_entitlement
values ('ENT_LEGAL_DAY_LIST', '页面：列表', 'no-icon', '', '', 'PB', 0, 1, 'ENT_LEGAL_DAY', '0', 'PLATFORM', null, now(),
        now());
insert into t_sys_entitlement
values ('ENT_LEGAL_DAY_ADD', '按钮：新增', 'no-icon', '', '', 'PB', 0, 1, 'ENT_LEGAL_DAY', '0', 'PLATFORM', null, now(),
        now());
insert into t_sys_entitlement
values ('ENT_LEGAL_DAY_DEL', '按钮：删除', 'no-icon', '', '', 'PB', 0, 1, 'ENT_LEGAL_DAY', '0', 'PLATFORM', null, now(),
        now());








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



insert into t_sys_entitlement values('ENT_C_QUICKCASHIER', '快捷收银', 'no-icon', '', '', 'PB', 0, 1,  'ENT_COMMONS', '-1', 'MCH', '{userEntRules: ["USER_TYPE_11_INIT", "QUICK_PAY"]}', now(), now());

insert into t_sys_entitlement values('ENT_MCH_MAIN', '主页', 'home', '/main', 'MainPage', 'ML', 0, 1,  'ROOT', '1', 'MCH', '{userEntRules: ["USER_TYPE_11_INIT", "STATS"]}', now(), now());
insert into t_sys_entitlement values('ENT_MCH_MAIN_PAY_DAY_COUNT', '今日/昨日交易统计', 'no-icon', '', '', 'PB', 0, 1,  'ENT_C_MAIN', '0', 'MCH', '{userEntRules: ["USER_TYPE_11_INIT", "USER_TYPE_12_INIT"]}', now(), now());
insert into t_sys_entitlement values('ENT_MCH_MAIN_PAY_TREND_COUNT', '趋势图统计', 'no-icon', '', '', 'PB', 0, 1,  'ENT_C_MAIN', '0', 'MCH', '{userEntRules: ["USER_TYPE_11_INIT", "USER_TYPE_12_INIT"]}', now(), now());
insert into t_sys_entitlement values('ENT_MCH_MAIN_PAY_COUNT', '主页交易统计', 'no-icon', '', '', 'PB', 0, 1,  'ENT_C_MAIN', '0', 'MCH', '{userEntRules: ["USER_TYPE_11_INIT", "USER_TYPE_12_INIT"]}', now(), now());
insert into t_sys_entitlement values('ENT_MCH_MAIN_PAY_TYPE_COUNT', '主页交易方式统计', 'no-icon', '', '', 'PB', 0, 1,  'ENT_C_MAIN', '0', 'MCH', '{userEntRules: ["USER_TYPE_11_INIT", "USER_TYPE_12_INIT"]}', now(), now());

-- 【商户系统】 商户中心
insert into t_sys_entitlement values('ENT_MCH_CENTER', '商户中心', 'team', '', 'RouteView', 'ML', 0, 1, 'ROOT', '10', 'MCH', '{userEntRules: ["USER_TYPE_11_INIT", "USER_TYPE_12_INIT"]}', now(), now());
insert into t_sys_entitlement values('ENT_MCH_ALIPAY_SP_OPERATION', '支付宝代运营授权', 'no-icon', '', '', 'PB', 0, 1,  'ENT_MCH_CENTER', '0', 'MCH', '{userEntRules: ["USER_TYPE_11_INIT", "USER_TYPE_12_INIT"]}', now(), now());
insert into t_sys_entitlement values('AGREEMENT_PAGE_SIGN', '支付宝安全发', 'no-icon', '', '', 'PB', 0, 1,  'ENT_MCH_CENTER', '0', 'MCH', '{mchLevelArray: ["M1"]}', now(), now());


insert into t_sys_entitlement values('ENT_MCH_INFO', '商户信息', 'user', '/info', 'MchInfoPage', 'ML', 0, 1,  'ENT_MCH_CENTER', '5', 'MCH', '', now(), now());

insert into t_sys_entitlement values('ENT_MCH_APP', '应用管理', 'appstore', '/apps', 'MchAppPage', 'ML', 0, 1,  'ENT_MCH_CENTER', '10', 'MCH', '{mchLevelArray: ["M1"]}', now(), now());
insert into t_sys_entitlement values('ENT_MCH_APP_LIST', '页面：应用列表', 'no-icon', '', '', 'PB', 0, 1,  'ENT_MCH_APP', '0', 'MCH', '{mchLevelArray: ["M1"], userEntRules: ["USER_TYPE_11_INIT", "USER_TYPE_12_INIT"]}', now(), now());
insert into t_sys_entitlement values('ENT_MCH_APP_ADD', '按钮：新增', 'no-icon', '', '', 'PB', 0, 1,  'ENT_MCH_APP', '0', 'MCH', '{mchLevelArray: ["M1"]}', now(), now());
insert into t_sys_entitlement values('ENT_MCH_APP_EDIT', '按钮：编辑', 'no-icon', '', '', 'PB', 0, 1,  'ENT_MCH_APP', '0', 'MCH', '{mchLevelArray: ["M1"]}', now(), now());
insert into t_sys_entitlement values('ENT_MCH_APP_VIEW', '按钮：详情', 'no-icon', '', '', 'PB', 0, 1,  'ENT_MCH_APP', '0', 'MCH', '{mchLevelArray: ["M1"]}', now(), now());
insert into t_sys_entitlement values('ENT_MCH_APP_DEL', '按钮：删除', 'no-icon', '', '', 'PB', 0, 1,  'ENT_MCH_APP', '0', 'MCH', '{mchLevelArray: ["M1"]}', now(), now());
insert into t_sys_entitlement values('ENT_MCH_APP_PAY_CONFIG', '按钮：支付配置', 'no-icon', '', '', 'PB', 0, 1,  'ENT_MCH_APP', '0', 'MCH', null, now(), now());
insert into t_sys_entitlement values('ENT_MCH_APP_SIGN', '按钮：签名配置', 'no-icon', '', '', 'PB', 0, 1,  'ENT_MCH_APP', '0', 'MCH', null, now(), now());



insert into t_sys_entitlement values('ENT_MCH_PAY_TEST', '支付测试', 'transaction', '/paytest', 'PayTestPage', 'ML', 0, 1,  'ENT_MCH_CENTER', '20', 'MCH', '{mchLevelArray: ["M1"]}', now(), now());
insert into t_sys_entitlement values('ENT_MCH_PAY_TEST_PAYWAY_LIST', '页面：获取全部支付方式', 'no-icon', '', '', 'PB', 0, 1,  'ENT_MCH_PAY_TEST', '0', 'MCH', '{mchLevelArray: ["M1"]}', now(), now());
insert into t_sys_entitlement values('ENT_MCH_PAY_TEST_DO', '按钮：支付测试', 'no-icon', '', '', 'PB', 0, 1,  'ENT_MCH_PAY_TEST', '0', 'MCH', '{mchLevelArray: ["M1"]}', now(), now());

insert into t_sys_entitlement values('ENT_MCH_CASHIER_URL', '便捷收银台', 'account-book', '/cashierUrl', 'CashierUrlPage', 'ML', 0, 1,  'ENT_MCH_CENTER', '25', 'MCH', '{mchLevelArray: ["M1"], mchSelfCashierEnt: true}', now(), now());
insert into t_sys_entitlement values('ENT_MCH_GET_CASHIER_URL', '按钮：获取收银台地址', 'no-icon', '', '', 'PB', 0, 1,  'ENT_MCH_CASHIER_URL', '0', 'MCH', '{mchLevelArray: ["M1"], mchSelfCashierEnt: true}', now(), now());

insert into t_sys_entitlement values('ENT_MCH_TRANSFER', '转账', 'property-safety', '/doTransfer', 'MchTransferPage', 'ML', 0, 1,  'ENT_MCH_CENTER', '30', 'MCH', '{mchLevelArray: ["M1"]}', now(), now());
insert into t_sys_entitlement values('ENT_MCH_TRANSFER_IF_CODE_LIST', '页面：获取全部代付通道', 'no-icon', '', '', 'PB', 0, 1,  'ENT_MCH_TRANSFER', '0', 'MCH', '{mchLevelArray: ["M1"]}', now(), now());
insert into t_sys_entitlement values('ENT_MCH_TRANSFER_CHANNEL_USER', '按钮：获取渠道用户', 'no-icon', '', '', 'PB', 0, 1,  'ENT_MCH_TRANSFER', '0', 'MCH', '{mchLevelArray: ["M1"]}', now(), now());
insert into t_sys_entitlement values('ENT_MCH_TRANSFER_DO', '按钮：发起转账', 'no-icon', '', '', 'PB', 0, 1,  'ENT_MCH_TRANSFER', '0', 'MCH', '{mchLevelArray: ["M1"]}', now(), now());

-- 门店管理
insert into t_sys_entitlement values('ENT_MCH_STORE', '门店管理', 'shop', '/store', 'StorePage', 'ML', 0, 1,  'ENT_MCH_CENTER', '40', 'MCH', '{userEntRules: ["USER_TYPE_11_INIT", "USER_TYPE_12_INIT"]}', now(), now());
insert into t_sys_entitlement values('ENT_MCH_STORE_LIST', '页面：数据列表', 'no-icon', '', '', 'PB', 0, 1,  'ENT_MCH_STORE', '0', 'MCH', '{userEntRules: ["USER_TYPE_11_INIT", "USER_TYPE_12_INIT"]}', now(), now());
insert into t_sys_entitlement values('ENT_MCH_STORE_VIEW', '按钮：详情', 'no-icon', '', '', 'PB', 0, 1,  'ENT_MCH_STORE', '0', 'MCH', '{userEntRules: ["USER_TYPE_11_INIT", "USER_TYPE_12_INIT"]}', now(), now());
insert into t_sys_entitlement values('ENT_MCH_STORE_ADD', '按钮：新增', 'no-icon', '', '', 'PB', 0, 1,  'ENT_MCH_STORE', '0', 'MCH', null, now(), now());
insert into t_sys_entitlement values('ENT_MCH_STORE_DELETE', '按钮：删除', 'no-icon', '', '', 'PB', 0, 1,  'ENT_MCH_STORE', '0', 'MCH', null, now(), now());
insert into t_sys_entitlement values('ENT_MCH_STORE_EDIT', '按钮：修改', 'no-icon', '', '', 'PB', 0, 1,  'ENT_MCH_STORE', '0', 'MCH', '{userEntRules: ["USER_TYPE_11_INIT", "USER_TYPE_12_INIT"]}', now(), now());
insert into t_sys_entitlement values('ENT_MCH_STORE_MAP', '按钮：地图配置', 'no-icon', '', '', 'PB', 0, 1,  'ENT_MCH_STORE', '0', 'MCH', '{userEntRules: ["USER_TYPE_11_INIT", "USER_TYPE_12_INIT"]}', now(), now());
insert into t_sys_entitlement values('ENT_MCH_STORE_APP_DIS', '按钮：分配应用', 'no-icon', '', '', 'PB', 0, 1,  'ENT_MCH_STORE', '0', 'MCH', '{mchLevelArray: ["M1"]}', now(), now());
-- 蚂蚁店铺
insert into t_sys_entitlement values('ENT_MCH_ALIPAY_SHOP_VIEW', '按钮：详情', 'no-icon', '', '', 'PB', 0, 1,  'ENT_MCH_STORE', '0', 'MCH', '{userEntRules: ["USER_TYPE_11_INIT"]}', now(), now());
insert into t_sys_entitlement values('ENT_MCH_ALIPAY_SHOP_STATUS', '按钮：查询审核状态', 'no-icon', '', '', 'PB', 0, 1,  'ENT_MCH_STORE', '0', 'MCH', '{userEntRules: ["USER_TYPE_11_INIT"]}', now(), now());
insert into t_sys_entitlement values('ENT_MCH_ALIPAY_SHOP_ADD', '按钮：新增', 'no-icon', '', '', 'PB', 0, 1,  'ENT_MCH_STORE', '0', 'MCH', '{userEntRules: ["USER_TYPE_11_INIT"]}', now(), now());
insert into t_sys_entitlement values('ENT_MCH_ALIPAY_SHOP_DELETE', '按钮：删除', 'no-icon', '', '', 'PB', 0, 1,  'ENT_MCH_STORE', '0', 'MCH', '{userEntRules: ["USER_TYPE_11_INIT"]}', now(), now());
insert into t_sys_entitlement values('ENT_MCH_ALIPAY_SHOP_EDIT', '按钮：修改', 'no-icon', '', '', 'PB', 0, 1,  'ENT_MCH_STORE', '0', 'MCH', '{userEntRules: ["USER_TYPE_11_INIT"]}', now(), now());

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



-- 【商户系统】 订单管理
insert into t_sys_entitlement values('ENT_ORDER', '订单中心', 'transaction', '', 'RouteView', 'ML', 0, 1,  'ROOT', '20', 'MCH', '{userEntRules: ["USER_TYPE_11_INIT", "USER_TYPE_12_INIT"]}', now(), now());
insert into t_sys_entitlement values('ENT_PAY_ORDER', '订单管理', 'account-book', '/pay', 'PayOrderListPage', 'ML', 0, 1,  'ENT_ORDER', '10', 'MCH', '{userEntRules: ["USER_TYPE_11_INIT", "USER_TYPE_12_INIT"]}', now(), now());
insert into t_sys_entitlement values('ENT_ORDER_LIST', '页面：订单列表', 'no-icon', '', '', 'PB', 0, 1,  'ENT_PAY_ORDER', '0', 'MCH', '{userEntRules: ["USER_TYPE_11_INIT", "USER_TYPE_12_INIT"]}', now(), now());
insert into t_sys_entitlement values('ENT_PAY_ORDER_VIEW', '按钮：详情', 'no-icon', '', '', 'PB', 0, 1,  'ENT_PAY_ORDER', '0', 'MCH', '{userEntRules: ["USER_TYPE_11_INIT", "USER_TYPE_12_INIT"]}', now(), now());
insert into t_sys_entitlement values('ENT_PAY_ORDER_SEARCH_PAY_WAY', '筛选项：支付方式', 'no-icon', '', '', 'PB', 0, 1,  'ENT_PAY_ORDER', '0', 'MCH', '{userEntRules: ["USER_TYPE_11_INIT", "USER_TYPE_12_INIT"]}', now(), now());
insert into t_sys_entitlement values('ENT_PAY_ORDER_REFUND', '按钮：订单退款', 'no-icon', '', '', 'PB', 0, 1,  'ENT_PAY_ORDER', '0', 'MCH', '{userEntRules: ["USER_TYPE_11_INIT", "REFUND"]}', now(), now());
insert into t_sys_entitlement values('ENT_ORDER_COUNT', '支付统计', 'no-icon', '', '', 'PB', 0, 1,  'ENT_PAY_ORDER', '0', 'MCH', '{userEntRules: ["USER_TYPE_11_INIT", "USER_TYPE_12_INIT"]}', now(), now());

insert into t_sys_entitlement values('ENT_REFUND_ORDER', '退款记录', 'exception', '/refund', 'RefundOrderListPage', 'ML', 0, 1,  'ENT_ORDER', '20', 'MCH', '{userEntRules: ["USER_TYPE_11_INIT", "USER_TYPE_12_INIT"]}', now(), now());
insert into t_sys_entitlement values('ENT_REFUND_LIST', '页面：退款订单列表', 'no-icon', '', '', 'PB', 0, 1,  'ENT_REFUND_ORDER', '0', 'MCH', '{userEntRules: ["USER_TYPE_11_INIT", "USER_TYPE_12_INIT"]}', now(), now());
insert into t_sys_entitlement values('ENT_REFUND_ORDER_VIEW', '按钮：详情', 'no-icon', '', '', 'PB', 0, 1,  'ENT_REFUND_ORDER', '0', 'MCH', '{userEntRules: ["USER_TYPE_11_INIT", "USER_TYPE_12_INIT"]}', now(), now());
insert into t_sys_entitlement
values ('ENT_REFUND_ORDER_COUNT', '退款统计', 'no-icon', '', '', 'PB', 0, 1, 'ENT_REFUND_ORDER', '0', 'MCH',
        '{userEntRules: ["USER_TYPE_11_INIT", "USER_TYPE_12_INIT"]}', now(), now());

insert into t_sys_entitlement values('ENT_TRANSFER_ORDER', '转账订单', 'property-safety', '/transfer', 'TransferOrderListPage', 'ML', 0, 1,  'ENT_ORDER', '30', 'MCH', '{mchLevelArray: ["M1"]}', now(), now());
insert into t_sys_entitlement values('ENT_TRANSFER_ORDER_LIST', '页面：转账订单列表', 'no-icon', '', '', 'PB', 0, 1,  'ENT_TRANSFER_ORDER', '0', 'MCH', '{mchLevelArray: ["M1"]}', now(), now());
insert into t_sys_entitlement values('ENT_TRANSFER_ORDER_VIEW', '按钮：详情', 'no-icon', '', '', 'PB', 0, 1,  'ENT_TRANSFER_ORDER', '0', 'MCH', '{mchLevelArray: ["M1"]}', now(), now());
insert into t_sys_entitlement values('ENT_TRANSFER_ORDER_COUNT', '按钮：统计', 'no-icon', '', '', 'PB', 0, 1,  'ENT_TRANSFER_ORDER', '0', 'MCH', '{mchLevelArray: ["M1"]}', now(), now());

-- 数据统计
insert into t_sys_entitlement values('ENT_ORDER_STATISTIC', '数据统计', 'bar-chart', '', 'RouteView', 'ML', 0, 1,  'ROOT', '25', 'MCH', '{mchLevelArray: ["M1"],userEntRules: ["USER_TYPE_11_INIT", "STATS"]}', now(), now());

insert into t_sys_entitlement values('ENT_STATISTIC_TRANSACTION', '交易报表', 'account-book', '/statistic/transaction', 'TransactionPage', 'ML', 0, 1,  'ENT_ORDER_STATISTIC', '5', 'MCH', '{mchLevelArray: ["M1"],userEntRules: ["USER_TYPE_11_INIT", "STATS"]}', now(), now());

insert into t_sys_entitlement values('ENT_STATISTIC_MCH_STORE', '门店统计', 'account-book', '/statistic/store', 'StatisticStorePage', 'ML', 0, 1,  'ENT_ORDER_STATISTIC', '10', 'MCH', '{mchLevelArray: ["M1"],userEntRules: ["USER_TYPE_11_INIT"]}', now(), now());

insert into t_sys_entitlement values('ENT_STATISTIC_MCH_WAY', '支付方式统计', 'area-chart', '/statistic/way', 'StatisticWayPage', 'ML', 0, 1,  'ENT_ORDER_STATISTIC', '20', 'MCH', '{mchLevelArray: ["M1"],userEntRules: ["USER_TYPE_11_INIT", "STATS"]}', now(), now());

insert into t_sys_entitlement values('ENT_STATISTIC_MCH_TYPE', '支付类型统计', 'fund', '/statistic/type', 'StatisticTypePage', 'ML', 0, 1,  'ENT_ORDER_STATISTIC', '30', 'MCH', '{mchLevelArray: ["M1"],userEntRules: ["USER_TYPE_11_INIT", "STATS"]}', now(), now());
insert into t_sys_entitlement values('ENT_STATISTIC_DEVICE', '设备统计', 'mobile', '/statistic/device', 'DeviceCountPage', 'ML', 0, 1,  'ENT_ORDER_STATISTIC', '40', 'MCH', '{mchLevelArray: ["M1"],userEntRules: ["USER_TYPE_11_INIT", "STATS"]}', now(), now());


-- 【商户系统】 分账管理
insert into t_sys_entitlement values('ENT_DIVISION', '分账管理', 'apartment', '', 'RouteView', 'ML', 0, 1,  'ROOT', '30', 'MCH', '{mchLevelArray: ["M1"], mchDivisionEnt: true}', now(), now());
insert into t_sys_entitlement values('ENT_DIVISION_RECEIVER_GROUP', '账号组管理', 'team', '/divisionReceiverGroup', 'DivisionReceiverGroupPage', 'ML', 0, 1,  'ENT_DIVISION', '10', 'MCH', '{mchLevelArray: ["M1"], mchDivisionEnt: true}', now(), now());
insert into t_sys_entitlement values('ENT_DIVISION_RECEIVER_GROUP_LIST', '页面：数据列表', 'no-icon', '', '', 'PB', 0, 1,  'ENT_DIVISION_RECEIVER_GROUP', '0', 'MCH', '{mchLevelArray: ["M1"], mchDivisionEnt: true}', now(), now());
insert into t_sys_entitlement values('ENT_DIVISION_RECEIVER_GROUP_VIEW', '按钮：详情', 'no-icon', '', '', 'PB', 0, 1,  'ENT_DIVISION_RECEIVER_GROUP', '0', 'MCH', '{mchLevelArray: ["M1"], mchDivisionEnt: true}', now(), now());
insert into t_sys_entitlement values('ENT_DIVISION_RECEIVER_GROUP_ADD', '按钮：新增', 'no-icon', '', '', 'PB', 0, 1,  'ENT_DIVISION_RECEIVER_GROUP', '0', 'MCH', '{mchLevelArray: ["M1"], mchDivisionEnt: true}', now(), now());
insert into t_sys_entitlement values('ENT_DIVISION_RECEIVER_GROUP_EDIT', '按钮：修改', 'no-icon', '', '', 'PB', 0, 1,  'ENT_DIVISION_RECEIVER_GROUP', '0', 'MCH', '{mchLevelArray: ["M1"], mchDivisionEnt: true}', now(), now());
insert into t_sys_entitlement values('ENT_DIVISION_RECEIVER_GROUP_DELETE', '按钮：删除', 'no-icon', '', '', 'PB', 0, 1,  'ENT_DIVISION_RECEIVER_GROUP', '0', 'MCH', '{mchLevelArray: ["M1"], mchDivisionEnt: true}', now(), now());
insert into t_sys_entitlement values('ENT_DIVISION_RECEIVER', '收款账号管理', 'trademark', '/divisionReceiver', 'DivisionReceiverPage', 'ML', 0, 1,  'ENT_DIVISION', '20', 'MCH', '{mchLevelArray: ["M1"], mchDivisionEnt: true}', now(), now());
insert into t_sys_entitlement values('ENT_DIVISION_RECEIVER_LIST', '页面：数据列表', 'no-icon', '', '', 'PB', 0, 1,  'ENT_DIVISION_RECEIVER', '0', 'MCH', '{mchLevelArray: ["M1"], mchDivisionEnt: true}', now(), now());
insert into t_sys_entitlement values('ENT_DIVISION_RECEIVER_VIEW', '按钮：详情', 'no-icon', '', '', 'PB', 0, 1,  'ENT_DIVISION_RECEIVER', '0', 'MCH', '{mchLevelArray: ["M1"], mchDivisionEnt: true}', now(), now());
insert into t_sys_entitlement values('ENT_DIVISION_RECEIVER_ADD', '按钮：新增收款账号', 'no-icon', '', '', 'PB', 0, 1,  'ENT_DIVISION_RECEIVER', '0', 'MCH', '{mchLevelArray: ["M1"], mchDivisionEnt: true}', now(), now());
insert into t_sys_entitlement values('ENT_DIVISION_RECEIVER_DELETE', '按钮：删除收款账号', 'no-icon', '', '', 'PB', 0, 1,  'ENT_DIVISION_RECEIVER', '0', 'MCH', '{mchLevelArray: ["M1"], mchDivisionEnt: true}', now(), now());
insert into t_sys_entitlement values('ENT_DIVISION_RECEIVER_EDIT', '按钮：修改账号信息', 'no-icon', '', '', 'PB', 0, 1,  'ENT_DIVISION_RECEIVER', '0', 'MCH', '{mchLevelArray: ["M1"], mchDivisionEnt: true}', now(), now());
insert into t_sys_entitlement values('ENT_DIVISION_RECORD', '分账记录', 'unordered-list', '/divisionRecord', 'DivisionRecordPage', 'ML', 0, 1,  'ENT_DIVISION', '30', 'MCH', '{mchLevelArray: ["M1"], mchDivisionEnt: true}', now(), now());
insert into t_sys_entitlement values('ENT_DIVISION_RECORD_LIST', '页面：数据列表', 'no-icon', '', '', 'PB', 0, 1,  'ENT_DIVISION_RECORD', '0', 'MCH', '{mchLevelArray: ["M1"], mchDivisionEnt: true}', now(), now());
insert into t_sys_entitlement values('ENT_DIVISION_RECORD_VIEW', '按钮：详情', 'no-icon', '', '', 'PB', 0, 1,  'ENT_DIVISION_RECORD', '0', 'MCH', '{mchLevelArray: ["M1"], mchDivisionEnt: true}', now(), now());
insert into t_sys_entitlement values('ENT_DIVISION_RECORD_RESEND', '按钮：重试', 'no-icon', '', '', 'PB', 0, 1,  'ENT_DIVISION_RECORD', '0', 'MCH', '{mchLevelArray: ["M1"], mchDivisionEnt: true}', now(), now());
insert into t_sys_entitlement values('ENT_DIVISION_REFUND_RECORD', '分账回退记录', 'node-collapse', '/divisionRefundRecord', 'DivisionRefundRecordPage', 'ML', 0, 1,  'ENT_DIVISION', '40', 'MCH', '{mchLevelArray: ["M1"], mchDivisionEnt: true}', now(), now());
insert into t_sys_entitlement values('ENT_DIVISION_REFUND_RECORD_LIST', '页面：数据列表', 'no-icon', '', '', 'PB', 0, 1,  'ENT_DIVISION_REFUND_RECORD', '0', 'MCH', '{mchLevelArray: ["M1"], mchDivisionEnt: true}', now(), now());
insert into t_sys_entitlement values('ENT_DIVISION_REFUND_RECORD_VIEW', '按钮：详情', 'no-icon', '', '', 'PB', 0, 1,  'ENT_DIVISION_REFUND_RECORD', '0', 'MCH', '{mchLevelArray: ["M1"], mchDivisionEnt: true}', now(), now());


-- 设备管理菜单
insert into t_sys_entitlement values('ENT_DEVICE', '设备管理', 'appstore', '', 'RouteView', 'ML', 0, 1,  'ROOT', '40', 'MCH', '{userEntRules: ["USER_TYPE_11_INIT", "DEVICE"]}', now(), now());
-- 码牌
insert into t_sys_entitlement values('ENT_MCH_QR_CODE', '码牌', 'qrcode', '/qrCodes', 'MchQrCodePage', 'ML', 0, 1,  'ENT_DEVICE', '10', 'MCH', '{userEntRules: ["USER_TYPE_11_INIT", "DEVICE"]}', now(), now());
insert into t_sys_entitlement values('ENT_MCH_QR_CODE_LIST', '页面：码牌列表', 'no-icon', '', '', 'PB', 0, 1,  'ENT_MCH_QR_CODE', '0', 'MCH', '{userEntRules: ["USER_TYPE_11_INIT", "DEVICE"]}', now(), now());
insert into t_sys_entitlement values('ENT_MCH_QR_CODE_ADD', '按钮：新增', 'no-icon', '', '', 'PB', 0, 1,  'ENT_MCH_QR_CODE', '0', 'MCH', null, now(), now());
insert into t_sys_entitlement values('ENT_MCH_QR_CODE_EDIT', '按钮：编辑', 'no-icon', '', '', 'PB', 0, 1,  'ENT_MCH_QR_CODE', '0', 'MCH', '{userEntRules: ["USER_TYPE_11_INIT", "DEVICE"]}', now(), now());
insert into t_sys_entitlement values('ENT_MCH_QR_CODE_VIEW', '按钮：详情', 'no-icon', '', '', 'PB', 0, 1,  'ENT_MCH_QR_CODE', '0', 'MCH', '{userEntRules: ["USER_TYPE_11_INIT", "DEVICE"]}', now(), now());
insert into t_sys_entitlement values('ENT_MCH_QR_CODE_DEL', '按钮：删除', 'no-icon', '', '', 'PB', 0, 1,  'ENT_MCH_QR_CODE', '0', 'MCH', null, now(), now());
-- 云喇叭
insert into t_sys_entitlement values('ENT_DEVICE_SPEAKER', '云喇叭', 'sound', '/speaker', 'SpeakerPage', 'ML', 0, 1,  'ENT_DEVICE', '20', 'MCH', '{userEntRules: ["USER_TYPE_11_INIT", "DEVICE"]}', now(), now());
insert into t_sys_entitlement values('ENT_DEVICE_SPEAKER_LIST', '页面：云喇叭列表', 'no-icon', '', '', 'PB', 0, 1,  'ENT_DEVICE_SPEAKER', '0', 'MCH', '{userEntRules: ["USER_TYPE_11_INIT", "DEVICE"]}', now(), now());
insert into t_sys_entitlement values('ENT_DEVICE_SPEAKER_VIEW', '按钮：详情', 'no-icon', '', '', 'PB', 0, 1,  'ENT_DEVICE_SPEAKER', '0', 'MCH', '{userEntRules: ["USER_TYPE_11_INIT", "DEVICE"]}', now(), now());
insert into t_sys_entitlement values('ENT_DEVICE_SPEAKER_ADD', '按钮：新增', 'no-icon', '', '', 'PB', 0, 1,  'ENT_DEVICE_SPEAKER', '0', 'MCH', null, now(), now());
insert into t_sys_entitlement values('ENT_DEVICE_SPEAKER_EDIT', '按钮：修改', 'no-icon', '', '', 'PB', 0, 1,  'ENT_DEVICE_SPEAKER', '0', 'MCH', '{userEntRules: ["USER_TYPE_11_INIT", "DEVICE"]}', now(), now());
insert into t_sys_entitlement values('ENT_DEVICE_SPEAKER_TEST', '按钮：播报测试', 'no-icon', '', '', 'PB', 0, 1,  'ENT_DEVICE_SPEAKER', '0', 'MCH', null, now(), now());
-- 云打印
insert into t_sys_entitlement values('ENT_DEVICE_PRINTER', '云打印', 'printer', '/printer', 'PrinterPage', 'ML', 0, 1,  'ENT_DEVICE', '30', 'MCH', '{userEntRules: ["USER_TYPE_11_INIT", "DEVICE"]}', now(), now());
insert into t_sys_entitlement values('ENT_DEVICE_PRINTER_LIST', '页面：云打印列表', 'no-icon', '', '', 'PB', 0, 1,  'ENT_DEVICE_PRINTER', '0', 'MCH', '{userEntRules: ["USER_TYPE_11_INIT", "DEVICE"]}', now(), now());
insert into t_sys_entitlement values('ENT_DEVICE_PRINTER_VIEW', '按钮：详情', 'no-icon', '', '', 'PB', 0, 1,  'ENT_DEVICE_PRINTER', '0', 'MCH', '{userEntRules: ["USER_TYPE_11_INIT", "DEVICE"]}', now(), now());
insert into t_sys_entitlement values('ENT_DEVICE_PRINTER_ADD', '按钮：新增', 'no-icon', '', '', 'PB', 0, 1,  'ENT_DEVICE_PRINTER', '0', 'MCH', null, now(), now());
insert into t_sys_entitlement values('ENT_DEVICE_PRINTER_EDIT', '按钮：修改', 'no-icon', '', '', 'PB', 0, 1,  'ENT_DEVI·CE_PRINTER', '0', 'MCH', '{userEntRules: ["USER_TYPE_11_INIT", "DEVICE"]}', now(), now());
insert into t_sys_entitlement values('ENT_DEVICE_PRINTER_TEST', '按钮：打印测试', 'no-icon', '', '', 'PB', 0, 1,  'ENT_DEVICE_PRINTER', '0', 'MCH', null, now(), now());
insert into t_sys_entitlement values('ENT_DEVICE_PRINTER_CLEAR', '按钮：清空打印队列', 'no-icon', '', '', 'PB', 0, 1,  'ENT_DEVICE_PRINTER', '0', 'MCH', null, now(), now());
-- 收银插件激活码
insert into t_sys_entitlement values('ENT_DEVICE_PLUGIN_CDKEY', '收银插件激活码', 'file', '/plugin/cdkey', 'PluginCdKeyPage', 'ML', 0, 1,  'ENT_DEVICE', '35', 'MCH', '{userEntRules: ["USER_TYPE_11_INIT", "DEVICE"]}', now(), now());
insert into t_sys_entitlement values('ENT_DEVICE_PLUGIN_CDKEY_LIST', '页面：列表', 'no-icon', '', '', 'PB', 0, 1,  'ENT_DEVICE_PLUGIN_CDKEY', '0', 'MCH', '{userEntRules: ["USER_TYPE_11_INIT", "DEVICE"]}', now(), now());
insert into t_sys_entitlement values('ENT_DEVICE_PLUGIN_CDKEY_VIEW', '按钮：详情', 'no-icon', '', '', 'PB', 0, 1,  'ENT_DEVICE_PLUGIN_CDKEY', '0', 'MCH', '{userEntRules: ["USER_TYPE_11_INIT", "DEVICE"]}', now(), now());
insert into t_sys_entitlement values('ENT_DEVICE_PLUGIN_CDKEY_EDIT', '按钮：修改', 'no-icon', '', '', 'PB', 0, 1,  'ENT_DEVICE_PLUGIN_CDKEY', '0', 'MCH', '{userEntRules: ["USER_TYPE_11_INIT", "DEVICE"]}', now(), now());
-- 扫码POS
insert into t_sys_entitlement values('ENT_DEVICE_POS', '扫码POS', 'scan', '/pos', 'PosPage', 'ML', 0, 1,  'ENT_DEVICE', '40', 'MCH', '{userEntRules: ["USER_TYPE_11_INIT", "DEVICE"]}', now(), now());
insert into t_sys_entitlement values('ENT_DEVICE_POS_LIST', '页面：列表', 'no-icon', '', '', 'PB', 0, 1,  'ENT_DEVICE_POS', '0', 'MCH', '{userEntRules: ["USER_TYPE_11_INIT", "DEVICE"]}', now(), now());
insert into t_sys_entitlement values('ENT_DEVICE_POS_VIEW', '按钮：详情', 'no-icon', '', '', 'PB', 0, 1,  'ENT_DEVICE_POS', '0', 'MCH', '{userEntRules: ["USER_TYPE_11_INIT", "DEVICE"]}', now(), now());
insert into t_sys_entitlement values('ENT_DEVICE_POS_ADD', '按钮：新增', 'no-icon', '', '', 'PB', 0, 1,  'ENT_DEVICE_POS', '0', 'MCH', null, now(), now());
insert into t_sys_entitlement values('ENT_DEVICE_POS_EDIT', '按钮：修改', 'no-icon', '', '', 'PB', 0, 1,  'ENT_DEVICE_POS', '0', 'MCH', '{userEntRules: ["USER_TYPE_11_INIT", "DEVICE"]}', now(), now());
-- 智能POS
insert into t_sys_entitlement values('ENT_DEVICE_AUTO_POS', '智能POS', 'file', '/auto/pos', 'AutoPosPage', 'ML', 0, 1,  'ENT_DEVICE', '45', 'MCH', '{userEntRules: ["USER_TYPE_11_INIT", "DEVICE"]}', now(), now());
insert into t_sys_entitlement values('ENT_DEVICE_AUTO_POS_LIST', '页面：列表', 'no-icon', '', '', 'PB', 0, 1,  'ENT_DEVICE_AUTO_POS', '0', 'MCH', '{userEntRules: ["USER_TYPE_11_INIT", "DEVICE"]}', now(), now());
insert into t_sys_entitlement values('ENT_DEVICE_AUTO_POS_VIEW', '按钮：详情', 'no-icon', '', '', 'PB', 0, 1,  'ENT_DEVICE_AUTO_POS', '0', 'MCH', '{userEntRules: ["USER_TYPE_11_INIT", "DEVICE"]}', now(), now());
insert into t_sys_entitlement values('ENT_DEVICE_AUTO_POS_ADD', '按钮：新增', 'no-icon', '', '', 'PB', 0, 1,  'ENT_DEVICE_AUTO_POS', '0', 'MCH', '{userEntRules: ["USER_TYPE_11_INIT", "DEVICE"]}', now(), now());
insert into t_sys_entitlement values('ENT_DEVICE_AUTO_POS_EDIT', '按钮：修改', 'no-icon', '', '', 'PB', 0, 1,  'ENT_DEVICE_AUTO_POS', '0', 'MCH', '{userEntRules: ["USER_TYPE_11_INIT", "DEVICE"]}', now(), now());
-- 刷脸设备
insert into t_sys_entitlement values('ENT_DEVICE_FACE_APP', '刷脸设备', 'smile', '/face', 'FaceAppPage', 'ML', 0, 1,  'ENT_DEVICE', '47', 'MCH', '{userEntRules: ["USER_TYPE_11_INIT", "DEVICE"]}', now(), now());
insert into t_sys_entitlement values('ENT_DEVICE_FACE_APP_LIST', '页面：列表', 'no-icon', '', '', 'PB', 0, 1,  'ENT_DEVICE_FACE_APP', '0', 'MCH', '{userEntRules: ["USER_TYPE_11_INIT", "DEVICE"]}', now(), now());
insert into t_sys_entitlement values('ENT_DEVICE_FACE_APP_VIEW', '按钮：详情', 'no-icon', '', '', 'PB', 0, 1,  'ENT_DEVICE_FACE_APP', '0', 'MCH', '{userEntRules: ["USER_TYPE_11_INIT", "DEVICE"]}', now(), now());
insert into t_sys_entitlement values('ENT_DEVICE_FACE_APP_ADD', '按钮：新增', 'no-icon', '', '', 'PB', 0, 1,  'ENT_DEVICE_FACE_APP', '0', 'MCH', null, now(), now());
insert into t_sys_entitlement values('ENT_DEVICE_FACE_APP_EDIT', '按钮：修改', 'no-icon', '', '', 'PB', 0, 1,  'ENT_DEVICE_FACE_APP', '0', 'MCH', '{userEntRules: ["USER_TYPE_11_INIT", "DEVICE"]}', now(), now());

insert into t_sys_entitlement values('ENT_TERMINAL', '辅助终端报备', 'issues-close', '/terminals', 'TerminalPage', 'ML', 0, 1,  'ENT_DEVICE', '50', 'MCH', '{userEntRules: ["USER_TYPE_11_INIT", "DEVICE"]}', now(), now());
insert into t_sys_entitlement values('ENT_TERMINAL_LIST', '页面：列表', 'no-icon', '', '', 'PB', 0, 1,  'ENT_TERMINAL', '0', 'MCH', '{userEntRules: ["USER_TYPE_11_INIT", "DEVICE"]}', now(), now());
insert into t_sys_entitlement values('ENT_TERMINAL_VIEW', '按钮：详情', 'no-icon', '', '', 'PB', 0, 1,  'ENT_TERMINAL', '0', 'MCH', '{userEntRules: ["USER_TYPE_11_INIT", "DEVICE"]}', now(), now());
insert into t_sys_entitlement values('ENT_TERMINAL_ADD', '按钮：新增', 'no-icon', '', '', 'PB', 0, 1,  'ENT_TERMINAL', '0', 'MCH',  null, now(), now());
insert into t_sys_entitlement values('ENT_TERMINAL_EDIT', '按钮：修改', 'no-icon', '', '', 'PB', 0, 1,  'ENT_TERMINAL', '0', 'MCH', '{userEntRules: ["USER_TYPE_11_INIT", "DEVICE"]}', now(), now());
insert into t_sys_entitlement values('ENT_TERMINAL_DEL', '按钮：删除', 'no-icon', '', '', 'PB', 0, 1,  'ENT_TERMINAL', '0', 'MCH', null, now(), now());
insert into t_sys_entitlement values('ENT_TERMINAL_SENDUP', '按钮：报备', 'no-icon', '', '', 'PB', 0, 1,  'ENT_TERMINAL', '0', 'MCH', null, now(), now());
-- 如意Lite
insert into t_sys_entitlement values('ENT_DEVICE_RUYI', '如意Lite管理', 'file', '/ruyi', 'RuyiPage', 'ML', 0, 1,  'ENT_DEVICE', '60', 'MCH', '{userEntRules: ["USER_TYPE_11_INIT", "DEVICE"]}', now(), now());
insert into t_sys_entitlement values('ENT_DEVICE_RUYI_LIST', '页面：列表', 'no-icon', '', '', 'PB', 0, 1,  'ENT_DEVICE_RUYI', '0', 'MCH', '{userEntRules: ["USER_TYPE_11_INIT", "DEVICE"]}', now(), now());
insert into t_sys_entitlement values('ENT_DEVICE_RUYI_VIEW', '按钮：详情', 'no-icon', '', '', 'PB', 0, 1,  'ENT_DEVICE_RUYI', '0', 'MCH', '{userEntRules: ["USER_TYPE_11_INIT", "DEVICE"]}', now(), now());
insert into t_sys_entitlement values('ENT_DEVICE_RUYI_ADD', '按钮：新增', 'no-icon', '', '', 'PB', 0, 1,  'ENT_DEVICE_RUYI', '0', 'MCH', '{userEntRules: ["USER_TYPE_11_INIT", "DEVICE"]}', now(), now());
insert into t_sys_entitlement values('ENT_DEVICE_RUYI_EDIT', '按钮：修改', 'no-icon', '', '', 'PB', 0, 1,  'ENT_DEVICE_RUYI', '0', 'MCH', '{userEntRules: ["USER_TYPE_11_INIT", "DEVICE"]}', now(), now());
insert into t_sys_entitlement values('ENT_DEVICE_RUYI_BIND', '按钮：绑定蚂蚁店铺', 'no-icon', '', '', 'PB', 0, 1,  'ENT_DEVICE_RUYI', '0', 'MCH', '{userEntRules: ["USER_TYPE_11_INIT", "DEVICE"]}', now(), now());


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

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

insert into t_sys_entitlement values('ENT_MCH_NOTICE', '通知配置', 'notification', '/notice', 'NoticePage', 'ML', 0, 1,  'ENT_SYS_CONFIG', '40', 'MCH', '{userEntRules: ["USER_TYPE_11_INIT", "USER_TYPE_12_INIT"]}', now(), now());
insert into t_sys_entitlement values('ENT_MCH_WXMP_USER_LIST', '页面：公众号消息接收人列表', 'no-icon', '', '', 'PB', 0, 1,  'ENT_MCH_NOTICE', '0', 'MCH', '{userEntRules: ["USER_TYPE_11_INIT", "USER_TYPE_12_INIT"]}', now(), now());
insert into t_sys_entitlement values('ENT_MCH_WXMP_USER_ADD', '按钮：新增公众号消息接收人', 'no-icon', '', '', 'PB', 0, 1,  'ENT_MCH_NOTICE', '0', 'MCH', '{userEntRules: ["USER_TYPE_11_INIT", "USER_TYPE_12_INIT"]}', now(), now());
insert into t_sys_entitlement values('ENT_MCH_WXMP_USER_DELETE', '按钮：删除公众号消息接收人', 'no-icon', '', '', 'PB', 0, 1,  'ENT_MCH_NOTICE', '0', 'MCH', '{userEntRules: ["USER_TYPE_11_INIT", "USER_TYPE_12_INIT"]}', now(), now());
insert into t_sys_entitlement values('ENT_MCH_WXMP_USER_EDIT', '按钮：修改公众号消息接收人', 'no-icon', '', '', 'PB', 0, 1,  'ENT_MCH_NOTICE', '0', 'MCH', '{userEntRules: ["USER_TYPE_11_INIT", "USER_TYPE_12_INIT"]}', now(), now());

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

insert into t_sys_entitlement values('ENT_MCH_CONFIG', '系统配置', 'setting', '/config', 'MchConfigPage', 'ML', 0, 1,  'ENT_SYS_CONFIG', '50', 'MCH', null, now(), now());
insert into t_sys_entitlement values('ENT_MCH_CONFIG_EDIT', '按钮：修改系统配置', 'no-icon', '', '', 'PB', 0, 1,  'ENT_MCH_CONFIG', '0', 'MCH', null, now(), now());
