Java单商户2.2版本移动端用户下单报错:服务器数据异常,请联系管理员
查看front的日志
解决办法
删除现有的“eb_store_order”表,执行下面的语句重新创建表
CREATE TABLE `eb_store_order` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT '订单ID',
`order_id` varchar(32) NOT NULL COMMENT '订单号',
`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 '详细地址',
`freight_price` decimal(8,2) NOT NULL DEFAULT '0.00' COMMENT '运费金额',
`total_num` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '订单商品总数',
`total_price` decimal(8,2) unsigned NOT NULL DEFAULT '0.00' COMMENT '订单总价',
`total_postage` decimal(8,2) unsigned NOT NULL DEFAULT '0.00' COMMENT '邮费',
`pay_price` decimal(8,2) unsigned NOT NULL DEFAULT '0.00' COMMENT '实际支付金额',
`pay_postage` decimal(8,2) unsigned NOT NULL DEFAULT '0.00' COMMENT '支付邮费',
`deduction_price` decimal(8,2) unsigned NOT NULL DEFAULT '0.00' COMMENT '抵扣金额',
`coupon_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '优惠券id',
`coupon_price` decimal(8,2) unsigned NOT NULL DEFAULT '0.00' COMMENT '优惠券金额',
`paid` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '支付状态',
`pay_time` timestamp NULL DEFAULT NULL COMMENT '支付时间',
`pay_type` varchar(32) NOT NULL DEFAULT '' COMMENT '支付方式',
`create_time` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
`status` tinyint(1) NOT NULL DEFAULT '0' COMMENT '订单状态(0:待发货;1:待收货;2:已收货,待评价;3:已完成;)',
`refund_status` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '0 未退款 1 申请中 2 已退款 3 退款中',
`refund_reason_wap_img` varchar(5000) DEFAULT NULL COMMENT '退款图片',
`refund_reason_wap_explain` varchar(255) DEFAULT NULL COMMENT '退款用户说明',
`refund_reason_wap` varchar(255) DEFAULT NULL COMMENT '前台退款原因',
`refund_reason` varchar(255) DEFAULT NULL COMMENT '不退款的理由',
`refund_reason_time` timestamp NULL DEFAULT NULL COMMENT '退款时间',
`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 '发货类型 express 发货,send 送货,fictitious虚拟',
`delivery_id` varchar(64) DEFAULT NULL COMMENT '快递单号/手机号',
`gain_integral` int(11) DEFAULT '0' COMMENT '消费赚取积分',
`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 '拼团商品id0一般商品',
`pink_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '拼团id 0没有拼团',
`cost` decimal(8,2) unsigned NOT NULL COMMENT '成本价',
`seckill_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '秒杀商品ID',
`bargain_id` int(11) unsigned DEFAULT '0' COMMENT '砍价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微信公众号1微信小程序2余额)',
`is_remind` tinyint(1) unsigned DEFAULT '0' COMMENT '消息提醒',
`is_system_del` tinyint(1) DEFAULT '0' COMMENT '后台是否删除',
`update_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
`delivery_code` varchar(50) DEFAULT NULL COMMENT '快递公司简称',
`bargain_user_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '用户拼团活动id 0没有',
`type` int(3) NOT NULL DEFAULT '0' COMMENT '订单类型:0-普通订单,1-视频号订单',
`pro_total_price` decimal(8,2) unsigned NOT NULL DEFAULT '0.00' COMMENT '商品总价',
`before_pay_price` decimal(8,2) unsigned NOT NULL DEFAULT '0.00' COMMENT '改价前支付金额',
`is_alter_price` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否改价,0-否,1-是',
`out_trade_no` varchar(32) DEFAULT NULL COMMENT '商户系统内部的订单号,32个字符内、可包含字母, 其他说明见商户订单号',
`shipment_pic` varchar(255) DEFAULT NULL COMMENT '商家寄件单号图片',
`shipment_task_id` varchar(64) DEFAULT NULL COMMENT '商家寄件订单任务id',
`shipment_order_id` varchar(64) DEFAULT NULL COMMENT '商家寄件订单单号',
`shipment_num` varchar(64) DEFAULT NULL COMMENT '商家寄件快递单号',
`express_record_type` int(11) DEFAULT NULL COMMENT '发货记录类型,1快递、2送货, 3虚拟发货',
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='订单表';