sugangqiang 1 年之前
父節點
當前提交
cc152652e9
共有 2 個文件被更改,包括 3 次插入2 次删除
  1. 1 1
      app/admin/controller/Index.php
  2. 2 1
      app/common/api/VerifyApi.php

+ 1 - 1
app/admin/controller/Index.php

@@ -43,8 +43,8 @@ class Index extends AdminController {
         }
         if (in_array("talentInfo_depCheck", $codes)) {
             $where = [];
-            $where[] = ["e.type", "=", $userType];
             if (\app\common\api\VerifyApi::chkUserInSuperDeptUsers()) {
+                $where[] = ["e.type", "=", $userType];
                 $where[] = ["ti.checkState", "=", TalentState::FST_VERIFY_PASS];
                 $where[] = ["ti.pass_dept_check", "=", 0];
                 $count = Talent::alias("ti")

+ 2 - 1
app/common/api/VerifyApi.php

@@ -383,7 +383,6 @@ class VerifyApi {
         $offset = $params["offset"] ?: 0;
         $limit = $params["limit"] ?: 10;
         $type = session("user")["type"];
-        $where[] = ["e.type", "=", $type];
         if ($params["name"]) {
             $where[] = ["ti.name", "like", "%{$params["name"]}%"];
         }
@@ -470,11 +469,13 @@ class VerifyApi {
         $process = $params["process"];
         if ($process == 4) {
             if (self::chkUserInSuperDeptUsers()) {
+                $where[] = ["e.type", "=", $type];
                 return self::getFullDeptList($params, $where);
             } else {
                 return self::getDeptList($params, $where);
             }
         }
+        $where[] = ["e.type", "=", $type];
         if ($process == 5) {
             $whereRaw = sprintf("(tl.state in (-14,14,15,16)) or (tl.state=12 and ti.pass_dept_check=0) or (tl.state=10 and ti.pass_dept_check=1) or (tl.state=10 and (tc.companyIds is null or tc.companyIds = ''))");
             switch ($params["checkState"]) {