| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798 |
- <?php
- /**
- * 厦门云联储网络科技有限公司
- * https://www.baokuaiyun.com
- * Copyright (c) 2023 爆块云 All rights reserved.
- */
- namespace app\models;
- use Yii;
- use yii\db\ActiveRecord;
- use yii\behaviors\TimestampBehavior;
- /**
- * This is the model class for table "{{%cash}}".
- *
- * @property int $id
- * @property int $saas_user_id 用户id
- * @property int $store_id 商城id
- * @property float $price 提现金额
- * @property int $status 申请状态 0--申请中 1--确认申请 2--已打款 3--驳回 5--余额通过
- * @property int $is_delete 是否删除
- * @property int|null $created_at 添加時間
- * @property int $pay_time 付款
- * @property int $type 支付方式 0--微信支付 1--支付宝 2--银行卡 3--余额
- * @property string|null $mobile 支付宝账号
- * @property string|null $name 支付宝姓名
- * @property string|null $bank_name 开户行名称
- * @property int|null $pay_type 打款方式 0--之前未统计的 1--微信自动打款 2--手动打款
- * @property string|null $order_no 微信自动打款订单号
- * @property float $service_charge 提现手续费
- * @property int|null $updated_at 更新时间
- */
- class LocalDeliveryCash extends \yii\db\ActiveRecord
- {
- /**
- * {@inheritdoc}
- */
- public static function tableName()
- {
- return '{{%local_delivery_cash}}';
- }
- const CASH_STATUS_WAIT = 0;
- const CASH_STATUS_PASS = 1;
- const CASH_STATUS_FAIL = 2;
- const CASH_STATUS_REMIT = 3;
- /**
- * 是否删除
- */
- const DELETE_STATUS_TRUE = 1;
- /**
- * 是否删除
- */
- const DELETE_STATUS_FALSE = 0;
- /**
- * {@inheritdoc}
- */
- public function rules()
- {
- return [
- [['store_id'], 'required'],
- [['saas_user_id', 'store_id', 'status', 'is_delete', 'created_at', 'pay_time', 'type', 'pay_type', 'updated_at', 'apply_time'], 'integer'],
- [['price', 'service_charge'], 'number'],
- [['mobile', 'name', 'order_no'], 'string', 'max' => 255],
- [['bank_name'], 'string', 'max' => 30],
- [['saas_user_id', 'pay_time', 'reject_reason'], 'safe'],
- ];
- }
- /**
- * {@inheritdoc}
- */
- public function attributeLabels()
- {
- return [
- 'id' => 'ID',
- 'saas_user_id' => '商盟用户id',
- 'store_id' => '商城id',
- 'price' => '提现金额',
- 'status' => '状态,0:待审核,1:审核通过,2:审核失败',
- 'is_delete' => '是否删除',
- 'created_at' => '添加時間',
- 'pay_time' => '付款',
- 'type' => '支付方式 0--微信支付 1--支付宝 2--银行卡 3--余额',
- 'mobile' => '支付宝账号',
- 'name' => '支付宝姓名',
- 'bank_name' => '开户行名称',
- 'pay_type' => '打款方式 0--之前未统计的 1--微信自动打款 2--手动打款',
- 'order_no' => '微信自动打款订单号',
- 'service_charge' => '提现手续费',
- 'updated_at' => '更新时间',
- 'apply_time' => '审核时间',
- ];
- }
- }
|