|
@@ -12,6 +12,7 @@ using TEAMModelOS.SDK.Extension;
|
|
|
using TEAMModelOS.SDK;
|
|
|
using TEAMModelOS.SDK.Models;
|
|
|
using TEAMModelOS.SDK.Models.Cosmos.Common;
|
|
|
+using TEAMModelOS.SDK.Models.Service;
|
|
|
|
|
|
namespace TEAMModelFunction
|
|
|
{
|
|
@@ -31,7 +32,8 @@ namespace TEAMModelFunction
|
|
|
}
|
|
|
if (activity != null)
|
|
|
{
|
|
|
- (List<TmdInfo> tmdids, List<StuInfo> students,List<ClassListInfo> classLists) = await GetStuList(client, _dingDing, activity.classes, activity.school);
|
|
|
+ List<string> classes = ExamService.getClasses(activity.classes, activity.stuLists);
|
|
|
+ (List<TmdInfo> tmdids, List<StuInfo> students,List<ClassListInfo> classLists) = await GetStuList(client, _dingDing, classes, activity.school);
|
|
|
if (tmdids.IsNotEmpty())
|
|
|
{
|
|
|
foreach (TmdInfo tmdid in tmdids)
|
|
@@ -53,7 +55,8 @@ namespace TEAMModelFunction
|
|
|
blob = activity.blob,
|
|
|
owner = activity.owner,
|
|
|
createTime = DateTimeOffset.UtcNow.ToUnixTimeMilliseconds(),
|
|
|
- taskStatus = -1
|
|
|
+ taskStatus = -1,
|
|
|
+ classIds = classes
|
|
|
};
|
|
|
await client.GetContainer("TEAMModelOS", "Teacher").UpsertItemAsync(stucourse, new PartitionKey(stucourse.code));
|
|
|
}
|
|
@@ -79,7 +82,8 @@ namespace TEAMModelFunction
|
|
|
blob = activity.blob,
|
|
|
owner = activity.owner,
|
|
|
createTime = DateTimeOffset.UtcNow.ToUnixTimeMilliseconds(),
|
|
|
- taskStatus = -1
|
|
|
+ taskStatus = -1,
|
|
|
+ classIds = classes
|
|
|
};
|
|
|
await client.GetContainer("TEAMModelOS", "Student").UpsertItemAsync(stucourse, new PartitionKey(stucourse.code));
|
|
|
}
|