From 05bb5702a9edd0081be28b18fa8d950cf076b795 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B7=B4=E6=8E=8C?= Date: Mon, 4 Jan 2021 09:42:18 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=9B=B7=E8=BE=BE=E5=9B=BE?= =?UTF-8?q?=E5=AD=A6=E7=A7=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/chengji/controller/Index.php | 2 +- app/tools/model/OneStudentChengji.php | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/app/chengji/controller/Index.php b/app/chengji/controller/Index.php index 0de1690b..dd518cc9 100755 --- a/app/chengji/controller/Index.php +++ b/app/chengji/controller/Index.php @@ -636,7 +636,7 @@ class Index extends AdminBase $data = $chengji ->where('kaohao_id',$src['kaohao']) - ->field('id,kaohao_id,subject_id,user_id,user_group,defen,update_time') + ->field('id, kaohao_id, subject_id, user_id, user_group, defen, update_time') ->order([$src['field']=>$src['order']]) ->with([ 'subjectName'=>function($query){ diff --git a/app/tools/model/OneStudentChengji.php b/app/tools/model/OneStudentChengji.php index 2eab3a38..712b1b17 100755 --- a/app/tools/model/OneStudentChengji.php +++ b/app/tools/model/OneStudentChengji.php @@ -215,11 +215,11 @@ class OneStudentChengji extends BaseModel // 循环写入成绩 $indicator = array(); - $legend = ['得分','全体平均分']; + $legend = ['得分','年级平均分']; $stucjArray = array(); $stucjArray['name'] = '得分'; $nianjichengji = array(); - $nianjichengji['name'] = '全体平均分'; + $nianjichengji['name'] = '年级平均分'; $i = 0; // 循环参加本次考试的学科 @@ -248,7 +248,7 @@ class OneStudentChengji extends BaseModel } if(isset($stucjArray['value'][$i]) == false) { - $stucjArray['value'][$i] = null; + $stucjArray['value'][$i] = '无'; } // 学校年级成绩 @@ -266,7 +266,7 @@ class OneStudentChengji extends BaseModel } if(isset($nianjichengji['value'][$i]) == false) { - $nianjichengji['value'][$i] = null; + $nianjichengji['value'][$i] = '无'; } $i++;