From bd276223343b32723e469f2e6e3f414572502b4b Mon Sep 17 00:00:00 2001 From: jyy <935090232@qq.com> Date: Thu, 18 Mar 2021 11:51:52 +0800 Subject: [PATCH] 修改bug7 --- zq-erp/src/main/resources/config/db/increment/推广员.sql | 36 ++++++++++++++++++++++++++++++++++++ 1 files changed, 36 insertions(+), 0 deletions(-) diff --git "a/zq-erp/src/main/resources/config/db/increment/\346\216\250\345\271\277\345\221\230.sql" "b/zq-erp/src/main/resources/config/db/increment/\346\216\250\345\271\277\345\221\230.sql" index 4a54e0f..1659c34 100644 --- "a/zq-erp/src/main/resources/config/db/increment/\346\216\250\345\271\277\345\221\230.sql" +++ "b/zq-erp/src/main/resources/config/db/increment/\346\216\250\345\271\277\345\221\230.sql" @@ -11,6 +11,29 @@ /** + * 分销单明细 + * @author yourName + * @date 2021-03-12 13:17 + */ +CREATE TABLE shop_salesman_order_item( + create_by varchar(100) NOT NULL COMMENT '创建人', + create_time datetime NOT NULL COMMENT '创建时间', + update_by varchar(100) NOT NULL COMMENT '更新人', + update_time datetime NOT NULL COMMENT '更新时间', + id bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键', + + order_id bigint(20) COMMENT '订单id', + + salesman_order_id bigint(20) COMMENT '分销订单id', + + order_item_id bigint(20) COMMENT '订单明细id', + + amount double(20,2) COMMENT '收益金额', + +PRIMARY KEY(id) +)ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='分销单明细'; + +/** * 收益流水 * @author yourName * @date 2021-03-10 17:34 @@ -157,3 +180,16 @@ PRIMARY KEY(id) )ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='分销订单'; +biz_user原来的userId改成了自增长的bigint + + +ALTER TABLE `shop_sku` + ADD COLUMN `score_price` decimal(10, 2) NULL COMMENT '积分兑换价格' AFTER `invitation_price`; + +ALTER TABLE `shop_product` + ADD COLUMN `score_category_id` bigint(20) NULL COMMENT '积分商城分类ID' AFTER `company_id`, +ADD COLUMN `able_sales` int(2) NULL COMMENT '是否为分销产品' AFTER `score_category_id`, +ADD COLUMN `mall_type` int(2) NULL COMMENT '上架卖场' AFTER `able_sales`; + + + -- Gitblit v1.9.1