|
@@ -353,7 +353,7 @@ namespace TEAMModelOS.SDK
|
|
|
}
|
|
|
return (null, null, null);
|
|
|
}
|
|
|
- public static async Task<(List<TmdInfo> tmdinfos, List<StuInfo> students, List<ClassListInfo> classInfo)> GetTchList(CosmosClient client, DingDing _dingDing, List<string> claes, string school)
|
|
|
+ public static async Task<(List<TmdInfo> tmdinfos, List<ClassListInfo> classInfo)> GetTchList(CosmosClient client, DingDing _dingDing, List<string> claes, string school)
|
|
|
{
|
|
|
try
|
|
|
{
|
|
@@ -365,7 +365,7 @@ namespace TEAMModelOS.SDK
|
|
|
List<TmdInfo> tmdinfos = new List<TmdInfo>();
|
|
|
List<string> tmdids = new List<string>();
|
|
|
List<StuInfo> stuInfos = new List<StuInfo>();
|
|
|
- if (!classes.IsNotEmpty()) { return (tmdinfos, new List<StuInfo>(), null); }
|
|
|
+ if (!classes.IsNotEmpty()) { return (tmdinfos, null); }
|
|
|
List<string> sqlList = new List<string>();
|
|
|
classes.ForEach(x => { sqlList.Add($" '{x}' "); });
|
|
|
string sql = string.Join(" , ", sqlList);
|
|
@@ -447,13 +447,13 @@ namespace TEAMModelOS.SDK
|
|
|
classInfo.Add(classListInfo);
|
|
|
});
|
|
|
|
|
|
- return (tmdinfos, stuInfos, classInfo);
|
|
|
+ return (tmdinfos, classInfo);
|
|
|
}
|
|
|
catch (Exception ex)
|
|
|
{
|
|
|
await _dingDing.SendBotMsg($"{Environment.GetEnvironmentVariable("Option:Location")}-OS,TriggerStuActivity-GetStuList\n{ex.Message}\n{ex.StackTrace}", GroupNames.醍摩豆服務運維群組);
|
|
|
}
|
|
|
- return (null, null, null);
|
|
|
+ return (null, null);
|
|
|
}
|
|
|
public static async Task<(List<TmdInfo> tmdinfos, List<StuInfo> students,List<ClassListInfo>classInfo)> GetStuList(CosmosClient client, DingDing _dingDing, List<string> claes, string school)
|
|
|
{
|