You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

71 lines
1.9 KiB

<?php
namespace backend\models\ars;
use Yii;
use yii\behaviors\TimestampBehavior;
/**
* This is the model class for table "ats_refund_log".
*
* @property int $id
* @property int $order_id 订单id
* @property string $wx_refund_id 微信退款单号
* @property int $reason 理由
* @property int $order_amount 订单金额
* @property int $refund_amount 退款金额
* @property int $refunded_amount 已退款金额
* @property int $type 类型
* @property int $status 状态
* @property string $refund_account 退款账户
* @property int $operator_id 操作者
* @property int $applyed_at 申请时间
* @property int $confirmed_at 确认时间
* @property int $finished_at 完成时间
*/
class RefundLog extends \yii\db\ActiveRecord
{
/**
* {@inheritdoc}
*/
public static function tableName()
{
return 'ats_refund_log';
}
/**
* {@inheritdoc}
*/
public function rules()
{
return [
[['order_id', 'reason', 'order_amount', 'refund_amount', 'refunded_amount', 'type', 'status', 'operator_id', 'applyed_at', 'confirmed_at', 'finished_at'], 'integer'],
[['wx_refund_id', 'refund_account'], 'string', 'max' => 64],
];
}
/**
* {@inheritdoc}
*/
public function attributeLabels()
{
return [
'id' => 'id',
'order_id' => '订单id',
'wx_refund_id' => '微信退款单号',
'reason' => '理由',
'order_amount' => '订单金额',
'refund_amount' => '退款金额',
'refunded_amount' => '已退款金额',
'type' => '类型',
'status' => '状态',
'refund_account' => '退款账户',
'operator_id' => '操作者',
'applyed_at' => '申请时间',
'confirmed_at' => '确认时间',
'finished_at' => '完成时间',
];
}
}