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++;