1
0

WishOrder.php 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * User: Administrator
  5. * Date: 2015/7/23
  6. * Time: 14:28
  7. */
  8. namespace myapp\code\core\Api\V1\models\wish;
  9. use yii\db\ActiveRecord;
  10. class WishOrder extends ActiveRecord
  11. {
  12. public static function getDb(){
  13. return \Yii::$app->wishDb;
  14. }
  15. public static function tableName()
  16. {
  17. return 'wish_order';
  18. }
  19. public function fields(){
  20. return [
  21. 'id',
  22. 'platform_order_id',
  23. 'platform_order_states',
  24. 'wish_name',
  25. 'transaction_id',
  26. 'sku',
  27. 'qty',
  28. 'adapter',
  29. 'spu',
  30. 'spu_atrribute',
  31. 'order_total',
  32. 'spu_price',
  33. 'spu_shipping',
  34. 'spu_name',
  35. 'sku_china_name',
  36. 'spu_image_url',
  37. 'last_updated',
  38. 'days_to_fulfill',
  39. 'hours_to_fulfill',
  40. 'order_create_time',
  41. 'customer_name',
  42. 'customer_country',
  43. 'customer_province',
  44. 'customer_city',
  45. 'customer_street_address1',
  46. 'customer_street_address2',
  47. 'customer_zipcode',
  48. 'customer_phone',
  49. 'customer_note',
  50. 'shipping_provider',
  51. 'tracking_number',
  52. 'warehouse_id',
  53. 'real_ship_cost',
  54. 'real_ship_cost_currency',
  55. ];
  56. }
  57. }
  58. ?>