From c15f192361f7978187758bbcb494b91522b345ae Mon Sep 17 00:00:00 2001 From: yaooo <272523191@qq.com> Date: Tue, 7 Nov 2023 11:40:44 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E5=BA=94=E7=94=A8=E6=A8=A1?= =?UTF-8?q?=E5=9D=97=E6=9D=83=E9=99=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/api/controller/OaApprove.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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,