瀏覽代碼

复审列表提速

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

+ 3 - 3
app/common/api/VerifyApi.php

@@ -339,13 +339,13 @@ class VerifyApi {
             return self::getDeptList($params, $where);
         }
         if ($process == 5) {
-            $whereRaw = sprintf("(ti.checkState in (14,15,16)) or (ti.checkState=12 and ti.pass_dept_check=0) or (ti.checkState=10 and ti.pass_dept_check=1) or (ti.checkState=10 and (tc.companyIds is null or tc.companyIds = ''))");
+            $whereRaw = sprintf("(tl.state in (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"]) {
                 case 1:
-                    $where[] = ["ti.checkState", "in", [TalentState::FST_VERIFY_PASS, TalentState::DEPT_VERIFY_PASS]];
+                    $where[] = ["tl.state", "in", [TalentState::FST_VERIFY_PASS, TalentState::DEPT_VERIFY_PASS]];
                     break;
                 case -1:
-                    $where[] = ["ti.checkState", "=", TalentState::REVERIFY_FAIL];
+                    $where[] = ["tl.state", "=", TalentState::REVERIFY_FAIL];
                     break;
             }
             $count = Talent::alias("ti")