提交 252c2036 authored 作者: fengzy's avatar fengzy

'commonmMOdel新增借款单查询方法'

上级 80d041e4
...@@ -6,11 +6,19 @@ class flow_fund_transferClassModel extends flowModel ...@@ -6,11 +6,19 @@ class flow_fund_transferClassModel extends flowModel
public function flowrsreplace($rs) public function flowrsreplace($rs)
{ {
$option = m('option')->getall('pid = 1571','num,name,value');
foreach ($option as $key => $value) {
$allcheckid[]=$value['value'];
}
$uid=$this->adminid;
if(!in_array($uid,$allcheckid)){
if($rs['account']=='广厦网络资金账户'){ if($rs['account']=='广厦网络资金账户'){
$rs['account_balance']='无权限查看'; $rs['account_balance']='无权限查看';
} }
}
if($rs['business_type']){ if($rs['business_type']){
$data=$this->db->getone('oa_option',"num='".$rs['business_type']."' and pid=1350"); $data=$this->db->getone('oa_option',"num='".$rs['business_type']."' and pid=1350");
$rs['business_type']=$data['name']; $rs['business_type']=$data['name'];
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论