|
|
@@ -218,26 +218,6 @@ create table tbStoreInfo1000(
|
|
|
DEFAULT CHARSET = utf8
|
|
|
COMMENT = '';
|
|
|
|
|
|
-drop table if exists tbStoreInvoiceInfo1000;
|
|
|
-create table tbStoreInvoiceInfo1000(
|
|
|
- id bigint default 0,
|
|
|
- taxIdNo varchar(100) default '',
|
|
|
- companyName varchar(50) default '',
|
|
|
- defaultTaxItemName varchar(50) default '',
|
|
|
- defaultTaxItemCode varchar(100) default '',
|
|
|
- taxRate 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 tbStorePlatform1000;
|
|
|
create table tbStorePlatform1000(
|
|
|
@@ -283,8 +263,8 @@ create table tbStorePlatformRequire1000(
|
|
|
DEFAULT CHARSET = utf8
|
|
|
COMMENT = '';
|
|
|
|
|
|
-drop table if exists tbStoreInvoiceInfo1000_current;
|
|
|
-create table tbStoreInvoiceInfo1000_current(
|
|
|
+drop table if exists tbStoreInvoiceInfo1000;
|
|
|
+create table tbStoreInvoiceInfo1000(
|
|
|
id bigint default 0,
|
|
|
idStore bigint default 0,
|
|
|
taxIdNo varchar(100) default '',
|
|
|
@@ -304,3 +284,125 @@ create table tbStoreInvoiceInfo1000_current(
|
|
|
AUTO_INCREMENT = 1
|
|
|
DEFAULT CHARSET = utf8
|
|
|
COMMENT = '';
|
|
|
+
|
|
|
+
|
|
|
+ALTER TABLE `tbplatforminfo1000`
|
|
|
+ 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;
|
|
|
+create table deOrderFinances1000_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,
|
|
|
+ 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 deOrderDeliveryInfo1000_currnet;
|
|
|
+create table deOrderDeliveryInfo1000_currnet(
|
|
|
+ id bigint default 0,
|
|
|
+ idOrder bigint default 0,
|
|
|
+ deliverProvince varchar(50) default '',
|
|
|
+ deliverCity varchar(50) default '',
|
|
|
+ deliverDistract varchar(100) default '',
|
|
|
+ deliverAddress varchar(500) default '',
|
|
|
+ geoLocationSerial varchar(100) 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 deOrderDetailItem1000_current;
|
|
|
+create table deOrderDetailItem1000_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 = '';
|
|
|
+
|
|
|
+
|
|
|
+CREATE OR REPLACE ALGORITHM = UNDEFINED DEFINER = `dbadmin`@`%` SQL SECURITY DEFINER VIEW `v_debusinessorder1000` AS select `debusinessorder1000_current`.`id` AS `id`,`debusinessorder1000_current`.`orderCode` AS `orderCode` from `debusinessorder1000_current` ;
|
|
|
+CREATE OR REPLACE ALGORITHM = UNDEFINED DEFINER = `dbadmin`@`%` SQL SECURITY DEFINER VIEW `v_deorderfinances1000` AS select `deorderfinances1000_current`.`id` AS `id` from `deorderfinances1000_current` ;
|
|
|
+CREATE OR REPLACE ALGORITHM = UNDEFINED DEFINER = `dbadmin`@`%` SQL SECURITY DEFINER VIEW `v_deorderdetailitem1000` AS select `deorderdetailitem1000_current`.`id` AS `id` from `deorderdetailitem1000_current`;
|
|
|
+CREATE OR REPLACE ALGORITHM = UNDEFINED DEFINER = `dbadmin`@`%` SQL SECURITY DEFINER VIEW `v_deorderdeliveryinfo1000` AS select `deorderdeliveryinfo1000_currnet`.`id` AS `id` from `deorderdeliveryinfo1000_currnet`;
|