From dd37b5ee4405abf5e206f99d0c33a0cd38368630 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8B=82=E5=BE=92=E5=BC=A0=E4=B8=89?= Date: Tue, 28 Dec 2021 21:58:49 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=88=90=E7=BB=A9=E6=9F=A5?= =?UTF-8?q?=E8=AF=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/chengji/controller/Index.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/chengji/controller/Index.php b/app/chengji/controller/Index.php index dcfeb6c1..d5ef4fb2 100755 --- a/app/chengji/controller/Index.php +++ b/app/chengji/controller/Index.php @@ -60,6 +60,7 @@ class Index extends AdminBase // 获取参与考试的班级 if (count($src['banji_id']) == 0) { $cy = new \app\kaohao\model\SearchCanYu; + $src['all'] = true; $src['banji_id']= array_column($cy->class($src), 'id'); } @@ -68,6 +69,7 @@ class Index extends AdminBase // 实例化并查询成绩 $cj = new Chengji; + $src['all'] = false; $data = $cj->search($src); $data = \app\facade\Tools::reset_array($data, $src);