修改已录成绩统计

This commit is contained in:
cxdbz committed 2020-01-02 19:41:02 +08:00
1 parent 60529919ee
commit 969e15f6ee
2 files changed
+3 -1

No files matched your search

+2
View File
@@ -118,6 +118,7 @@ class Tongji extends Base
// 循环统计各学科成绩
foreach ($ksinfo->ksSubject as $key => $value) {
$cjcol = array_column($cj,$value->lieming);
$stucnt = count($cjcol);
$cjcol = array_filter($cjcol,function($item){
return $item !== null;
});
@@ -159,6 +160,7 @@ class Tongji extends Base
$cjcol = array_filter($cjcol,function($item){
return $item !== null;
});
$data['stucnt'] = count($cj);
$data['bmcnt'] = count($cjcol); # 报名人数
$data['sum'] = array_sum($cjcol);
if($data['bmcnt']>0)
+1 -1
View File
@@ -88,7 +88,7 @@
var str='';
if(d.chengji)
{
str = d.chengji.bmcnt
str = d.chengji.stucnt
}
return str;
}},