You've already forked qlg.tsgz.moe
Init Repo
This commit is contained in:
19
hyhproject/common/model/Banks.php
Executable file
19
hyhproject/common/model/Banks.php
Executable file
@ -0,0 +1,19 @@
|
||||
<?php
|
||||
namespace wstmart\common\model;
|
||||
/**
|
||||
* ============================================================================
|
||||
* 银行业务处理
|
||||
*/
|
||||
class Banks extends Base{
|
||||
/**
|
||||
* 列表
|
||||
*/
|
||||
public function listQuery(){
|
||||
$data = cache('WST_BANKS');
|
||||
if(!$data){
|
||||
$data = $this->where('dataFlag',1)->field('bankId,bankName')->select();
|
||||
cache('WST_BANKS',$data,31536000);
|
||||
}
|
||||
return $data;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user