# 訂單詳情
~~~[api]
get:https://xcx.dangerouschain.com/addons/zjhj_mall/core/web/index.php?store_id=1&r=api/car/order-show
*int:id=1#說明文字
<<<
success
<<<
error
~~~
# 訂單詳情(本地)
~~~[api]
get:http://weilian.bendi.com/addons/zjhj_mall/core/web/index.php?store_id=1&r=api/car/order-show
*int:id=1#說明文字
<<<
success
<<<
error
~~~
```[sql]
CREATE TABLE `hjmall_car_order` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`store_id` int(11) NOT NULL DEFAULT '0',
`user_id` int(11) NOT NULL DEFAULT '0' COMMENT '用戶id',
`order_no` varchar(255) NOT NULL DEFAULT '' COMMENT '訂單號',
`total_price` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '訂單總費用(包含運費)',
`pay_price` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '實際支付總費用(含運費)',
`express_price` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '運費',
`name` varchar(255) DEFAULT NULL COMMENT '收貨人姓名',
`mobile` varchar(255) DEFAULT NULL COMMENT '收貨人手機',
`address` varchar(1000) DEFAULT NULL COMMENT '收貨地址',
`remark` varchar(1000) NOT NULL DEFAULT '' COMMENT '訂單備注',
`is_pay` smallint(6) NOT NULL DEFAULT '0' COMMENT '支付狀態:0=未支付,1=已支付',
`pay_type` smallint(6) NOT NULL DEFAULT '0' COMMENT '支付方式:1=微信支付',
`pay_time` int(11) NOT NULL DEFAULT '0' COMMENT '支付時間',
`is_send` smallint(1) NOT NULL DEFAULT '0' COMMENT '發貨狀態:0=未發貨,1=已發貨',
`send_time` int(11) NOT NULL DEFAULT '0' COMMENT '發貨時間',
`express` varchar(255) NOT NULL DEFAULT '' COMMENT '物流公司',
`express_no` varchar(255) NOT NULL DEFAULT '',
`is_confirm` smallint(1) NOT NULL DEFAULT '0' COMMENT '確認收貨狀態:0=未確認,1=已確認收貨',
`confirm_time` int(11) NOT NULL DEFAULT '0' COMMENT '確認收貨時間',
`is_comment` smallint(1) NOT NULL DEFAULT '0' COMMENT '是否已評價:0=未評價,1=已評價',
`apply_delete` smallint(1) NOT NULL DEFAULT '0' COMMENT '是否申請取消訂單:0=否,1=申請取消訂單',
`addtime` int(11) NOT NULL DEFAULT '0',
`is_delete` smallint(1) NOT NULL DEFAULT '0',
`is_price` smallint(1) NOT NULL DEFAULT '0' COMMENT '是否發放傭金',
`parent_id` int(11) NOT NULL DEFAULT '0' COMMENT '用戶上級ID',
`first_price` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '一級傭金',
`second_price` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '二級傭金',
`third_price` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '三級傭金',
`coupon_sub_price` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '優惠券抵消金額',
`content` text,
`is_offline` int(11) NOT NULL DEFAULT '0' COMMENT '是否到店自提 0--否 1--是',
`clerk_id` int(11) DEFAULT NULL COMMENT '核銷員user_id',
`address_data` text COMMENT '收貨地址信息,json格式',
`is_cancel` smallint(1) NOT NULL DEFAULT '0' COMMENT '是否取消',
`offline_qrcode` longtext COMMENT '核銷碼',
`before_update_price` decimal(10,2) DEFAULT NULL COMMENT '修改前的價格',
`shop_id` int(11) DEFAULT NULL COMMENT '自提門店ID',
`discount` decimal(11,2) DEFAULT NULL COMMENT '會員折扣',
`user_coupon_id` int(11) DEFAULT NULL COMMENT '使用的優惠券ID',
`integral` longtext COMMENT '積分使用',
`give_integral` smallint(1) unsigned NOT NULL DEFAULT '0' COMMENT '是否發放積分【1=> 已發放 , 0=> 未發放】',
`parent_id_1` int(11) DEFAULT '0' COMMENT '用戶上二級ID',
`parent_id_2` int(11) DEFAULT '0' COMMENT '用戶上三級ID',
`is_sale` int(11) DEFAULT '0' COMMENT '是否超過售后時間',
`words` longtext COMMENT '商家留言',
`version` varchar(255) DEFAULT NULL COMMENT '版本',
`express_price_1` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '減免的運費',
`is_recycle` smallint(1) NOT NULL DEFAULT '0',
`rebate` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '自購返利',
`before_update_express` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '價格修改前的運費',
`seller_comments` text COMMENT '商家備注',
`mch_id` int(11) NOT NULL DEFAULT '0' COMMENT '入駐商戶id',
`order_union_id` int(11) NOT NULL DEFAULT '0' COMMENT '合并訂單的id',
`is_transfer` smallint(1) NOT NULL DEFAULT '0' COMMENT '是否已轉入商戶賬戶:0=否,1=是',
`type` int(11) NOT NULL DEFAULT '0' COMMENT '0:普通訂單 1大轉盤訂單',
`share_price` decimal(11,2) NOT NULL DEFAULT '0.00' COMMENT '發放傭金的金額',
`is_show` smallint(1) NOT NULL DEFAULT '1' COMMENT '是否顯示 0--不顯示 1--顯示',
PRIMARY KEY (`id`),
KEY `addtime` (`addtime`),
KEY `user_id` (`user_id`),
KEY `order_no` (`order_no`(250)),
KEY `is_pay` (`is_pay`),
KEY `is_send` (`is_send`),
KEY `is_confirm` (`is_confirm`),
KEY `is_comment` (`is_comment`),
KEY `is_price` (`is_price`),
KEY `is_offline` (`is_offline`),
KEY `is_cancel` (`is_cancel`),
KEY `is_sale` (`is_sale`),
KEY `is_recycle` (`is_recycle`),
KEY `is_transfer` (`is_transfer`)
) ENGINE=MyISAM AUTO_INCREMENT=13 DEFAULT CHARSET=utf8mb4 COMMENT='訂單表';
```