LocalDeliveryCash.php 3.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. <?php
  2. /**
  3. * 厦门云联储网络科技有限公司
  4. * https://www.baokuaiyun.com
  5. * Copyright (c) 2023 爆块云 All rights reserved.
  6. */
  7. namespace app\models;
  8. use Yii;
  9. use yii\db\ActiveRecord;
  10. use yii\behaviors\TimestampBehavior;
  11. /**
  12. * This is the model class for table "{{%cash}}".
  13. *
  14. * @property int $id
  15. * @property int $saas_user_id 用户id
  16. * @property int $store_id 商城id
  17. * @property float $price 提现金额
  18. * @property int $status 申请状态 0--申请中 1--确认申请 2--已打款 3--驳回 5--余额通过
  19. * @property int $is_delete 是否删除
  20. * @property int|null $created_at 添加時間
  21. * @property int $pay_time 付款
  22. * @property int $type 支付方式 0--微信支付 1--支付宝 2--银行卡 3--余额
  23. * @property string|null $mobile 支付宝账号
  24. * @property string|null $name 支付宝姓名
  25. * @property string|null $bank_name 开户行名称
  26. * @property int|null $pay_type 打款方式 0--之前未统计的 1--微信自动打款 2--手动打款
  27. * @property string|null $order_no 微信自动打款订单号
  28. * @property float $service_charge 提现手续费
  29. * @property int|null $updated_at 更新时间
  30. */
  31. class LocalDeliveryCash extends \yii\db\ActiveRecord
  32. {
  33. /**
  34. * {@inheritdoc}
  35. */
  36. public static function tableName()
  37. {
  38. return '{{%local_delivery_cash}}';
  39. }
  40. const CASH_STATUS_WAIT = 0;
  41. const CASH_STATUS_PASS = 1;
  42. const CASH_STATUS_FAIL = 2;
  43. const CASH_STATUS_REMIT = 3;
  44. /**
  45. * 是否删除
  46. */
  47. const DELETE_STATUS_TRUE = 1;
  48. /**
  49. * 是否删除
  50. */
  51. const DELETE_STATUS_FALSE = 0;
  52. /**
  53. * {@inheritdoc}
  54. */
  55. public function rules()
  56. {
  57. return [
  58. [['store_id'], 'required'],
  59. [['saas_user_id', 'store_id', 'status', 'is_delete', 'created_at', 'pay_time', 'type', 'pay_type', 'updated_at', 'apply_time'], 'integer'],
  60. [['price', 'service_charge'], 'number'],
  61. [['mobile', 'name', 'order_no'], 'string', 'max' => 255],
  62. [['bank_name'], 'string', 'max' => 30],
  63. [['saas_user_id', 'pay_time', 'reject_reason'], 'safe'],
  64. ];
  65. }
  66. /**
  67. * {@inheritdoc}
  68. */
  69. public function attributeLabels()
  70. {
  71. return [
  72. 'id' => 'ID',
  73. 'saas_user_id' => '商盟用户id',
  74. 'store_id' => '商城id',
  75. 'price' => '提现金额',
  76. 'status' => '状态,0:待审核,1:审核通过,2:审核失败',
  77. 'is_delete' => '是否删除',
  78. 'created_at' => '添加時間',
  79. 'pay_time' => '付款',
  80. 'type' => '支付方式 0--微信支付 1--支付宝 2--银行卡 3--余额',
  81. 'mobile' => '支付宝账号',
  82. 'name' => '支付宝姓名',
  83. 'bank_name' => '开户行名称',
  84. 'pay_type' => '打款方式 0--之前未统计的 1--微信自动打款 2--手动打款',
  85. 'order_no' => '微信自动打款订单号',
  86. 'service_charge' => '提现手续费',
  87. 'updated_at' => '更新时间',
  88. 'apply_time' => '审核时间',
  89. ];
  90. }
  91. }