37 行
3.6 KiB
SQL
37 行
3.6 KiB
SQL
-- 运营公司财务结算后台菜单
|
|
-- 请将 fa_ 替换为实际表前缀
|
|
|
|
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/operating_company', '运营公司管理', 'fa fa-building', '', '', '', 1, '', @now, @now, 3, 'normal');
|
|
|
|
SET @oc_id = (SELECT id FROM `fa_auth_rule` WHERE `name` = 'shopro/operating_company' LIMIT 1);
|
|
|
|
UPDATE `fa_auth_rule` SET `pid` = @parent_id, `ismenu` = 1, `status` = 'normal' WHERE `name` = 'shopro/operating_company';
|
|
|
|
INSERT IGNORE INTO `fa_auth_rule` (`type`,`pid`,`name`,`title`,`icon`,`url`,`condition`,`remark`,`ismenu`,`extend`,`createtime`,`updatetime`,`weigh`,`status`) VALUES
|
|
('file', @oc_id, 'shopro/operating_company/company', '运营公司列表', 'fa fa-list', '', '', '', 1, '', @now, @now, 10, 'normal'),
|
|
('file', @oc_id, 'shopro/operating_company/settlement', '运营公司结算', 'fa fa-money', '', '', '', 1, '', @now, @now, 9, 'normal');
|
|
|
|
SET @company_id = (SELECT id FROM `fa_auth_rule` WHERE `name` = 'shopro/operating_company/company' LIMIT 1);
|
|
SET @settle_id = (SELECT id FROM `fa_auth_rule` WHERE `name` = 'shopro/operating_company/settlement' LIMIT 1);
|
|
|
|
INSERT IGNORE INTO `fa_auth_rule` (`type`,`pid`,`name`,`title`,`icon`,`url`,`condition`,`remark`,`ismenu`,`extend`,`createtime`,`updatetime`,`weigh`,`status`) VALUES
|
|
('file', @company_id, 'shopro/operating_company/company/index', '查看', 'fa fa-circle-o', '', '', '', 0, '', @now, @now, 0, 'normal'),
|
|
('file', @company_id, 'shopro/operating_company/company/add', '添加', 'fa fa-circle-o', '', '', '', 0, '', @now, @now, 0, 'normal'),
|
|
('file', @company_id, 'shopro/operating_company/company/edit', '编辑', 'fa fa-circle-o', '', '', '', 0, '', @now, @now, 0, 'normal'),
|
|
('file', @company_id, 'shopro/operating_company/company/del', '删除', 'fa fa-circle-o', '', '', '', 0, '', @now, @now, 0, 'normal'),
|
|
('file', @settle_id, 'shopro/operating_company/settlement/index', '查看', 'fa fa-circle-o', '', '', '', 0, '', @now, @now, 0, 'normal'),
|
|
('file', @settle_id, 'shopro/operating_company/settlement/add', '添加', 'fa fa-circle-o', '', '', '', 0, '', @now, @now, 0, 'normal'),
|
|
('file', @settle_id, 'shopro/operating_company/settlement/edit', '编辑', 'fa fa-circle-o', '', '', '', 0, '', @now, @now, 0, 'normal'),
|
|
('file', @settle_id, 'shopro/operating_company/settlement/del', '删除', 'fa fa-circle-o', '', '', '', 0, '', @now, @now, 0, 'normal'),
|
|
('file', @settle_id, 'shopro/operating_company/settlement/submit', '提交审核', 'fa fa-circle-o', '', '', '', 0, '', @now, @now, 0, 'normal'),
|
|
('file', @settle_id, 'shopro/operating_company/settlement/audit', '审核', 'fa fa-circle-o', '', '', '', 0, '', @now, @now, 0, 'normal'),
|
|
('file', @settle_id, 'shopro/operating_company/settlement/markPay', '打款标记', 'fa fa-circle-o', '', '', '', 0, '', @now, @now, 0, 'normal'),
|
|
('file', @settle_id, 'shopro/operating_company/settlement/import', '导入', 'fa fa-circle-o', '', '', '', 0, '', @now, @now, 0, 'normal'),
|
|
('file', @settle_id, 'shopro/operating_company/settlement/export', '导出', 'fa fa-circle-o', '', '', '', 0, '', @now, @now, 0, 'normal'),
|
|
('file', @settle_id, 'shopro/operating_company/settlement/downloadTemplate', '下载模板', 'fa fa-circle-o', '', '', '', 0, '', @now, @now, 0, 'normal'),
|
|
('file', @settle_id, 'shopro/operating_company/settlement/logs', '日志', 'fa fa-circle-o', '', '', '', 0, '', @now, @now, 0, 'normal');
|