From bbbc5f718b1d493070d9fe037e5519df013255bc Mon Sep 17 00:00:00 2001 From: win10 Date: Mon, 13 Jul 2020 09:01:39 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=9F=A5=E8=AF=A2=E6=88=90?= =?UTF-8?q?=E7=BB=A9=E5=BD=95=E5=85=A5=E4=BA=BA=E5=92=8C=E9=9B=B7=E8=BE=BE?= =?UTF-8?q?=E5=9B=BE=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/chengji/controller/Index.php | 2 +- app/renshi/model/StudentChengji.php | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/app/chengji/controller/Index.php b/app/chengji/controller/Index.php index 03b54382..a5d04767 100644 --- a/app/chengji/controller/Index.php +++ b/app/chengji/controller/Index.php @@ -596,7 +596,7 @@ class Index extends BaseController $query->field('id,title'); }, 'userName'=>function($query){ - $query->field('id,school,xingming') + $query->field('id,school_id,xingming') ->with([ 'adSchool'=>function($query){ $query->field('id,jiancheng'); diff --git a/app/renshi/model/StudentChengji.php b/app/renshi/model/StudentChengji.php index 3271b45a..ebbf6e42 100644 --- a/app/renshi/model/StudentChengji.php +++ b/app/renshi/model/StudentChengji.php @@ -182,21 +182,21 @@ class StudentChengji extends BaseModel $khInfo = $kh->where('id', $src['kaohao_id']) ->with([ 'ksChengji'=>function($query){ - $query->field('id,kaohao_id,subject_id,defen'); + $query->field('id, kaohao_id, subject_id, defen'); } ]) ->find(); // 参加考试学科 - $subject = subjectList(); + $subject = subjectList(1,1); // 获取参加考试学科满分 $ksset = new \app\kaoshi\model\KaoshiSet; - $manfen = $ksset->srcSubject($khInfo->kaoshi, '', $khInfo->ruxuenian); + $manfen = $ksset->srcSubject($khInfo->kaoshi_id, '', $khInfo->ruxuenian); // 查询区成绩 $SchoolChengji = new \app\chengji\model\TongjiSch; $schcj = $SchoolChengji - ->where('kaoshi_id',$khInfo->kaoshi) + ->where('kaoshi_id',$khInfo->kaoshi_id) ->where('ruxuenian',$khInfo->ruxuenian) ->select();