From 0fd2a79a1a231e8611d2128f6053e555e99c9aa4 Mon Sep 17 00:00:00 2001 From: win10 Date: Tue, 14 Jul 2020 15:01:45 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=88=E5=B9=B6master?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/student/model/OneStudentChengji1.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/student/model/OneStudentChengji1.php b/app/student/model/OneStudentChengji1.php index 9551866c..a0a9983c 100644 --- a/app/student/model/OneStudentChengji1.php +++ b/app/student/model/OneStudentChengji1.php @@ -181,7 +181,7 @@ class OneStudentChengji 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(); @@ -190,7 +190,7 @@ class OneStudentChengji extends BaseModel $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;