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

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

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