浏览代码

修复人才库速度

sugangqiang 2 年之前
父节点
当前提交
6b7477ef3d
共有 1 个文件被更改,包括 5 次插入5 次删除
  1. 5 5
      app/common/api/VerifyApi.php

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

@@ -553,7 +553,7 @@ class VerifyApi {
                     }
                     }
                     break;
                     break;
                 case 7:
                 case 7:
-                    $where[] = ["ti.checkState", "=", TalentState::CERTIFICATED];
+                    $where[] = ["tl.state", "=", TalentState::CERTIFICATED];
                     break;
                     break;
             }
             }
             $count = Talent::alias("ti")
             $count = Talent::alias("ti")
@@ -876,7 +876,7 @@ class VerifyApi {
                     }
                     }
                     break;
                     break;
                 case 7:
                 case 7:
-                    $where[] = ["ti.checkState", "=", TalentState::CERTIFICATED];
+                    $where[] = ["tl.state", "=", TalentState::CERTIFICATED];
                     break;
                     break;
             }
             }
         } else {
         } else {
@@ -1077,11 +1077,11 @@ class VerifyApi {
                         if ($log["active"] == 1) {
                         if ($log["active"] == 1) {
                             if ($log["new_state"] == 9) {
                             if ($log["new_state"] == 9) {
                                 $verifyDepts[$k] .= "(审核驳回)";
                                 $verifyDepts[$k] .= "(审核驳回)";
-                                $item["deptReject"]++;
+                                $item["deptReject"] ++;
                             }
                             }
                             if ($log["new_state"] == 12) {
                             if ($log["new_state"] == 12) {
                                 $verifyDepts[$k] .= "(审核通过)";
                                 $verifyDepts[$k] .= "(审核通过)";
-                                $item["deptPass"]++;
+                                $item["deptPass"] ++;
                             }
                             }
                             $deptDescriptions[] = sprintf("%s:%s", $company["name"], $log["description"]);
                             $deptDescriptions[] = sprintf("%s:%s", $company["name"], $log["description"]);
                         } else {
                         } else {
@@ -1090,7 +1090,7 @@ class VerifyApi {
                                 continue;
                                 continue;
                             }
                             }
                             $verifyDepts[$k] .= "(待审核)";
                             $verifyDepts[$k] .= "(待审核)";
-                            $item["deptWait"]++;
+                            $item["deptWait"] ++;
                         }
                         }
                     }
                     }
                     $item["verifyDepts"] = implode(chr(10), $verifyDepts);
                     $item["verifyDepts"] = implode(chr(10), $verifyDepts);