修复考试删除后,学生个人成绩查询错误

This commit is contained in:
巴掌 committed 2020-08-03 16:37:16 +08:00
1 parent 05c4f4b519
commit 7c8590c4a4
1 file changed
+5
+5
View File
@@ -38,6 +38,11 @@ class StudentChengji extends BaseModel
// 整理数据
$data = array();
foreach ($stuCj as $key => $value) {
if(empty($value->cjKaoshi))
{
continue;
}
$data[$key] = [
'kaoshi_id' => $value->kaoshi_id,
'kaoshiTitle' => $value->cjKaoshi->title,