修复已知错误

This commit is contained in:
win10 committed 2020-07-01 16:56:54 +08:00
1 parent c3317b9b79
commit d4931d8210
11 files changed
+42 -31

No files matched your search

+1 -2
View File
@@ -161,8 +161,7 @@ class Admin extends BaseModel
->field('id')
->with([
'glGroup'=>function($query){
$query->where('status', 1)
->field('title');
$query->where('status', 1);
}
])
->find();
+9 -8
View File
@@ -121,13 +121,6 @@ class Bjtongji extends BaseController
// 获取相关参数
ob_start();
$khSrc = new \app\kaohao\model\Search; # 参考班级
$src['banji_id']= array_column($khSrc->cyBanji($src), 'id');
$btj = new BTJ; # 成绩统计结果
$data = $btj->search($src);
$ntj = new \app\chengji\model\TongjiNj;
$dataAll = $ntj->search($src);
count($dataAll) > 0 ? $data['all'] = $dataAll[0] : $data;
$ks = new \app\kaoshi\model\Kaoshi; # 参考学科
$ksinfo = $ks->where('id', $src['kaoshi_id'])
->field('id, title, bfdate, enddate')
@@ -138,7 +131,14 @@ class Bjtongji extends BaseController
$nianji = $njlist[$src['ruxuenian']];
$school = new \app\system\model\School; # 学校、年级信息
$schoolname = $school->where('id', 'in', $src['school_id'])->value('jiancheng');
$tabletitle = $ksinfo->title . ' ' . $schoolname . ' ' . $nianji . '各班级成绩汇总';
$tabletitle = $ksinfo->title . ' ' . $schoolname . $nianji . '各班级成绩汇总';
$khSrc = new \app\kaohao\model\Search; # 参考班级
$src['banji_id']= array_column($khSrc->cyBanji($src), 'id');
$btj = new BTJ; # 成绩统计结果
$data = $btj->search($src);
$ntj = new \app\chengji\model\TongjiNj;
$dataAll = $ntj->search($src);
count($dataAll) > 0 ? $data['all'] = $dataAll[0] : $data;
// 将数据写入表格中
$spreadsheet = new \PhpOffice\PhpSpreadsheet\Spreadsheet; # 创建文档
@@ -265,6 +265,7 @@ class Bjtongji extends BaseController
$writer->save('php://output');
ob_flush();
flush();
exit();
}
+2
View File
@@ -405,6 +405,7 @@ class Index extends BaseController
$writer->save('php://output');
ob_flush();
flush();
exit();
}
@@ -569,6 +570,7 @@ class Index extends BaseController
$writer->save('php://output');
ob_flush();
flush();
exit();
}
Loaded 3 of 11 files, more files were not shown because too many files have changed in this diff. Show more