提交 40e97987 authored 作者: fengzy's avatar fengzy

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

上级 8f0670ac
......@@ -9,13 +9,13 @@ class flow_fund_transferClassModel extends flowModel
$uid=$this->adminid;
$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');
if(!in_array($fund_detail,$rs)){
$rs['account_balance']='无权限查看';
}else{
$rs['account_balance']=$rs['account_balance'];
foreach ($fund_detail as $key => $value){
$allaccount[]=$value['account'];
}
if($rs['business_type']){
$data=$this->db->getone('oa_option',"num='".$rs['business_type']."' and pid=1350");
$rs['business_type']=$data['name'];
......@@ -37,6 +37,14 @@ class flow_fund_transferClassModel extends flowModel
}
continue;
break;
case 'account':
if(!in_array($v,$allaccount)){
$rs['account_balance']='无权限查看';
}else{
$rs['account_balance']=$rs['account_balance'];
}
continue;
break;
}
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论