diff --git a/app/api/controller/OaApprove.php b/app/api/controller/OaApprove.php index 45fe23d..42fbf89 100644 --- a/app/api/controller/OaApprove.php +++ b/app/api/controller/OaApprove.php @@ -43,7 +43,8 @@ class OaApprove extends ApiController $loginAdmin = Db::name('Admin')->where(['id' => $uid])->find(); $did = $loginAdmin['did']; // 如果是人事部 - if ($did == 2) { + $departmentId = Db::name('Department')->where(['title' => '人事部'])->value('id'); + if ($did == $departmentId) { $list[] = [ "id" => 9999, "type" => 4,