This commit is contained in:
wangyuting2
2023-04-27 11:07:11 +08:00
parent e8aa79c9c5
commit f2cbc8dac1
+5
View File
@@ -159,6 +159,11 @@ class report extends control
$user = $this->user->getByID($account);
$dept = $user->dept;
}
else
{
$dept = $this->app->user->dept;
}
$userPairs = $this->dept->getDeptUserPairs($dept);
$accounts = !empty($user) ? array($user->account) : array_keys($userPairs);
$users = array('' => $this->lang->report->annualData->allUser) + $userPairs;