You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
85 lines
1.6 KiB
85 lines
1.6 KiB
<?php
|
|
|
|
|
|
namespace App\Model;
|
|
|
|
|
|
class OrderMain extends Model
|
|
{
|
|
// 线上订单,外卖
|
|
const ORDER_TYPE_ONLINE = 1;
|
|
// 线下订单,当面付
|
|
const ORDER_TYPE_OFFLINE = 4;
|
|
|
|
// 订单状态
|
|
// 待付款
|
|
const ORDER_STATE_UNPAY = 1;
|
|
// 待接单
|
|
const ORDER_STATE_UNTAKE = 2;
|
|
// 待送达
|
|
const ORDER_STATE_DELIVERY = 3;
|
|
// 已完成
|
|
const ORDER_STATE_COMPLETE = 4;
|
|
// 已评价
|
|
const ORDER_STATE_EVALUATED = 5;
|
|
// 已取消
|
|
const ORDER_STATE_CANCEL = 6;
|
|
// 已拒单
|
|
const ORDER_STATE_REFUSE = 7;
|
|
// 退款中
|
|
const ORDER_STATE_REFUNDING = 8;
|
|
// 已退款
|
|
const ORDER_STATE_REFUNDED = 9;
|
|
// 拒绝退款
|
|
const ORDER_STATE_UNREFUND = 10;
|
|
|
|
// 订单支付方式
|
|
// 微信支付
|
|
const ORDER_PAY_WX = 1;
|
|
// 余额支付
|
|
const ORDER_PAY_BALANCE = 2;
|
|
|
|
protected $table = 'ims_cjdc_order_main';
|
|
|
|
public $timestamps = false;
|
|
|
|
protected $fillable = [
|
|
'order_num',
|
|
'delivery_no',
|
|
'dada_fee',
|
|
'market_id',
|
|
'user_id',
|
|
'money',
|
|
'box_money',
|
|
'ps_money',
|
|
'mj_money',
|
|
'xyh_money',
|
|
'yhq_money',
|
|
'yhq_money2',
|
|
'zk_money',
|
|
'tel',
|
|
'name',
|
|
'address',
|
|
'area',
|
|
'lat',
|
|
'lng',
|
|
'note',
|
|
'type',
|
|
'form_id',
|
|
'form_id2',
|
|
'delivery_time',
|
|
'pay_type',
|
|
'order_type',
|
|
'code',
|
|
'coupon_id',
|
|
'coupon_id2',
|
|
'uniacid',
|
|
'state',
|
|
'time',
|
|
'time_add',
|
|
'pay_time',
|
|
'jj_note',
|
|
'global_order_id',
|
|
];
|
|
|
|
}
|