|
@@ -1,9 +1,10 @@
|
|
|
-drop table if exists eoBusinessOrder1000_current;
|
|
|
|
|
-create table eoBusinessOrder1000_current(
|
|
|
|
|
|
|
+drop table if exists deBusinessOrder1000_current;
|
|
|
|
|
+create table deBusinessOrder1000_current(
|
|
|
id bigint default 0,
|
|
id bigint default 0,
|
|
|
orderName varchar(50) default '',
|
|
orderName varchar(50) default '',
|
|
|
orderCode varchar(100) default '',
|
|
orderCode varchar(100) default '',
|
|
|
orderStatus int default 0,
|
|
orderStatus int default 0,
|
|
|
|
|
+ orderSequence bigint default 0,
|
|
|
incomePlatformId bigint default 0,
|
|
incomePlatformId bigint default 0,
|
|
|
incomePlatformName varchar(50) default '',
|
|
incomePlatformName varchar(50) default '',
|
|
|
incomePlatformOrderCode varchar(100) default '',
|
|
incomePlatformOrderCode varchar(100) default '',
|
|
@@ -18,80 +19,8 @@ create table eoBusinessOrder1000_current(
|
|
|
deliverAddressAll varchar(500) default '',
|
|
deliverAddressAll varchar(500) default '',
|
|
|
outGoingPlatformId bigint default 0,
|
|
outGoingPlatformId bigint default 0,
|
|
|
outGoingPlatformName varchar(50) default '',
|
|
outGoingPlatformName varchar(50) default '',
|
|
|
- voidFlag int default 0,
|
|
|
|
|
- createBy bigint default 0,
|
|
|
|
|
- createTime datetime default NOW(),
|
|
|
|
|
- createTimeLong bigint default 0,
|
|
|
|
|
- updateBy bigint default 0,
|
|
|
|
|
- updateTime datetime default NOW(),
|
|
|
|
|
- updateTimeLong bigint default 0,
|
|
|
|
|
- primary key (id)
|
|
|
|
|
-)
|
|
|
|
|
- ENGINE = INNODB
|
|
|
|
|
-AUTO_INCREMENT = 1
|
|
|
|
|
-DEFAULT CHARSET = utf8
|
|
|
|
|
-COMMENT = '';
|
|
|
|
|
-
|
|
|
|
|
-drop table if exists eoOrderDeliveryInfo1000_current;
|
|
|
|
|
-create table eoOrderDeliveryInfo1000_current(
|
|
|
|
|
- id bigint default 0,
|
|
|
|
|
- idOrder bigint default 0,
|
|
|
|
|
- deliverProvince varchar(50) default '',
|
|
|
|
|
- deliverCity varchar(50) default '',
|
|
|
|
|
- deliverDistract varchar(100) default '',
|
|
|
|
|
- deliverAddress varchar(500) default '',
|
|
|
|
|
- receiveMan varchar(100) default '',
|
|
|
|
|
- contractPhone varchar(100) default '',
|
|
|
|
|
- deliverTimeliness int default 0,
|
|
|
|
|
- bookingDeliverTime datetime default NOW(),
|
|
|
|
|
- customerInvoiceInfo varchar(100) default '',
|
|
|
|
|
- customerMemo varchar(2000) default '',
|
|
|
|
|
- createBy bigint default 0,
|
|
|
|
|
- createTime datetime default NOW(),
|
|
|
|
|
- createTimeLong bigint default 0,
|
|
|
|
|
- updateBy bigint default 0,
|
|
|
|
|
- updateTime datetime default NOW(),
|
|
|
|
|
- updateTimeLong bigint default 0,
|
|
|
|
|
- primary key (id)
|
|
|
|
|
-)
|
|
|
|
|
- ENGINE = INNODB
|
|
|
|
|
- AUTO_INCREMENT = 1
|
|
|
|
|
- DEFAULT CHARSET = utf8
|
|
|
|
|
- COMMENT = '';
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
-drop table if exists eoOrderDetailItem1000_current;
|
|
|
|
|
-create table eoOrderDetailItem1000_current(
|
|
|
|
|
- id bigint default 0,
|
|
|
|
|
- idOrder bigint default 0,
|
|
|
|
|
- itemName varchar(50) default '',
|
|
|
|
|
- itemPrice decimal(18,4) default 0,
|
|
|
|
|
- itemCount int default 0,
|
|
|
|
|
- itemMoney decimal(18,4) default 0,
|
|
|
|
|
- createBy bigint default 0,
|
|
|
|
|
- createTime datetime default NOW(),
|
|
|
|
|
- createTimeLong bigint default 0,
|
|
|
|
|
- updateBy bigint default 0,
|
|
|
|
|
- updateTime datetime default NOW(),
|
|
|
|
|
- updateTimeLong bigint default 0,
|
|
|
|
|
- primary key (id)
|
|
|
|
|
-)
|
|
|
|
|
- ENGINE = INNODB
|
|
|
|
|
- AUTO_INCREMENT = 1
|
|
|
|
|
- DEFAULT CHARSET = utf8
|
|
|
|
|
- COMMENT = '';
|
|
|
|
|
-
|
|
|
|
|
-drop table if exists eoOrderFinances1000_current;
|
|
|
|
|
-create table eoOrderFinances1000_current(
|
|
|
|
|
- id bigint default 0,
|
|
|
|
|
- idOrder bigint default 0,
|
|
|
|
|
- orderMoney decimal(18,4) default 0,
|
|
|
|
|
- deliverFee decimal(18,4) default 0,
|
|
|
|
|
- orderPlatformSubsidy decimal(18,4) default 0,
|
|
|
|
|
- storeDiscount decimal(18,4) default 0,
|
|
|
|
|
- customerPaid decimal(18,4) default 0,
|
|
|
|
|
- platformServiceFee decimal(18,4) default 0,
|
|
|
|
|
- storeRealCollection decimal(18,4) default 0,
|
|
|
|
|
|
|
+ voidFlagIn int default 0,
|
|
|
|
|
+ voidFlagOut int default 0,
|
|
|
createBy bigint default 0,
|
|
createBy bigint default 0,
|
|
|
createTime datetime default NOW(),
|
|
createTime datetime default NOW(),
|
|
|
createTimeLong bigint default 0,
|
|
createTimeLong bigint default 0,
|
|
@@ -290,41 +219,6 @@ ALTER TABLE `tbplatforminfo1000`
|
|
|
ADD COLUMN `platformCode` varchar(50) NULL AFTER `id`;
|
|
ADD COLUMN `platformCode` varchar(50) NULL AFTER `id`;
|
|
|
|
|
|
|
|
|
|
|
|
|
-drop table if exists deBusinessOrder1000_current;
|
|
|
|
|
-create table deBusinessOrder1000_current(
|
|
|
|
|
- id bigint default 0,
|
|
|
|
|
- orderName varchar(50) default '',
|
|
|
|
|
- orderCode varchar(100) default '',
|
|
|
|
|
- orderStatus int default 0,
|
|
|
|
|
- incomePlatformId bigint default 0,
|
|
|
|
|
- incomePlatformName varchar(50) default '',
|
|
|
|
|
- incomePlatformOrderCode varchar(100) default '',
|
|
|
|
|
- incomePlatformOrderTime datetime default NOW(),
|
|
|
|
|
- incomePlatformOrderTimeLong bigint default 0,
|
|
|
|
|
- suggestDeliverTime datetime default NOW(),
|
|
|
|
|
- suggestDeliverTimeLong bigint default 0,
|
|
|
|
|
- idStore bigint default 0,
|
|
|
|
|
- storeName varchar(50) default '',
|
|
|
|
|
- deliverFee decimal(18,4) default 0,
|
|
|
|
|
- deliverDistance decimal(18,4) default 0,
|
|
|
|
|
- deliverAddressAll varchar(500) default '',
|
|
|
|
|
- outGoingPlatformId bigint default 0,
|
|
|
|
|
- outGoingPlatformName varchar(50) default '',
|
|
|
|
|
- voidFlag int default 0,
|
|
|
|
|
- createBy bigint default 0,
|
|
|
|
|
- createTime datetime default NOW(),
|
|
|
|
|
- createTimeLong bigint default 0,
|
|
|
|
|
- updateBy bigint default 0,
|
|
|
|
|
- updateTime datetime default NOW(),
|
|
|
|
|
- updateTimeLong bigint default 0,
|
|
|
|
|
- primary key (id)
|
|
|
|
|
-)
|
|
|
|
|
- ENGINE = INNODB
|
|
|
|
|
- AUTO_INCREMENT = 1
|
|
|
|
|
- DEFAULT CHARSET = utf8
|
|
|
|
|
- COMMENT = '';
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
|
|
|
|
|
drop table if exists deOrderFinances1000_current;
|
|
drop table if exists deOrderFinances1000_current;
|
|
|
create table deOrderFinances1000_current(
|
|
create table deOrderFinances1000_current(
|
|
@@ -414,5 +308,85 @@ ALTER TABLE `tbstoreplatform1000`
|
|
|
ALTER TABLE `deorderdeliveryinfo1000_currnet`
|
|
ALTER TABLE `deorderdeliveryinfo1000_currnet`
|
|
|
ADD COLUMN `bookingDeliverTimeLong` bigint(20) NULL AFTER `bookingDeliverTime`;
|
|
ADD COLUMN `bookingDeliverTimeLong` bigint(20) NULL AFTER `bookingDeliverTime`;
|
|
|
|
|
|
|
|
-ALTER TABLE `debusinessorder1000_current`
|
|
|
|
|
- ADD COLUMN `orderSequence` bigint(20) NULL AFTER `suggestDeliverTimeLong`;
|
|
|
|
|
|
|
+ALTER TABLE `deorderfinances1000_current`
|
|
|
|
|
+ ADD COLUMN `omeServiceFee` decimal(18, 4) NULL AFTER `storeRealCollection`;
|
|
|
|
|
+
|
|
|
|
|
+drop table if exists deOrderRefundRequest1000_current;
|
|
|
|
|
+create table deOrderRefundRequest1000_current(
|
|
|
|
|
+ id bigint default 0,
|
|
|
|
|
+ idOrder bigint default 0,
|
|
|
|
|
+ idStore bigint default 0,
|
|
|
|
|
+ outPlatformStoreId varchar(100) default '',
|
|
|
|
|
+ idStorePlatform bigint default 0,
|
|
|
|
|
+ platformCode varchar(100) default '',
|
|
|
|
|
+ platformType int default 0,
|
|
|
|
|
+ platformName varchar(50) default '',
|
|
|
|
|
+ outAfterSaleId varchar(100) default '',
|
|
|
|
|
+ requestStatus int default 0,
|
|
|
|
|
+ userRefundMemo varchar(2000) default '',
|
|
|
|
|
+ refundType int default 0,
|
|
|
|
|
+ deliveryFee int default 0,
|
|
|
|
|
+ refundFee int default 0,
|
|
|
|
|
+ refundProdCount int default 0,
|
|
|
|
|
+ refundProductsDetail varchar(100) default '',
|
|
|
|
|
+ createBy bigint default 0,
|
|
|
|
|
+ createTime datetime default NOW(),
|
|
|
|
|
+ createTimeLong bigint default 0,
|
|
|
|
|
+ updateBy bigint default 0,
|
|
|
|
|
+ updateTime datetime default NOW(),
|
|
|
|
|
+ updateTimeLong bigint default 0,
|
|
|
|
|
+ primary key (id)
|
|
|
|
|
+)
|
|
|
|
|
+ ENGINE = INNODB
|
|
|
|
|
+ AUTO_INCREMENT = 1
|
|
|
|
|
+ DEFAULT CHARSET = utf8
|
|
|
|
|
+ COMMENT = '';
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+drop table if exists deOrderAfterSaleBill1000_current;
|
|
|
|
|
+create table deOrderAfterSaleBill1000_current(
|
|
|
|
|
+ id bigint default 0,
|
|
|
|
|
+ idOrder bigint default 0,
|
|
|
|
|
+ idStore bigint default 0,
|
|
|
|
|
+ outPlatformStoreId varchar(100) default '',
|
|
|
|
|
+ idStorePlatform bigint default 0,
|
|
|
|
|
+ platformCode varchar(100) default '',
|
|
|
|
|
+ platformType int default 0,
|
|
|
|
|
+ platformName varchar(50) default '',
|
|
|
|
|
+ outAfterSaleId varchar(100) default '',
|
|
|
|
|
+ applySource varchar(100) default '',
|
|
|
|
|
+ billCode varchar(100) default '',
|
|
|
|
|
+ userRefundAmount int default 0,
|
|
|
|
|
+ totalUserRefundAmount int default 0,
|
|
|
|
|
+ prodCountAfterRefund int default 0,
|
|
|
|
|
+ productsRemainDetail varchar(100) default '',
|
|
|
|
|
+ productsRefundDetail varchar(100) default '',
|
|
|
|
|
+ createBy bigint default 0,
|
|
|
|
|
+ createTime datetime default NOW(),
|
|
|
|
|
+ createTimeLong bigint default 0,
|
|
|
|
|
+ updateBy bigint default 0,
|
|
|
|
|
+ updateTime datetime default NOW(),
|
|
|
|
|
+ updateTimeLong bigint default 0,
|
|
|
|
|
+ primary key (id)
|
|
|
|
|
+)
|
|
|
|
|
+ ENGINE = INNODB
|
|
|
|
|
+ AUTO_INCREMENT = 1
|
|
|
|
|
+ DEFAULT CHARSET = utf8
|
|
|
|
|
+ COMMENT = '';
|
|
|
|
|
+
|
|
|
|
|
+CREATE OR REPLACE ALGORITHM = UNDEFINED DEFINER = `dbadmin`@`%` SQL SECURITY DEFINER VIEW `v_deorderaftersalebill1000` AS SELECT
|
|
|
|
|
+ `deorderaftersalebill1000_current`.`id` AS `id`,
|
|
|
|
|
+ `deorderaftersalebill1000_current`.`billCode` AS `billCode`
|
|
|
|
|
+ FROM
|
|
|
|
|
+ `deorderaftersalebill1000_current`;
|
|
|
|
|
+CREATE OR REPLACE ALGORITHM = UNDEFINED DEFINER = `dbadmin`@`%` SQL SECURITY DEFINER VIEW `v_deorderrefundrequest1000` AS select `deorderrefundrequest1000_current`.`id` AS `id` from `deorderrefundrequest1000_current`;
|
|
|
|
|
+
|
|
|
|
|
+ALTER TABLE `deorderdetailitem1000_current`
|
|
|
|
|
+ ADD COLUMN `itemDetail` varchar(2000) NULL AFTER `itemMoney`;
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+
|