| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182 |
- <?php
- /**
- * 厦门云联储网络科技有限公司
- * https://www.baokuaiyun.com
- * Copyright (c) 2023 爆块云 All rights reserved.
- */
- namespace app\models;
- use Yii;
- use yii\behaviors\TimestampBehavior;
- /**
- * This is the model class for table "{{%re_order_refund_money}}".
- *
- * @property integer $id
- * @property integer $store_id
- * @property integer $user_id
- * @property integer $order_id
- * @property string $order_refund_no
- * @property string $refund_price
- * @property string $desc
- * @property integer $status
- * @property string $status_desc
- * @property integer $created_at
- * @property integer $is_delete
- */
- class ReOrderRefundMoney extends \yii\db\ActiveRecord
- {
- const AUDIT_STATUS_AUDITING = 0;//审核中
- const AUDIT_STATUS_OK = 1;//已同意
- const AUDIT_STATUS_REJECT = 2;//拒绝
- /**
- * @inheritdoc
- */
- public static function tableName()
- {
- return '{{%re_order_refund_money}}';
- }
- public function behaviors()
- {
- return [
- [
- // 自动更新创建和更新时间
- 'class' => TimestampBehavior::class,
- 'value' => time()
- ]
- ];
- }
- /**
- * @inheritdoc
- */
- public function attributeLabels()
- {
- return [
- 'id' => 'ID',
- 'store_id' => 'Store ID',
- 'user_id' => 'User ID',
- 'order_id' => 'Order ID',
- 'order_refund_no' => '退款单号',
- 'refund_price' => '退款金额',
- 'sub_balance' => '扣减余额',
- 'sub_integral' => '扣减积分',
- 'desc_user' => '退款说明(用户)',
- 'desc_admin' => '退款说明(管理员)',
- 'status' => '退款状态:0失败,1成功',
- 'status_desc' => '退款失败原因',
- 'audit_status' => '申请状态,0审核中,1已同意,2已拒绝',
- 'created_at' => 'Addtime',
- 'is_delete' => 'Is Delete',
- ];
- }
- public function beforeSave($insert)
- {
- $this->desc_user = \yii\helpers\Html::encode($this->desc_user);
- $this->desc_admin = \yii\helpers\Html::encode($this->desc_admin);
- return parent::beforeSave($insert);
- }
- }
|