更新开票申请

This commit is contained in:
yaooo 2023-11-03 17:43:28 +08:00
parent 8f8be7f559
commit 653ea397cf
2 changed files with 17 additions and 4 deletions

View File

@ -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;
}