Java單商戶2.2版本移動(dòng)端用戶下單報(bào)錯(cuò):服務(wù)器數(shù)據(jù)異常,請(qǐng)聯(lián)系管理員
查看front的日志
解決辦法
刪除現(xiàn)有的“eb_store_order”表,執(zhí)行下面的語(yǔ)句重新創(chuàng)建表
CREATE TABLE `eb_store_order` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT '訂單ID',
`order_id` varchar(32) NOT NULL COMMENT '訂單號(hào)',
`uid` int(11) unsigned NOT NULL COMMENT '用戶id',
`real_name` varchar(32) NOT NULL COMMENT '用戶姓名',
`user_phone` varchar(18) NOT NULL COMMENT '用戶電話',
`user_address` varchar(100) NOT NULL COMMENT '詳細(xì)地址',
`freight_price` decimal(8,2) NOT NULL DEFAULT '0.00' COMMENT '運(yùn)費(fèi)金額',
`total_num` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '訂單商品總數(shù)',
`total_price` decimal(8,2) unsigned NOT NULL DEFAULT '0.00' COMMENT '訂單總價(jià)',
`total_postage` decimal(8,2) unsigned NOT NULL DEFAULT '0.00' COMMENT '郵費(fèi)',
`pay_price` decimal(8,2) unsigned NOT NULL DEFAULT '0.00' COMMENT '實(shí)際支付金額',
`pay_postage` decimal(8,2) unsigned NOT NULL DEFAULT '0.00' COMMENT '支付郵費(fèi)',
`deduction_price` decimal(8,2) unsigned NOT NULL DEFAULT '0.00' COMMENT '抵扣金額',
`coupon_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '優(yōu)惠券id',
`coupon_price` decimal(8,2) unsigned NOT NULL DEFAULT '0.00' COMMENT '優(yōu)惠券金額',
`paid` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '支付狀態(tài)',
`pay_time` timestamp NULL DEFAULT NULL COMMENT '支付時(shí)間',
`pay_type` varchar(32) NOT NULL DEFAULT '' COMMENT '支付方式',
`create_time` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '創(chuàng)建時(shí)間',
`status` tinyint(1) NOT NULL DEFAULT '0' COMMENT '訂單狀態(tài)(0:待發(fā)貨;1:待收貨;2:已收貨,待評(píng)價(jià);3:已完成;)',
`refund_status` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '0 未退款 1 申請(qǐng)中 2 已退款 3 退款中',
`refund_reason_wap_img` varchar(5000) DEFAULT NULL COMMENT '退款圖片',
`refund_reason_wap_explain` varchar(255) DEFAULT NULL COMMENT '退款用戶說(shuō)明',
`refund_reason_wap` varchar(255) DEFAULT NULL COMMENT '前臺(tái)退款原因',
`refund_reason` varchar(255) DEFAULT NULL COMMENT '不退款的理由',
`refund_reason_time` timestamp NULL DEFAULT NULL COMMENT '退款時(shí)間',
`refund_price` decimal(8,2) unsigned NOT NULL DEFAULT '0.00' COMMENT '退款金額',
`delivery_name` varchar(64) DEFAULT NULL COMMENT '快遞名稱/送貨人姓名',
`delivery_type` varchar(32) DEFAULT NULL COMMENT '發(fā)貨類型 express 發(fā)貨,send 送貨,fictitious虛擬',
`delivery_id` varchar(64) DEFAULT NULL COMMENT '快遞單號(hào)/手機(jī)號(hào)',
`gain_integral` int(11) DEFAULT '0' COMMENT '消費(fèi)賺取積分',
`use_integral` int(11) DEFAULT '0' COMMENT '使用積分',
`back_integral` int(11) DEFAULT '0' COMMENT '給用戶退了多少積分',
`mark` varchar(512) NOT NULL COMMENT '備注',
`is_del` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '是否刪除',
`remark` varchar(512) DEFAULT NULL COMMENT '管理員備注',
`mer_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '商戶ID',
`is_mer_check` tinyint(3) unsigned NOT NULL DEFAULT '0',
`combination_id` int(11) unsigned DEFAULT '0' COMMENT '拼團(tuán)商品id0一般商品',
`pink_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '拼團(tuán)id 0沒(méi)有拼團(tuán)',
`cost` decimal(8,2) unsigned NOT NULL COMMENT '成本價(jià)',
`seckill_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '秒殺商品ID',
`bargain_id` int(11) unsigned DEFAULT '0' COMMENT '砍價(jià)id',
`verify_code` varchar(12) NOT NULL DEFAULT '' COMMENT '核銷碼',
`store_id` int(11) NOT NULL DEFAULT '0' COMMENT '門店id',
`shipping_type` tinyint(1) NOT NULL DEFAULT '1' COMMENT '配送方式 1=快遞 ,2=門店自提',
`clerk_id` int(11) NOT NULL DEFAULT '0' COMMENT '店員id/核銷員id',
`is_channel` tinyint(1) unsigned DEFAULT '0' COMMENT '支付渠道(0微信公眾號(hào)1微信小程序2余額)',
`is_remind` tinyint(1) unsigned DEFAULT '0' COMMENT '消息提醒',
`is_system_del` tinyint(1) DEFAULT '0' COMMENT '后臺(tái)是否刪除',
`update_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新時(shí)間',
`delivery_code` varchar(50) DEFAULT NULL COMMENT '快遞公司簡(jiǎn)稱',
`bargain_user_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '用戶拼團(tuán)活動(dòng)id 0沒(méi)有',
`type` int(3) NOT NULL DEFAULT '0' COMMENT '訂單類型:0-普通訂單,1-視頻號(hào)訂單',
`pro_total_price` decimal(8,2) unsigned NOT NULL DEFAULT '0.00' COMMENT '商品總價(jià)',
`before_pay_price` decimal(8,2) unsigned NOT NULL DEFAULT '0.00' COMMENT '改價(jià)前支付金額',
`is_alter_price` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否改價(jià),0-否,1-是',
`out_trade_no` varchar(32) DEFAULT NULL COMMENT '商戶系統(tǒng)內(nèi)部的訂單號(hào),32個(gè)字符內(nèi)、可包含字母, 其他說(shuō)明見(jiàn)商戶訂單號(hào)',
`shipment_pic` varchar(255) DEFAULT NULL COMMENT '商家寄件單號(hào)圖片',
`shipment_task_id` varchar(64) DEFAULT NULL COMMENT '商家寄件訂單任務(wù)id',
`shipment_order_id` varchar(64) DEFAULT NULL COMMENT '商家寄件訂單單號(hào)',
`shipment_num` varchar(64) DEFAULT NULL COMMENT '商家寄件快遞單號(hào)',
`express_record_type` int(11) DEFAULT NULL COMMENT '發(fā)貨記錄類型,1快遞、2送貨, 3虛擬發(fā)貨',
PRIMARY KEY (`id`) USING BTREE,
UNIQUE KEY `order_id_2` (`order_id`,`uid`) USING BTREE,
KEY `uid` (`uid`) USING BTREE,
KEY `add_time` (`create_time`) USING BTREE,
KEY `pay_price` (`pay_price`) USING BTREE,
KEY `paid` (`paid`) USING BTREE,
KEY `pay_time` (`pay_time`) USING BTREE,
KEY `pay_type` (`pay_type`) USING BTREE,
KEY `status` (`status`) USING BTREE,
KEY `is_del` (`is_del`) USING BTREE,
KEY `coupon_id` (`coupon_id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=206 DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC COMMENT='訂單表';