更新开票申请
This commit is contained in:
parent
8f8be7f559
commit
653ea397cf
|
@ -104,3 +104,16 @@ function isAuthExpense($uid)
|
|||
$count = Db::name('DataAuth')->where($map)->count();
|
||||
return $count;
|
||||
}
|
||||
|
||||
//是否是发票管理员,count>1即有权限
|
||||
function isAuthInvoice($uid)
|
||||
{
|
||||
if($uid == 1){
|
||||
return 1;
|
||||
}
|
||||
$map = [];
|
||||
$map[] = ['name', '=', 'finance_admin'];
|
||||
$map[] = ['', 'exp', Db::raw("FIND_IN_SET('{$uid}',conf_1)")];
|
||||
$count = Db::name('DataAuth')->where($map)->count();
|
||||
return $count;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue