WithdrawDeposit.php 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. <?php
  2. namespace common\models\member;
  3. use common\traits\HasOneMember;
  4. use common\traits\HasOneMerchant;
  5. /**
  6. * This is the model class for table "{{%member_withdraw_deposit}}".
  7. *
  8. * @property int $id
  9. * @property int|null $merchant_id 商户id
  10. * @property int|null $member_id 会员id
  11. * @property int|null $member_type 1:会员;2:后台管理员;3:商家管理员
  12. * @property string|null $withdraw_no 提现流水号
  13. * @property string|null $batch_no 批量转账单号
  14. * @property string $realname 真实姓名
  15. * @property string $mobile 手机号
  16. * @property string|null $account_number 银行账号
  17. * @property int|null $account_type 账户类型
  18. * @property string|null $account_type_name 账户类型名称
  19. * @property string|null $bank_name 银行信息
  20. * @property string|null $bank_branch 银行支行信息
  21. * @property string|null $identity_card 身份证
  22. * @property string|null $identity_card_front 身份证正面
  23. * @property string|null $identity_card_back 身份证背面
  24. * @property float|null $cash 提现金额
  25. * @property string|null $memo 备注
  26. * @property int|null $transfer_type 转账方式
  27. * @property string|null $transfer_name 转账银行名称
  28. * @property float|null $transfer_money 转账金额
  29. * @property string|null $transfer_remark 转账备注
  30. * @property string|null $transfer_no 转账流水号
  31. * @property string|null $transfer_account_no 转账银行账号
  32. * @property string|null $transfer_result 转账结果
  33. * @property int|null $transfer_status 转账状态
  34. * @property int|null $transfer_time 转账申请时间
  35. * @property int|null $payment_time 到账时间
  36. * @property int|null $audit_time 审核时间
  37. * @property float|null $service_charge 手续费率金额
  38. * @property float|null $service_charge_rate 手续费率
  39. * @property float|null $service_charge_single 手续费单笔
  40. * @property float|null $service_charge_total 总手续费
  41. * @property string|null $refusal_cause 拒绝原因
  42. * @property string|null $addon_name 插件名称
  43. * @property int|null $is_addon 是否插件
  44. * @property int|null $status 状态[-1:删除;0:禁用;1启用]
  45. * @property int|null $created_at 创建时间
  46. * @property int|null $updated_at 修改时间
  47. */
  48. class WithdrawDeposit extends \common\models\base\BaseModel
  49. {
  50. use HasOneMember, HasOneMerchant;
  51. /**
  52. * {@inheritdoc}
  53. */
  54. public static function tableName()
  55. {
  56. return '{{%member_withdraw_deposit}}';
  57. }
  58. /**
  59. * {@inheritdoc}
  60. */
  61. public function rules()
  62. {
  63. return [
  64. [['merchant_id', 'member_id', 'member_type', 'account_type', 'transfer_type', 'transfer_status', 'transfer_time', 'payment_time', 'audit_time', 'is_addon', 'status', 'created_at', 'updated_at'], 'integer'],
  65. [['cash', 'transfer_money', 'service_charge', 'service_charge_rate', 'service_charge_single', 'service_charge_total'], 'number', 'min' => 0],
  66. [['withdraw_no', 'batch_no', 'bank_name', 'transfer_no', 'transfer_account_no', 'addon_name'], 'string', 'max' => 100],
  67. [['realname', 'account_number', 'transfer_name'], 'string', 'max' => 50],
  68. [['mobile', 'identity_card'], 'string', 'max' => 20],
  69. [['account_type_name'], 'string', 'max' => 30],
  70. [['bank_branch', 'identity_card_front', 'identity_card_back', 'memo', 'transfer_remark', 'transfer_result', 'refusal_cause'], 'string', 'max' => 200],
  71. ];
  72. }
  73. /**
  74. * {@inheritdoc}
  75. */
  76. public function attributeLabels()
  77. {
  78. return [
  79. 'id' => 'ID',
  80. 'merchant_id' => '商户id',
  81. 'member_id' => '会员id',
  82. 'member_type' => '1:会员;2:后台管理员;3:商家管理员',
  83. 'batch_no' => '批量转账单号',
  84. 'withdraw_no' => '提现流水号',
  85. 'realname' => '真实姓名',
  86. 'mobile' => '手机号',
  87. 'account_number' => '银行账号',
  88. 'account_type' => '账户类型',
  89. 'account_type_name' => '账户类型名称',
  90. 'bank_name' => '银行信息',
  91. 'bank_branch' => '银行支行信息',
  92. 'identity_card' => '身份证',
  93. 'identity_card_front' => '身份证正面',
  94. 'identity_card_back' => '身份证背面',
  95. 'cash' => '提现金额',
  96. 'memo' => '备注',
  97. 'transfer_type' => '转账方式',
  98. 'transfer_name' => '转账银行名称',
  99. 'transfer_money' => '转账金额',
  100. 'transfer_remark' => '转账备注',
  101. 'transfer_no' => '转账流水号',
  102. 'transfer_account_no' => '转账银行账号',
  103. 'transfer_result' => '转账结果',
  104. 'transfer_status' => '转账状态',
  105. 'transfer_time' => '转账提交时间',
  106. 'payment_time' => '到账时间',
  107. 'audit_time' => '审核时间',
  108. 'service_charge' => '手续费率金额',
  109. 'service_charge_rate' => '手续费率',
  110. 'service_charge_single' => '手续费单笔',
  111. 'service_charge_total' => '总手续费',
  112. 'addon_name' => '插件名称',
  113. 'is_addon' => '是否插件',
  114. 'status' => '状态[-1:删除;0:禁用;1启用]',
  115. 'refusal_cause' => '拒绝原因',
  116. 'created_at' => '创建时间',
  117. 'updated_at' => '修改时间',
  118. ];
  119. }
  120. }
粤ICP备19079148号