|
@@ -451,9 +451,13 @@ namespace TEAMModelOS.FunctionV4
|
|
|
periodId = info.period.id,
|
|
|
subjectId = "subject_exam"
|
|
|
};
|
|
|
+ //作答合格率
|
|
|
+ var sta = examClassResults.SelectMany(x => x.status).ToList();
|
|
|
+ var ansCount = sta.Where(x => x == 0).ToList();
|
|
|
+ var persent = ansCount.Count * 1.0 / sta.Count * 100;
|
|
|
var period = sc.period.Where(x => x.id.Equals(info.period.id)).FirstOrDefault();
|
|
|
//获取学期信息
|
|
|
- if (null != period) {
|
|
|
+ if (null != period && persent >= 60) {
|
|
|
var (currSemester, studyYear, date, nextSemester) = SchoolService.GetSemester(period, info.startTime);
|
|
|
//获取学生信息
|
|
|
(List<RMember> rmembers, List<RGroupList> groups) = await GroupListService.GetMemberByListids(_coreAPIHttpService, client, _dingDing, info.classes, info.school);
|