| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110 |
- <?php
- /**
- * 厦门云联储网络科技有限公司
- * https://www.baokuaiyun.com
- * Copyright (c) 2023 爆块云 All rights reserved.
- */
- namespace app\models;
- use yii\behaviors\TimestampBehavior;
- /**
- * Class SaasProfitCash
- * @package app\models
- * @property integer $id
- * @property string $mobile
- * @property integer $user_id
- * @property integer $amount
- * @property integer $order_no
- * @property integer $status
- * @property string $refuse_reason
- * @property integer $is_delete
- * @property integer $is_pay
- * @property integer $pay_time
- * @property integer $created_at
- * @property integer $updated_at
- * @property string $account_name
- * @property string $account
- * @property string $bank
- * @property integer $type
- * @property double $service_money
- * @property double $before_price
- * @property double $after_price
- */
- class SaasProfitCash extends \yii\db\ActiveRecord
- {
- const CASH_STATUS_WAIT = 0;
- const CASH_STATUS_PASS = 1;
- const CASH_STATUS_FAIL = 2;
- /**
- * 是否删除
- */
- const DELETE_STATUS_TRUE = 1;
- /**
- * 是否删除
- */
- const DELETE_STATUS_FALSE = 0;
- /**
- * @inheritdoc
- */
- public static function tableName()
- {
- return '{{%saas_profit_cash}}';
- }
- public function behaviors()
- {
- return [
- [
- // 自动更新创建和更新时间
- 'class' => TimestampBehavior::class,
- 'value' => time()
- ]
- ];
- }
- /**
- * @inheritdoc
- */
- public function rules()
- {
- return [
- [['mobile', 'refuse_reason', 'order_no', 'account_name', 'account', 'bank'], 'string'],
- [['mobile', 'refuse_reason', 'order_no'], 'trim'],
- [['id', 'user_id', 'status', 'is_delete', 'created_at', 'updated_at', 'is_pay', 'pay_time', 'type'], 'integer'],
- [['amount', 'service_money', 'before_price', 'after_price'], 'number'],
- [['created_at', 'update_at'], 'safe']
- ];
- }
- /**
- * @inheritdoc
- */
- public function attributeLabels()
- {
- return [
- 'id' => 'ID',
- 'user_id' => 'user id',
- 'mobile' => '手机号',
- 'amount' => '金额',
- 'order_no' => '订单号',
- 'status' => '状态,0:待审核,1:审核通过,2:审核失败',
- 'refuse_reason' => '拒绝原因',
- 'is_pay' => '支付状态',
- 'pay_time' => '支付时间',
- 'created_at' => '创建时间',
- 'updated_at' => '更新时间',
- 'is_delete' => '是否已删除',
- 'type' => "提现类型",
- 'account_name' => '账户名',
- 'account' => '账户',
- 'bank' => '银行'
- ];
- }
- }
|