34 行
3.0 KiB
SQL
34 行
3.0 KiB
SQL
-- 支付分账后台菜单
|
|
SET @now = UNIX_TIMESTAMP();
|
|
SET @parent_id = (SELECT id FROM `fa_auth_rule` WHERE `name` = 'shopro' LIMIT 1);
|
|
|
|
INSERT IGNORE INTO `fa_auth_rule` (`type`,`pid`,`name`,`title`,`icon`,`url`,`condition`,`remark`,`ismenu`,`extend`,`createtime`,`updatetime`,`weigh`,`status`) VALUES
|
|
('file', @parent_id, 'shopro/split', '支付分账', 'fa fa-share-alt', '', '', '', 1, '', @now, @now, 2, 'normal');
|
|
|
|
SET @split_id = (SELECT id FROM `fa_auth_rule` WHERE `name` = 'shopro/split' LIMIT 1);
|
|
|
|
INSERT IGNORE INTO `fa_auth_rule` (`type`,`pid`,`name`,`title`,`icon`,`url`,`condition`,`remark`,`ismenu`,`extend`,`createtime`,`updatetime`,`weigh`,`status`) VALUES
|
|
('file', @split_id, 'shopro/split/config', '分账设置', 'fa fa-cog', '', '', '', 1, '', @now, @now, 4, 'normal'),
|
|
('file', @split_id, 'shopro/split/receiver', '分账接收方', 'fa fa-users', '', '', '', 1, '', @now, @now, 3, 'normal'),
|
|
('file', @split_id, 'shopro/split/rule', '分账规则', 'fa fa-sliders', '', '', '', 1, '', @now, @now, 2, 'normal'),
|
|
('file', @split_id, 'shopro/split/order', '分账记录', 'fa fa-list', '', '', '', 1, '', @now, @now, 1, 'normal');
|
|
|
|
SET @cfg = (SELECT id FROM `fa_auth_rule` WHERE `name` = 'shopro/split/config' LIMIT 1);
|
|
SET @rcv = (SELECT id FROM `fa_auth_rule` WHERE `name` = 'shopro/split/receiver' LIMIT 1);
|
|
SET @rule = (SELECT id FROM `fa_auth_rule` WHERE `name` = 'shopro/split/rule' LIMIT 1);
|
|
SET @ord = (SELECT id FROM `fa_auth_rule` WHERE `name` = 'shopro/split/order' LIMIT 1);
|
|
|
|
INSERT IGNORE INTO `fa_auth_rule` (`type`,`pid`,`name`,`title`,`icon`,`url`,`condition`,`remark`,`ismenu`,`extend`,`createtime`,`updatetime`,`weigh`,`status`) VALUES
|
|
('file', @cfg, 'shopro/split/config/index', '查看', 'fa fa-circle-o', '', '', '', 0, '', @now, @now, 0, 'normal'),
|
|
('file', @cfg, 'shopro/split/config/save', '保存', 'fa fa-circle-o', '', '', '', 0, '', @now, @now, 0, 'normal'),
|
|
('file', @rcv, 'shopro/split/receiver/index', '查看', 'fa fa-circle-o', '', '', '', 0, '', @now, @now, 0, 'normal'),
|
|
('file', @rcv, 'shopro/split/receiver/add', '添加', 'fa fa-circle-o', '', '', '', 0, '', @now, @now, 0, 'normal'),
|
|
('file', @rcv, 'shopro/split/receiver/edit', '编辑', 'fa fa-circle-o', '', '', '', 0, '', @now, @now, 0, 'normal'),
|
|
('file', @rcv, 'shopro/split/receiver/del', '删除', 'fa fa-circle-o', '', '', '', 0, '', @now, @now, 0, 'normal'),
|
|
('file', @rcv, 'shopro/split/receiver/syncWx', '同步微信', 'fa fa-circle-o', '', '', '', 0, '', @now, @now, 0, 'normal'),
|
|
('file', @rule, 'shopro/split/rule/index', '查看', 'fa fa-circle-o', '', '', '', 0, '', @now, @now, 0, 'normal'),
|
|
('file', @rule, 'shopro/split/rule/edit', '编辑', 'fa fa-circle-o', '', '', '', 0, '', @now, @now, 0, 'normal'),
|
|
('file', @ord, 'shopro/split/order/index', '查看', 'fa fa-circle-o', '', '', '', 0, '', @now, @now, 0, 'normal'),
|
|
('file', @ord, 'shopro/split/order/retry', '重试', 'fa fa-circle-o', '', '', '', 0, '', @now, @now, 0, 'normal'),
|
|
('file', @ord, 'shopro/split/order/query', '查询状态', 'fa fa-circle-o', '', '', '', 0, '', @now, @now, 0, 'normal');
|