23 lines
683 B
PHP
23 lines
683 B
PHP
<?php
|
|
|
|
namespace app\model;
|
|
|
|
use think\Db;
|
|
|
|
class BankAccount extends Base
|
|
{
|
|
//获取银行账户列表
|
|
public function getBankAccount($where, $paginate) {
|
|
$info = self::where($where)
|
|
->field('id,name,update_time,type,bank_account,bank_card,bank,status')
|
|
->order('update_time', 'desc')
|
|
->paginate($paginate)
|
|
->toArray();
|
|
foreach($info['data'] as &$v){
|
|
$v['update_time'] = date('Y-m-d H:i:s', $v['update_time']);
|
|
$v['type_str'] = getDictionaryName('ACCOUNT_PURPOSE', $v['type']);
|
|
$v['status_str'] = $v['status'] == 1 ? '正常启用' : '异常停用';
|
|
}
|
|
return $info;
|
|
}
|
|
} |