AddonsWangDianTongLogisticsCompany.php 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. <?php
  2. namespace addons\WangDianTong\common\models;
  3. use Yii;
  4. /**
  5. * This is the model class for table "qimall_addons_wangdiantong_logistics_company".
  6. *
  7. * @property int $id 订单id
  8. * @property int $status 状态[-1:删除;0:禁用;1启用]
  9. * @property int $created_at 创建时间
  10. * @property int $updated_at 更新时间
  11. * @property int $erp_type ERP物流公司ID
  12. * @property string $erp_name ERP物流公司名称
  13. * @property int $express_id 当前系统快递主键
  14. * @property string $express_name 当前系统物流公司名称
  15. * @property string $express_code 当前系统物流公司编码
  16. */
  17. class AddonsWangDianTongLogisticsCompany extends \common\models\base\BaseActiveRecord
  18. {
  19. /**
  20. * {@inheritdoc}
  21. */
  22. public static function tableName()
  23. {
  24. return 'qimall_addons_wangdiantong_logistics_company';
  25. }
  26. /**
  27. * {@inheritdoc}
  28. */
  29. public function rules()
  30. {
  31. return [
  32. [['status', 'created_at', 'updated_at', 'erp_type', 'express_id'], 'integer'],
  33. [['erp_name', 'express_name', 'express_code'], 'string', 'max' => 50],
  34. ];
  35. }
  36. /**
  37. * {@inheritdoc}
  38. */
  39. public function attributeLabels()
  40. {
  41. return [
  42. 'id' => 'ID',
  43. 'status' => 'Status',
  44. 'created_at' => 'Created At',
  45. 'updated_at' => 'Updated At',
  46. 'erp_type' => 'Erp Type',
  47. 'erp_name' => 'Erp Name',
  48. 'express_id' => 'Express ID',
  49. 'express_name' => 'Express Name',
  50. 'express_code' => 'Express Code',
  51. ];
  52. }
  53. }