sugangqiang 2 rokov pred
rodič
commit
e2649d0d1d
1 zmenil súbory, kde vykonal 5 pridanie a 3 odobranie
  1. 5 3
      app/common/api/VerifyApi.php

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

@@ -225,6 +225,7 @@ class VerifyApi {
         $offset = $params["offset"] ?: 0;
         $limit = $params["limit"] ?: 10;
         $companyId = session("user")["companyId"];
+        $whereRaw = "";
         switch ($params["checkState"]) {
             case 1://待部门并审(首次提交)
                 $where[] = ["tl.active", "=", 0];
@@ -618,6 +619,7 @@ class VerifyApi {
         $isMatchZhiren = [0 => "否", 1 => "是"];
 
         $where = [];
+        $whereRaw = "";
         $where[] = ["e.type", "=", session("user")["type"]];
         if ($params["all"] != 1) {
             if ($params["name"]) {
@@ -1019,16 +1021,16 @@ 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 {
                             $verifyDepts[$k] .= "(待审核)";
-                            $item["deptWait"]++;
+                            $item["deptWait"] ++;
                         }
                     }
                     $item["verifyDepts"] = implode(chr(10), $verifyDepts);