Prechádzať zdrojové kódy

修复医院审核列表卡顿

sugangqiang 1 rok pred
rodič
commit
8586d3d8ce
1 zmenil súbory, kde vykonal 4 pridanie a 1 odobranie
  1. 4 1
      app/enterprise/api/TalentApi.php

+ 4 - 1
app/enterprise/api/TalentApi.php

@@ -229,8 +229,11 @@ class TalentApi {
                         $where[] = ["tl.state", "=", TalentState::BASE_REJECT];
                         break;
                     case 3:
-                        $where[] = ["tl.state", "=", TalentState::SCND_SUBMIT];
+                        $where[] = ["tl.state", ">=", TalentState::SCND_SUBMIT];
                         break;
+                    default:
+                        $where[] = ["tl.state", "in", [TalentState::FST_SUBMIT, TalentState::BASE_REJECT]];
+                        $where[] = ["tl.state", ">=", TalentState::SCND_SUBMIT];
                 }
             }
             $count = Talent::where($where)->alias("ti")