更新到账管理
This commit is contained in:
parent
2c6877f293
commit
921491df94
|
@ -117,3 +117,16 @@ function isAuthInvoice($uid)
|
||||||
$count = Db::name('DataAuth')->where($map)->count();
|
$count = Db::name('DataAuth')->where($map)->count();
|
||||||
return $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;
|
||||||
|
}
|
|
@ -46,7 +46,7 @@ class Income extends BaseController
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//查看
|
//新增
|
||||||
public function add()
|
public function add()
|
||||||
{
|
{
|
||||||
$param = get_params();
|
$param = get_params();
|
||||||
|
|
Loading…
Reference in New Issue