浏览代码

修复医院审核列表卡顿

sugangqiang 1 年之前
父节点
当前提交
8586d3d8ce
共有 1 个文件被更改,包括 4 次插入1 次删除
  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")