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.
62 lines
1.6 KiB
62 lines
1.6 KiB
<?php |
|
|
|
namespace app\models; |
|
|
|
use Yii; |
|
|
|
/** |
|
* This is the model class for table "{{%mch_cash}}". |
|
* |
|
* @property integer $id |
|
* @property integer $store_id |
|
* @property integer $mch_id |
|
* @property string $money |
|
* @property string $order_no |
|
* @property integer $status |
|
* @property integer $addtime |
|
* @property integer $type |
|
* @property string $type_data |
|
* @property integer $virtual_type |
|
*/ |
|
class MchCash extends \yii\db\ActiveRecord |
|
{ |
|
/** |
|
* @inheritdoc |
|
*/ |
|
public static function tableName() |
|
{ |
|
return '{{%mch_cash}}'; |
|
} |
|
|
|
/** |
|
* @inheritdoc |
|
*/ |
|
public function rules() |
|
{ |
|
return [ |
|
[['store_id', 'mch_id', 'money', 'order_no', 'addtime'], 'required'], |
|
[['store_id', 'mch_id', 'status', 'addtime', 'type', 'virtual_type'], 'integer'], |
|
[['money'], 'number'], |
|
[['order_no', 'type_data'], 'string', 'max' => 255], |
|
]; |
|
} |
|
|
|
/** |
|
* @inheritdoc |
|
*/ |
|
public function attributeLabels() |
|
{ |
|
return [ |
|
'id' => 'ID', |
|
'store_id' => 'Store ID', |
|
'mch_id' => 'Mch ID', |
|
'money' => 'Money', |
|
'order_no' => 'Order No', |
|
'status' => '提现状态:0=待处理,1=已转账,2=已拒绝', |
|
'addtime' => 'Addtime', |
|
'type' => '提现类型 0--微信自动打款 1--微信线下打款 2--支付宝线下打款 3--银行卡线下打款 4--充值到余额', |
|
'type_data' => '不同提现类型,提交的数据', |
|
'virtual_type' => '实际上打款方式', |
|
]; |
|
} |
|
}
|
|
|