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.

84 lines
1.6 KiB

5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
  1. <?php
  2. namespace App\Model;
  3. class OrderMain extends Model
  4. {
  5. // 线上订单,外卖
  6. const ORDER_TYPE_ONLINE = 1;
  7. // 线下订单,当面付
  8. const ORDER_TYPE_OFFLINE = 4;
  9. // 订单状态
  10. // 待付款
  11. const ORDER_STATE_UNPAY = 1;
  12. // 待接单
  13. const ORDER_STATE_UNTAKE = 2;
  14. // 待送达
  15. const ORDER_STATE_DELIVERY = 3;
  16. // 已完成
  17. const ORDER_STATE_COMPLETE = 4;
  18. // 已评价
  19. const ORDER_STATE_EVALUATED = 5;
  20. // 已取消
  21. const ORDER_STATE_CANCEL = 6;
  22. // 已拒单
  23. const ORDER_STATE_REFUSE = 7;
  24. // 退款中
  25. const ORDER_STATE_REFUNDING = 8;
  26. // 已退款
  27. const ORDER_STATE_REFUNDED = 9;
  28. // 拒绝退款
  29. const ORDER_STATE_UNREFUND = 10;
  30. // 订单支付方式
  31. // 微信支付
  32. const ORDER_PAY_WX = 1;
  33. // 余额支付
  34. const ORDER_PAY_BALANCE = 2;
  35. protected $table = 'ims_cjdc_order_main';
  36. public $timestamps = false;
  37. protected $fillable = [
  38. 'order_num',
  39. 'delivery_no',
  40. 'dada_fee',
  41. 'market_id',
  42. 'user_id',
  43. 'money',
  44. 'box_money',
  45. 'ps_money',
  46. 'mj_money',
  47. 'xyh_money',
  48. 'yhq_money',
  49. 'yhq_money2',
  50. 'zk_money',
  51. 'tel',
  52. 'name',
  53. 'address',
  54. 'area',
  55. 'lat',
  56. 'lng',
  57. 'note',
  58. 'type',
  59. 'form_id',
  60. 'form_id2',
  61. 'delivery_time',
  62. 'pay_type',
  63. 'order_type',
  64. 'code',
  65. 'coupon_id',
  66. 'coupon_id2',
  67. 'uniacid',
  68. 'state',
  69. 'time',
  70. 'time_add',
  71. 'pay_time',
  72. 'jj_note',
  73. 'global_order_id',
  74. ];
  75. }