commit | author | age
|
2207d6
|
1 |
<?php |
W |
2 |
|
|
3 |
namespace app\models; |
|
4 |
|
|
5 |
use Yii; |
|
6 |
|
|
7 |
/** |
|
8 |
* This is the model class for table "{{%payment_refund}}". |
|
9 |
* |
|
10 |
* @property int $id |
|
11 |
* @property int $mall_id |
|
12 |
* @property int $user_id |
|
13 |
* @property string $order_no 退款单号 |
|
14 |
* @property string $amount 退款金额 |
|
15 |
* @property int $is_pay 支付状态 0--未支付|1--已支付 |
|
16 |
* @property int $pay_type 支付方式:1=微信支付,2=货到付款,3=余额支付,4=支付宝支付 |
|
17 |
* @property string $title |
|
18 |
* @property string $created_at |
|
19 |
* @property string $updated_at |
|
20 |
* @property string $out_trade_no 支付单号 |
|
21 |
*/ |
|
22 |
class PaymentRefund extends ModelActiveRecord |
|
23 |
{ |
|
24 |
/** |
|
25 |
* {@inheritdoc} |
|
26 |
*/ |
|
27 |
public static function tableName() |
|
28 |
{ |
|
29 |
return '{{%payment_refund}}'; |
|
30 |
} |
|
31 |
|
|
32 |
/** |
|
33 |
* {@inheritdoc} |
|
34 |
*/ |
|
35 |
public function rules() |
|
36 |
{ |
|
37 |
return [ |
|
38 |
[['mall_id', 'user_id'], 'required'], |
|
39 |
[['mall_id', 'user_id', 'is_pay', 'pay_type'], 'integer'], |
|
40 |
[['amount'], 'number'], |
|
41 |
[['created_at', 'updated_at'], 'safe'], |
|
42 |
[['order_no', 'out_trade_no'], 'string', 'max' => 255], |
|
43 |
[['title'], 'string', 'max' => 128], |
|
44 |
]; |
|
45 |
} |
|
46 |
|
|
47 |
/** |
|
48 |
* {@inheritdoc} |
|
49 |
*/ |
|
50 |
public function attributeLabels() |
|
51 |
{ |
|
52 |
return [ |
|
53 |
'id' => 'ID', |
|
54 |
'mall_id' => 'Mall ID', |
|
55 |
'user_id' => 'User ID', |
|
56 |
'order_no' => '退款单号', |
|
57 |
'amount' => '退款金额', |
|
58 |
'is_pay' => '支付状态 0--未支付|1--已支付', |
|
59 |
'pay_type' => '支付方式:1=微信支付,2=货到付款,3=余额支付,4=支付宝支付', |
|
60 |
'title' => 'Title', |
|
61 |
'created_at' => 'Created At', |
|
62 |
'updated_at' => 'Updated At', |
|
63 |
'out_trade_no' => '支付单号', |
|
64 |
]; |
|
65 |
} |
|
66 |
} |