数据表:ims_yz_order(订单--订单主表)。
| 字段 | 类型 | 默认值 | 约束 | 说明 |
|---|---|---|---|---|
id | integer | - | 非空、自增 | |
uniacid | integer | 0 | 非空 | 公众号 |
uid | integer | 0 | 非空 | 会员ID |
order_sn | string(23) | - | 非空 | 订单编号 |
price | decimal | 0.00 | 非空 | 实付金额 |
goods_price | decimal | 0.00 | 非空 | 商品原价 |
goods_total | integer | 1 | 非空 | 商品总数量 |
status | boolean | 0 | 非空 | 状态 |
create_time | integer | 0 | 非空 | 创建时间 |
is_deleted | boolean | 0 | 非空 | |
is_member_deleted | boolean | 0 | 非空 | 用户是否删除 |
finish_time | integer | 0 | 非空 | 完成时间 |
pay_time | integer | 0 | 非空 | 支付时间 |
send_time | integer | 0 | 非空 | 发货时间 |
cancel_time | integer | 0 | 非空 | 关闭时间 |
created_at | integer | 0 | 非空 | |
updated_at | integer | 0 | 非空 | |
deleted_at | integer | 0 | 非空 | |
cancel_pay_time | integer | 0 | 非空 | 取消支付时间 |
cancel_send_time | integer | 0 | 非空 | 取消发货时间 |
dispatch_type_id | integer | 0 | 非空 | 配送方式ID |
dispatch_price | decimal | 0.00 | 非空 | 运费金额 |
discount_price | decimal | 0.00 | 非空 | 优惠金额 |
pay_type_id | integer | 0 | 非空 | 支付类型ID |
order_goods_price | decimal | 0.00 | 非空 | 订单商品金额 |
deduction_price | decimal | 0.00 | 非空 | 抵扣金额 |
refund_id | integer | 0 | 非空 | 售后记录ID |
is_plugin | integer | 0 | 非空 | 是否供应商订单 |
change_price | decimal | 0.00 | 非空 | 改价金额 |
change_dispatch_price | decimal | 0.00 | 非空 | 改价运费金额 |
comment_status | boolean | 0 | 非空 | 评论状态 |
order_pay_id | string(23) | - | 非空 | 支付流程记录ID |
is_virtual | boolean | 0 | 非空 | 虚拟订单0否1是 |
plugin_id | integer | 0 | 非空 | 插件订单标识 |
mark | string(100) | - | - | 柜子标识 |
is_pending | boolean | 0 | 非空 | 是否锁定1是0否 |
note | text(65535) | - | - | 用户备注 |
cost_amount | decimal | 0.00 | 非空 | 商品原价 |
shop_name | string(255) | - | - | 店铺名称 |
no_refund | boolean | 0 | 非空 | 支持退款0是1否 |
need_address | boolean | 0 | 非空 | 是否需要填写收货地址 0:是1:否 |
invoice_type | integer | - | - | 发票类型 0 电子发票 1 纸质发票 2专用发票/电子专票 |
rise_type | integer | - | - | 发票抬头 0单位 1 个人 |
collect_name | string(255) | - | - | 抬头或单位名称 |
company_number | string(255) | - | - | 单位识别码 |
invoice | string(255) | - | - | 发票图片链接 |
auto_receipt | boolean | 0 | 非空 | 是否自动收货 0:是1:否 |
fee_amount | decimal | 0.00 | 非空 | 手续费 |
service_fee_amount | decimal | 0.00 | 非空 | 订单服务费金额 |
is_all_send_goods | integer | 0 | - | 0 正常全部发货 1部分发货 2多包裹全部发货 |
close_reason | text(65535) | - | - | 关闭原因 |
camilo_resources_coupon_type | integer | 1 | 非空 | 1直充2卡券 |
camilo_resources_recharge_number | string(255) | - | - | 直充:充值账号 |
vip_order_goods_price | decimal | - | - | 会员价金额 |
initial_freight | decimal | 0.00 | - | 订单初始运费金额 |
tax_fee | decimal | 0.00 | 非空 | 税费优惠,负数优惠,正数加钱 |
created_type | integer | 0 | 非空 | 订单创建类型 0线上订单 1线下订单(pos收银机) |
