first commit
This commit is contained in:
23
pgserver/application/model/BankAccount.php
Normal file
23
pgserver/application/model/BankAccount.php
Normal file
@@ -0,0 +1,23 @@
|
||||
<?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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user