|
@@ -37,8 +37,9 @@ namespace TEAMModelFunction
|
|
}
|
|
}
|
|
|
|
|
|
public static async Task<(List<string> tmdids,List<Students> studentss)> GetStuList( CosmosClient client, List<string> classes,string school) {
|
|
public static async Task<(List<string> tmdids,List<Students> studentss)> GetStuList( CosmosClient client, List<string> classes,string school) {
|
|
- if (!classes.IsNotEmpty()) { return (null, null); }
|
|
|
|
|
|
+ List<string> tmdids = new List<string>();
|
|
List<Students> studentss = new List<Students>();
|
|
List<Students> studentss = new List<Students>();
|
|
|
|
+ if (!classes.IsNotEmpty()) { return (tmdids, studentss); }
|
|
List<string> sqlList = new List<string>();
|
|
List<string> sqlList = new List<string>();
|
|
classes.ForEach(x => { sqlList.Add($" '{x}' "); });
|
|
classes.ForEach(x => { sqlList.Add($" '{x}' "); });
|
|
string sql = string.Join(" , ", sqlList);
|
|
string sql = string.Join(" , ", sqlList);
|
|
@@ -64,7 +65,7 @@ namespace TEAMModelFunction
|
|
{
|
|
{
|
|
tchLists.Add(item);
|
|
tchLists.Add(item);
|
|
}
|
|
}
|
|
- List<string> tmdids = new List<string>();
|
|
|
|
|
|
+
|
|
schList.ForEach(x => {
|
|
schList.ForEach(x => {
|
|
if (x.students.IsNotEmpty())
|
|
if (x.students.IsNotEmpty())
|
|
{
|
|
{
|