OrderExpress.php 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. <?php
  2. /**
  3. * 厦门云联储网络科技有限公司
  4. * https://www.baokuaiyun.com
  5. * Copyright (c) 2023 爆块云 All rights reserved.
  6. */
  7. namespace app\models;
  8. use Yii;
  9. /**
  10. * This is the model class for table "{{%order_express}}".
  11. *
  12. * @property integer $id
  13. * @property integer $store_id
  14. * @property integer $order_id
  15. * @property integer $order_type
  16. * @property string $express_code
  17. * @property string $EBusinessID
  18. * @property string $order
  19. * @property string $printTeplate
  20. * @property integer $is_delete
  21. * @property integer $supplier_id
  22. */
  23. class OrderExpress extends \yii\db\ActiveRecord
  24. {
  25. /**
  26. * @inheritdoc
  27. */
  28. public static function tableName()
  29. {
  30. return '{{%order_express}}';
  31. }
  32. /**
  33. * @inheritdoc
  34. */
  35. public function rules()
  36. {
  37. return [
  38. [['store_id', 'order_id', 'order_type', 'is_delete'], 'integer'],
  39. [['order', 'printTeplate'], 'string'],
  40. [['express_code', 'EBusinessID'], 'string', 'max' => 255],
  41. ];
  42. }
  43. /**
  44. * @inheritdoc
  45. */
  46. public function attributeLabels()
  47. {
  48. return [
  49. 'id' => 'ID',
  50. 'store_id' => 'Store ID',
  51. 'order_id' => 'Order ID',
  52. 'order_type' => '订单类型 0--商城订单 1--秒杀订单 2--拼团订单 ',
  53. 'express_code' => '快递公司编码',
  54. 'EBusinessID' => '快递鸟id',
  55. 'order' => 'Order',
  56. 'printTeplate' => 'Print Teplate',
  57. 'is_delete' => 'Is Delete',
  58. ];
  59. }
  60. }