|
|
@@ -1,8 +1,41 @@
|
|
|
+2019.12.17 shish
|
|
|
+drop table if exists `xhStatIncomeUsage`;
|
|
|
+CREATE TABLE if not exists `xhStatIncomeUsage` (
|
|
|
+ `id` int(11) NOT NULL auto_increment primary key,
|
|
|
+ `merchantId` int(11) NOT NULL DEFAULT '0' COMMENT '商家id',
|
|
|
+ `shopId` int not null default 0 comment '门店id,0表示商家所有门店',
|
|
|
+ `time` int(11) NOT NULL DEFAULT '0' COMMENT '时间',
|
|
|
+ `usageId` tinyint(4) NOT NULL DEFAULT '0' COMMENT '用途id;UsageRelation id',
|
|
|
+ `amount` decimal(9,2) NOT NULL DEFAULT '0.00' COMMENT '收入金额',
|
|
|
+ `weixin` decimal(9,2) NOT NULL DEFAULT '0.00' COMMENT '微信收入',
|
|
|
+ `alipay` decimal(9,2) NOT NULL DEFAULT '0.00' COMMENT '支付宝收入',
|
|
|
+ `balancePay` decimal(9,2) NOT NULL DEFAULT '0.00' COMMENT '余额付款收入',
|
|
|
+ `cash` decimal(9,2) NOT NULL DEFAULT '0.00' COMMENT '现金收入',
|
|
|
+ `totalAmount` decimal(9,2) NOT NULL DEFAULT '0.00' COMMENT '总收入金额',
|
|
|
+ `addTime` int(11) NOT NULL DEFAULT '0' COMMENT '添加时间'
|
|
|
+) COMMENT='按用途统计每天收入';
|
|
|
+drop table if exists `xhStatIncomeUsageMonth`;
|
|
|
+CREATE TABLE if not exists `xhStatIncomeUsageMonth` (
|
|
|
+ `id` int(11) NOT NULL auto_increment primary key,
|
|
|
+ `year` smallint(6) NOT NULL DEFAULT '0' COMMENT '年',
|
|
|
+ `month` tinyint(4) NOT NULL DEFAULT '1' COMMENT '月份',
|
|
|
+ `usageId` tinyint(4) NOT NULL DEFAULT '0' COMMENT '用途id',
|
|
|
+ `amount` decimal(9,2) NOT NULL DEFAULT '0.00' COMMENT '收入金额',
|
|
|
+ `weixin` decimal(9,2) NOT NULL DEFAULT '0.00' COMMENT '微信收入',
|
|
|
+ `alipay` decimal(9,2) NOT NULL DEFAULT '0.00' COMMENT '支付宝收入',
|
|
|
+ `balancePay` decimal(9,2) NOT NULL DEFAULT '0.00' COMMENT '余额付款收入',
|
|
|
+ `cash` decimal(9,2) NOT NULL DEFAULT '0.00' COMMENT '现金收入',
|
|
|
+ `merchantId` int(11) NOT NULL DEFAULT '0' COMMENT '商家id',
|
|
|
+`shopId` int not null default 0 comment '门店id,0表示商家所有门店',
|
|
|
+ `addTime` int(10) UNSIGNED NOT NULL DEFAULT '0' COMMENT '添加时间'
|
|
|
+) COMMENT='按用途统计每月收入';
|
|
|
+
|
|
|
2019.12.15 16:30 shish 数据要重新更新过去!!!!!
|
|
|
ALTER TABLE xhOrder ADD `reachDate` DATE DEFAULT NULL COMMENT '客户要求送到的日期' AFTER `sendDistance`;
|
|
|
ALTER TABLE xhOrder DROP COLUMN `reachTime`;
|
|
|
ALTER TABLE xhOrder MODIFY `reachPeriod` TINYINT NOT NULL DEFAULT 0 COMMENT '客户要求送到的时段:0上午1下午2晚上';
|
|
|
ALTER TABLE xhOrder ADD sendTip DECIMAL(9,2) NOT NULL DEFAULT '0.00' COMMENT '运费里增加的小费' AFTER `sendCost`;
|
|
|
+ALTER TABLE xhOrder MODIFY currentFlow TINYINT NOT NULL DEFAULT 0 COMMENT '完成流程数;当前流程数';
|
|
|
|
|
|
2019.12.15 11:57 刮刮卡表名变更
|
|
|
RENAME TABLE xhGuaGua TO xhGgk;
|
|
|
@@ -450,7 +483,6 @@ auth VARCHAR(1000) NOT NULL DEFAULT '' COMMENT '权限',
|
|
|
`addTime` INT(11) NOT NULL DEFAULT '0' COMMENT '添加时间'
|
|
|
)COMMENT='员工角色权限'
|
|
|
|
|
|
-
|
|
|
shish 2019.11.23
|
|
|
!!jwt的过期时间要设置得短点
|
|
|
|