修改成绩排名、位置和报告错误

This commit is contained in:
东宝书记 committed 2021-04-02 21:05:55 +08:00
1 parent 5221cbc325
commit fa0325d0da
6 files changed
+87 -24

No files matched your search

+14 -8
View File
@@ -207,23 +207,29 @@ class Chengji extends BaseModel
}
arsort($cj);
$khids = array_keys($cj); # 获取考号即键值
$data = array(); # 新数据容器
$mc = 1;
foreach ($khids as $key => $value) {
$last = '-a';
$rank = 0;
$i = 0;
foreach ($cj as $key => $value) {
$i ++; # 记录现在记录个数
if($last != $value) # 如果当前值与上一个值不相等,名次等于当前记录号,否则与上一条记录相同
{
$rank = $i;
}
$last = $value;
if($cnt == 1)
{
$data[$key]['id'] = $value;
$data[$key][$col[0]] = 1;
$data[$key][$col[1]] = 100;
}else{
$data[$key]['id'] = $value;
$data[$key][$col[0]] = $mc;
$data[$key][$col[1]] = round(($cnt - $mc) / ($cnt - 1) * 100, 2);
$data[$key]['id'] = $key;
$data[$key][$col[0]] = $rank;
$data[$key][$col[1]] = round(($cnt - $rank) / ($cnt - 1) * 100, 2);
}
$mc++;
}
$temp = $this->saveAll($data);
return true;
+1
View File
@@ -594,6 +594,7 @@ class TongjiBj extends BaseModel
'kaoshi_id' => $kaoshi_id,
'banji_id' => $val['id'],
];
$temp = $more->srcChengjiSubject($srcfrom);
// 循环计算成绩排序
+1
View File
@@ -74,6 +74,7 @@
增加良好分数线,优秀、良好、合格的人数比例<br>
增加教师和学生时的帐号、电话和身份证号的重复验证<br>
增加查看班级学生名单<br>
修复成绩报告已知错误<br>
<br>
</p>
<p>
Loaded 3 of 6 files, more files were not shown because too many files have changed in this diff. Show more