完成提成界面

This commit is contained in:
huangdeliang
2020-10-06 14:29:11 +08:00
parent d95c1698f5
commit 4aee429a2e
24 changed files with 1117 additions and 510 deletions

View File

@ -692,7 +692,7 @@ drop table if exists sys_commision;
create table sys_commision (
rule_id bigint(20) not null auto_increment comment '编号',
user_id bigint(20) comment '用户ID',
nick_name varchar(30) not null comment '用户昵称',
post_id bigint(20) comment '职位ID',
amount decimal(10,2) comment '金额',
rate float comment '分成比例',
create_by varchar(64) default '' comment '创建者',
@ -735,4 +735,10 @@ create table sys_order (
) engine=innodb auto_increment=1 comment = '销售订单表';
CREATE VIEW view_user_post AS (
SELECT up.user_id, u.nick_name AS user_name, p.post_id, p.post_name
FROM sys_post p, sys_user u, sys_user_post up
WHERE p.post_id = up.post_id AND u.user_id = up.user_id
)