更新到账管理

This commit is contained in:
yaooo 2023-11-04 11:35:54 +08:00
parent 2c6877f293
commit 921491df94
2 changed files with 14 additions and 1 deletions

View File

@ -117,3 +117,16 @@ function isAuthInvoice($uid)
$count = Db::name('DataAuth')->where($map)->count();
return $count;
}
//是否是到账管理员,count>1即有权限
function isAuthIncome($uid)
{
if($uid == 1){
return 1;
}
$map = [];
$map[] = ['name', '=', 'finance_admin'];
$map[] = ['', 'exp', Db::raw("FIND_IN_SET('{$uid}',conf_2)")];
$count = Db::name('DataAuth')->where($map)->count();
return $count;
}

View File

@ -46,7 +46,7 @@ class Income extends BaseController
}
}
//查看
//新增
public function add()
{
$param = get_params();