Commit e22c577f7a03d4da3ae3e8d0731aaabfe2519f7d

Authored by owen
1 parent 32e1fc66

trade: 分销业务 - 佣金提现后台管理

yudao-module-mall/yudao-module-trade-biz/src/test/resources/sql/clean.sql
@@ -4,3 +4,4 @@ DELETE FROM trade_after_sale; @@ -4,3 +4,4 @@ DELETE FROM trade_after_sale;
4 DELETE FROM trade_after_sale_log; 4 DELETE FROM trade_after_sale_log;
5 DELETE FROM trade_brokerage_user; 5 DELETE FROM trade_brokerage_user;
6 DELETE FROM trade_brokerage_record; 6 DELETE FROM trade_brokerage_record;
  7 +DELETE FROM "trade_brokerage_withdraw";
yudao-module-mall/yudao-module-trade-biz/src/test/resources/sql/create_tables.sql
@@ -163,4 +163,29 @@ CREATE TABLE IF NOT EXISTS "trade_brokerage_record" @@ -163,4 +163,29 @@ CREATE TABLE IF NOT EXISTS "trade_brokerage_record"
163 "deleted" bit NOT NULL DEFAULT FALSE, 163 "deleted" bit NOT NULL DEFAULT FALSE,
164 "tenant_id" bigint not null default '0', 164 "tenant_id" bigint not null default '0',
165 PRIMARY KEY ("id") 165 PRIMARY KEY ("id")
166 -) COMMENT '佣金记录';  
167 \ No newline at end of file 166 \ No newline at end of file
  167 +) COMMENT '佣金记录';
  168 +CREATE TABLE IF NOT EXISTS "trade_brokerage_withdraw"
  169 +(
  170 + "id" int NOT NULL GENERATED BY DEFAULT AS IDENTITY,
  171 + "user_id" bigint NOT NULL,
  172 + "price" int NOT NULL,
  173 + "fee_price" int NOT NULL,
  174 + "total_price" int NOT NULL,
  175 + "type" varchar NOT NULL,
  176 + "name" varchar,
  177 + "account_no" varchar,
  178 + "bank_name" varchar,
  179 + "bank_address" varchar,
  180 + "account_qr_code_url" varchar,
  181 + "status" varchar NOT NULL,
  182 + "audit_reason" varchar,
  183 + "audit_time" varchar,
  184 + "remark" varchar,
  185 + "creator" varchar DEFAULT '',
  186 + "create_time" datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  187 + "updater" varchar DEFAULT '',
  188 + "update_time" datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  189 + "deleted" bit NOT NULL DEFAULT FALSE,
  190 + "tenant_id" bigint not null default '0',目
  191 + PRIMARY KEY ("id")
  192 +) COMMENT '佣金提现';
168 \ No newline at end of file 193 \ No newline at end of file