|
@@ -871,7 +871,7 @@ namespace TEAMModelOS.Controllers.Analysis
|
|
|
classBuilder.Append(key + ":" + its[key] + ",");
|
|
|
}
|
|
|
var cstr = classBuilder.ToString();
|
|
|
- values[7] = cstr.Substring(0, cstr.Length - 1);
|
|
|
+ values[7] = cstr[..^1];
|
|
|
StringBuilder gradeBuilder = new StringBuilder();
|
|
|
//处理年级的这个题的得分
|
|
|
foreach (var key in gradeItemScore.Keys)
|
|
@@ -901,8 +901,8 @@ namespace TEAMModelOS.Controllers.Analysis
|
|
|
});
|
|
|
dict.TryAdd(key, gscores);
|
|
|
}
|
|
|
- KeyValuePair<string, List<List<string>>> keyValue = new KeyValuePair<string, List<List<string>>>(e.subjectId, datas);
|
|
|
- KeyValuePair<string, List<KeyValuePair<string, List<double>>>> classdata = new KeyValuePair<string, List<KeyValuePair<string, List<double>>>>(e.subjectId, classdatas);
|
|
|
+ KeyValuePair<string, List<List<string>>> keyValue = new(e.subjectId, datas);
|
|
|
+ KeyValuePair<string, List<KeyValuePair<string, List<double>>>> classdata = new(e.subjectId, classdatas);
|
|
|
return (keyValue, classdata, dict);
|
|
|
|
|
|
}
|