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();