| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596 |
- <?php
- /**
- * 厦门云联储网络科技有限公司
- * https://www.baokuaiyun.com
- * Copyright (c) 2023 爆块云 All rights reserved.
- */
- namespace app\models;
- use Yii;
- use yii\db\ActiveRecord;
- /**
- * This is the model class for table "{{%purchase_re_order}}".
- *
- * @property integer $id
- * @property integer $store_id
- * @property string $order_no
- * @property integer $saas_id
- * @property integer $user_id
- * @property string $pay_price
- * @property string $send_price
- * @property integer $pay_type
- * @property integer $is_pay
- * @property integer $pay_time
- * @property string $transaction_id
- * @property integer $is_delete
- * @property integer $created_at
- * @property integer $is_platform
- * @property string $err
- */
- class RechargeReOrder extends ActiveRecord
- {
- /**
- * 是否删除
- */
- CONST IS_DELETE = 1;
- CONST NOT_DELETE = 0;
- public static $valid_delete_arr = [
- self::IS_DELETE,
- self::NOT_DELETE
- ];
- /**
- * 是否支付
- */
- CONST IS_PAY = 1;
- CONST NOT_PAY = 0;
- public static $valid_pay_arr = [
- self::IS_PAY,
- self::NOT_PAY
- ];
- /**
- * @inheritdoc
- */
- public static function tableName()
- {
- return '{{%recharge_re_order}}';
- }
- /**
- * @inheritdoc
- */
- public function rules()
- {
- return [
- [['store_id', 'user_id', 'saas_id', 'pay_type', 'is_pay', 'pay_time', 'is_delete', 'created_at', 'is_platform'], 'integer'],
- [['pay_price', 'send_price'], 'number'],
- [['order_no', 'transaction_id', 'err'], 'string', 'max' => 255],
- ];
- }
- /**
- * @inheritdoc
- */
- public function attributeLabels()
- {
- return [
- 'id' => 'ID',
- 'store_id' => 'Store ID',
- 'order_no' => '订单号',
- 'saas_id' => 'saas_id',
- 'user_id' => '用户',
- 'pay_price' => '支付金额',
- 'send_price' => '赠送金额',
- 'pay_type' => '支付方式 1--微信支付',
- 'is_pay' => '是否支付 0--未支付 1--支付',
- 'pay_time' => '支付时间',
- 'transaction_id' => '微信单号',
- 'is_delete' => 'Is Delete',
- 'created_at' => '添加时间',
- 'err' => '错误信息',
- ];
- }
- }
|