From 5edab20ea1979055a4d46a738f9762ad573bcf59 Mon Sep 17 00:00:00 2001
From: Helius <wangdoubleone@gmail.com>
Date: Sat, 25 Sep 2021 10:22:33 +0800
Subject: [PATCH] fix payOrder

---
 sql/xc_mall.sql |   80 ++++++++++++++++++++++++++++++++++++++++
 1 files changed, 80 insertions(+), 0 deletions(-)

diff --git a/sql/xc_mall.sql b/sql/xc_mall.sql
index 7b8eaa3..18d4da2 100644
--- a/sql/xc_mall.sql
+++ b/sql/xc_mall.sql
@@ -224,4 +224,84 @@
    member_id    bigint         null comment '用户ID',
    PRIMARY KEY (ID)
 )  COMMENT = '用户钱包';
+alter table mall_order_item add sku_image varchar(1000) null comment 'sku图片' after sku_name;
+
+DROP TABLE IF EXISTS mall_express_info;
+CREATE TABLE mall_express_info(
+  REVISION INT    COMMENT '乐观锁' ,
+  CREATED_BY VARCHAR(32)    COMMENT '创建人' ,
+  CREATED_TIME DATETIME    COMMENT '创建时间' ,
+  UPDATED_BY VARCHAR(32)    COMMENT '更新人' ,
+  UPDATED_TIME DATETIME    COMMENT '更新时间' ,
+  ID BIGINT NOT NULL AUTO_INCREMENT  COMMENT '主键' ,
+  order_id BIGINT    COMMENT '订单ID' ,
+  member_id BIGINT    COMMENT '用户ID' ,
+  express_no VARCHAR(255)    COMMENT '物流单号' ,
+  express_com VARCHAR(255)    COMMENT '物流公司' ,
+  PRIMARY KEY (ID)
+)  COMMENT = '物流信息表';
+
+alter table mall_order_info add receiving_time datetime null comment '收货时间';
+
+DROP TABLE IF EXISTS mall_order_refund;
+CREATE TABLE mall_order_refund(
+  REVISION INT    COMMENT '乐观锁' ,
+  CREATED_BY VARCHAR(32)    COMMENT '创建人' ,
+  CREATED_TIME DATETIME    COMMENT '创建时间' ,
+  UPDATED_BY VARCHAR(32)    COMMENT '更新人' ,
+  UPDATED_TIME DATETIME    COMMENT '更新时间' ,
+  ID BIGINT NOT NULL AUTO_INCREMENT  COMMENT '主键' ,
+  member_id BIGINT    COMMENT '用户ID' ,
+  order_id BIGINT    COMMENT '订单ID' ,
+  reason VARCHAR(255)    COMMENT '退款原因' ,
+  desp TEXT    COMMENT '描述' ,
+  remark TEXT    COMMENT '备注' ,
+  status INT    COMMENT '状态;1-已申请2-同意退款3-驳回退款4-已提交物流信息5-已退款' ,
+  express_no VARCHAR(255)    COMMENT '物流单号' ,
+  express_com VARCHAR(255)    COMMENT '物流公司' ,
+  PRIMARY KEY (ID)
+)  COMMENT = '订单退款';
+
+DROP TABLE IF EXISTS mall_order_refund_operation;
+CREATE TABLE mall_order_refund_operation(
+    REVISION INT    COMMENT '乐观锁' ,
+    CREATED_BY VARCHAR(32)    COMMENT '创建人' ,
+    CREATED_TIME DATETIME    COMMENT '创建时间' ,
+    UPDATED_BY VARCHAR(32)    COMMENT '更新人' ,
+    UPDATED_TIME DATETIME    COMMENT '更新时间' ,
+    ID BIGINT NOT NULL AUTO_INCREMENT  COMMENT '主键' ,
+    refund_id BIGINT    COMMENT '退款ID' ,
+    order_id BIGINT    COMMENT '订单ID' ,
+    content TEXT    COMMENT '操作内容' ,
+    PRIMARY KEY (ID)
+)  COMMENT = '退款操作明细';
+
+alter table mall_order_refund add type int null comment '1-仅退款不退货2-退款退货';
+alter table mall_order_refund add before_status int null comment '订单退款前状态';
+alter table mall_order_refund add refund_time datetime null comment '退款时间';
+
+DROP TABLE IF EXISTS mall_order_refund_address;
+CREATE TABLE mall_order_refund_address(
+  REVISION INT    COMMENT '乐观锁' ,
+  CREATED_BY VARCHAR(32)    COMMENT '创建人' ,
+  CREATED_TIME DATETIME    COMMENT '创建时间' ,
+  UPDATED_BY VARCHAR(32)    COMMENT '更新人' ,
+  UPDATED_TIME DATETIME    COMMENT '更新时间' ,
+  ID BIGINT NOT NULL AUTO_INCREMENT  COMMENT '主键' ,
+  name VARCHAR(32)    COMMENT '联系人' ,
+  phone VARCHAR(32)    COMMENT '联系电话' ,
+  address TEXT    COMMENT '地址' ,
+  PRIMARY KEY (ID)
+)  COMMENT = '退货地址管理';
+
+alter table mall_order_refund add name varchar(32) null comment '联系人';
+alter table mall_order_refund add phone varchar(32) null comment '联系电话';
+alter table mall_order_refund add address text null comment '地址';
+
+alter table mall_money_flow add rt_member_id bigint null comment '返利用户ID';
+alter table mall_money_flow add status int null comment '提现状态 1-提现中2-成功3-拒绝';
+
+alter table mall_order_info add pay_image varchar(1000) null comment '支付凭证';
+
+
 

--
Gitblit v1.9.1