|
@@ -24,7 +24,7 @@ create table trade_config
|
|
|
create table trade_brokerage_user
|
|
|
(
|
|
|
id bigint auto_increment comment '用户编号' primary key,
|
|
|
- brokerage_user_id bigint not null comment '推广员编号',
|
|
|
+ brokerage_user_id bigint null comment '推广员编号',
|
|
|
brokerage_bind_time datetime null comment '推广员绑定时间',
|
|
|
brokerage_enabled bit default 1 not null comment '是否成为推广员',
|
|
|
brokerage_time datetime null comment '成为分销员时间',
|
|
@@ -185,12 +185,15 @@ SELECT @parentId := LAST_INSERT_ID();
|
|
|
INSERT INTO system_menu(name, permission, type, sort, parent_id, path, icon, component, status)
|
|
|
VALUES ('分销用户查询', 'trade:brokerage-user:query', 3, 1, @parentId, '', '', '', 0);
|
|
|
INSERT INTO system_menu(name, permission, type, sort, parent_id, path, icon, component, status)
|
|
|
-VALUES ('分销用户修改推广员', 'trade:brokerage-user:update-brokerage-user', 3, 2, @parentId, '', '', '', 0);
|
|
|
+VALUES ('分销用户推广人查询', 'trade:brokerage-user:user-query', 3, 2, @parentId, '', '', '', 0);
|
|
|
INSERT INTO system_menu(name, permission, type, sort, parent_id, path, icon, component, status)
|
|
|
-VALUES ('分销用户清除推广员', 'trade:brokerage-user:clear-brokerage-user', 3, 3, @parentId, '', '', '', 0);
|
|
|
+VALUES ('分销用户推广订单查询', 'trade:brokerage-user:order-query', 3, 3, @parentId, '', '', '', 0);
|
|
|
INSERT INTO system_menu(name, permission, type, sort, parent_id, path, icon, component, status)
|
|
|
VALUES ('分销用户修改推广资格', 'trade:brokerage-user:update-brokerage-enable', 3, 4, @parentId, '', '', '', 0);
|
|
|
-
|
|
|
+INSERT INTO system_menu(name, permission, type, sort, parent_id, path, icon, component, status)
|
|
|
+VALUES ('分销用户修改推广员', 'trade:brokerage-user:update-brokerage-user', 3, 5, @parentId, '', '', '', 0);
|
|
|
+INSERT INTO system_menu(name, permission, type, sort, parent_id, path, icon, component, status)
|
|
|
+VALUES ('分销用户清除推广员', 'trade:brokerage-user:clear-brokerage-user', 3, 6, @parentId, '', '', '', 0);
|
|
|
|
|
|
-- 增加菜单:佣金记录
|
|
|
INSERT INTO system_menu(name, permission, type, sort, parent_id, path, icon, component, status, component_name)
|