|
@@ -140,8 +140,8 @@ namespace TEAMModelFunction
|
|
|
log.LogInformation($"{exams.ToJsonString()}");
|
|
|
foreach (var info in exams)
|
|
|
{
|
|
|
- List<string> classes = ExamService.getClasses(info);
|
|
|
- if (!info.classes.IsNotEmpty())
|
|
|
+ List<string> classes = ExamService.getClasses(info.classes,info.stuLists);
|
|
|
+ if (!classes.IsNotEmpty())
|
|
|
{
|
|
|
continue;
|
|
|
}
|
|
@@ -239,12 +239,13 @@ namespace TEAMModelFunction
|
|
|
log.LogInformation($"{votes.ToJsonString()}");
|
|
|
foreach (var info in votes)
|
|
|
{
|
|
|
- if (!info.classes.IsNotEmpty())
|
|
|
+ List<string> classes = ExamService.getClasses(info.classes, info.stuLists);
|
|
|
+ if (classes.IsNotEmpty())
|
|
|
{
|
|
|
continue;
|
|
|
}
|
|
|
|
|
|
- (List<TmdInfo> tmdids, List<StuInfo> studentss, List<ClassListInfo> classLists) = await TriggerStuActivity.GetStuList(client, _dingDing, info.classes, info.school);
|
|
|
+ (List<TmdInfo> tmdids, List<StuInfo> studentss, List<ClassListInfo> classLists) = await TriggerStuActivity.GetStuList(client, _dingDing, classes, info.school);
|
|
|
List<StuActivity> stuActivities = new List<StuActivity>();
|
|
|
List<StuActivity> tmdActivities = new List<StuActivity>();
|
|
|
if (tmdids.IsNotEmpty())
|
|
@@ -333,11 +334,12 @@ namespace TEAMModelFunction
|
|
|
log.LogInformation($"{surveys.ToJsonString()}");
|
|
|
foreach (var info in surveys)
|
|
|
{
|
|
|
- if (!info.classes.IsNotEmpty())
|
|
|
+ List<string> classes = ExamService.getClasses(info.classes, info.stuLists);
|
|
|
+ if (!classes.IsNotEmpty())
|
|
|
{
|
|
|
continue;
|
|
|
}
|
|
|
- (List<TmdInfo> tmdids, List<StuInfo> studentss, List<ClassListInfo> classLists) = await TriggerStuActivity.GetStuList(client, _dingDing, info.classes, info.school);
|
|
|
+ (List<TmdInfo> tmdids, List<StuInfo> studentss, List<ClassListInfo> classLists) = await TriggerStuActivity.GetStuList(client, _dingDing, classes, info.school);
|
|
|
List<StuActivity> stuActivities = new List<StuActivity>();
|
|
|
List<StuActivity> tmdActivities = new List<StuActivity>();
|
|
|
if (tmdids.IsNotEmpty())
|