修改全科及格率算法

This commit is contained in:
巴掌 committed 2019-07-09 14:05:33 +08:00
1 parent 6801b23dfd
commit d090caba74
2 files changed
+4 -3

No files matched your search

+2 -2
View File
@@ -585,10 +585,10 @@ class Index extends Base
$nianji = array();
$chengjiinfo = $tj->srcChengji($list['kaoshi'],$list['banji']);
$temp = $tj->tongji($chengjiinfo,$list['kaoshi']);
$colcnt = $colcnt+5;
isset($colcnt) ? $colcnt = $colcnt+5 : $colcnt = 12;
// 循环写出统计结果
foreach ($ks->ks_subject as $key => $value) {
$sheet->setCellValue($colname[$colcnt].'3', $temp[$value->subject_name->lieming]['cnt']);
$sheet->setCellValue($colname[$colcnt].'3', $temp[$value->subject_name->lieming]['xkcnt']);
$sheet->setCellValue($colname[$colcnt].'4', $temp[$value->subject_name->lieming]['avg']);
$sheet->setCellValue($colname[$colcnt].'5', $temp[$value->subject_name->lieming]['youxiu']);
$sheet->setCellValue($colname[$colcnt].'6', $temp[$value->subject_name->lieming]['jige']);