Browse Source

修复人才库速度

sugangqiang 2 năm trước cách đây
mục cha
commit
6b7477ef3d
1 tập tin đã thay đổi với 5 bổ sung5 xóa
  1. 5 5
      app/common/api/VerifyApi.php

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

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