erp/app/common/model/merchant/MerchantBank.php

30 lines
646 B
PHP

<?php
namespace app\common\model\merchant;
use app\common\model\BaseModel;
use think\model\concern\SoftDelete;
/**
* MerchantBank模型
* Class MerchantBank
* @package app\common\model\merchant
*/
class MerchantBank extends BaseModel
{
use SoftDelete;
protected $name = 'merchant_bank';
protected $deleteTime = 'delete_time';
public function getIsCheckTextAttr($value,$data){
$arr = [0=>'待审核', 1=>'审核通过', 2=>'审核未通过'];
return $arr[$data['is_check']];
}
public function getIsOwnTextAttr($value,$data){
$arr = [0=>'个人账户', 1=>'对公账户'];
return $arr[$data['is_own']];
}
}