StoreCloudBalanceOrder.php 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  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. use yii\db\ActiveRecord;
  10. /**
  11. * This is the model class for table "{{%store_cloud_balance_order}}".
  12. *
  13. * @property integer $id
  14. * @property integer $store_id
  15. * @property integer $cloud_user_id
  16. * @property integer $cloud_store_id
  17. * @property string $order_no
  18. * @property integer $saas_id
  19. * @property integer $user_id
  20. * @property string $pay_price
  21. * @property string $send_price
  22. * @property integer $pay_type
  23. * @property integer $is_pay
  24. * @property integer $pay_time
  25. * @property string $transaction_id
  26. * @property integer $is_delete
  27. * @property integer $created_at
  28. * @property integer $is_platform
  29. * @property string $err
  30. * @property string $huifu_id
  31. * @property string $trans_type
  32. * @property string $hf_seq_id
  33. * @property string $fee_amount
  34. * @property string $out_trans_id
  35. * @property string $party_order_id
  36. * @property string $req_seq_id
  37. */
  38. class StoreCloudBalanceOrder extends ActiveRecord
  39. {
  40. /**
  41. * 是否删除
  42. */
  43. CONST IS_DELETE = 1;
  44. CONST NOT_DELETE = 0;
  45. public static $valid_delete_arr = [
  46. self::IS_DELETE,
  47. self::NOT_DELETE
  48. ];
  49. /**
  50. * 是否支付
  51. */
  52. CONST IS_PAY = 1;
  53. CONST NOT_PAY = 0;
  54. public static $valid_pay_arr = [
  55. self::IS_PAY,
  56. self::NOT_PAY
  57. ];
  58. /**
  59. * @inheritdoc
  60. */
  61. public static function tableName()
  62. {
  63. return '{{%store_cloud_balance_order}}';
  64. }
  65. /**
  66. * @inheritdoc
  67. */
  68. public function rules()
  69. {
  70. return [
  71. [['store_id', 'user_id', 'saas_id', 'pay_type', 'is_pay', 'pay_time', 'is_delete', 'created_at', 'is_platform', 'cloud_user_id', 'cloud_store_id'], 'integer'],
  72. [['pay_price', 'send_price'], 'number'],
  73. [['order_no', 'transaction_id', 'err'], 'string', 'max' => 255],
  74. ];
  75. }
  76. /**
  77. * @inheritdoc
  78. */
  79. public function attributeLabels()
  80. {
  81. return [
  82. 'id' => 'ID',
  83. 'store_id' => 'Store ID',
  84. 'order_no' => '订单号',
  85. 'saas_id' => 'saas_id',
  86. 'user_id' => '用户',
  87. 'pay_price' => '支付金额',
  88. 'send_price' => '赠送金额',
  89. 'pay_type' => '支付方式 1--微信支付',
  90. 'is_pay' => '是否支付 0--未支付 1--支付',
  91. 'pay_time' => '支付时间',
  92. 'transaction_id' => '微信单号',
  93. 'is_delete' => 'Is Delete',
  94. 'created_at' => '添加时间',
  95. 'err' => '错误信息',
  96. ];
  97. }
  98. }