PurchaseMoneyOrder.php 2.5 KB

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