提交 b60d9dcb authored 作者: fengzy's avatar fengzy

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

上级 40e97987
...@@ -5,17 +5,15 @@ class flow_account_detailClassModel extends flowModel ...@@ -5,17 +5,15 @@ class flow_account_detailClassModel 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; $uid=$this->adminid;
if(!in_array($uid,$allcheckid)){ $sql="account in ( select a.name from oa_c_fund_account as a where uid like concat({$uid},',%') or uid like concat('%,',{$uid}) or uid like concat('%,',{$uid},',%') )";
if($rs['account']=='广厦网络资金账户'){ $fund_detail = m('c_fund_detail')->getall($sql,'account');
$rs['account_balance']='无权限查看'; foreach ($fund_detail as $key => $value){
} $allaccount[]=$value['account'];
} }
foreach ($rs as $k => &$v) { foreach ($rs as $k => &$v) {
...@@ -43,6 +41,14 @@ class flow_account_detailClassModel extends flowModel ...@@ -43,6 +41,14 @@ class flow_account_detailClassModel extends flowModel
} }
break;
case 'account':
if(!in_array($v,$allaccount)){
$rs['account_balance']='无权限查看';
}else{
$rs['account_balance']=$rs['account_balance'];
}
break; break;
} }
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论