Files
pgserver3.0/pgserver/application/model/BankAccount.php
annnj-company 130c1026c4 first commit
2026-04-17 18:29:53 +08:00

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;
}
}