|
@@ -129,6 +129,19 @@ namespace TEAMModelOS.FunctionV4
|
|
|
List<StuActivity> stuActivities = new List<StuActivity>();
|
|
|
List<StuActivity> tmdActivities = new List<StuActivity>();
|
|
|
List<StuActivity> tchActivities = new List<StuActivity>();
|
|
|
+
|
|
|
+ List<string> sub = new();
|
|
|
+ if (survey.targets.Count > 0)
|
|
|
+ {
|
|
|
+ foreach (var course in survey.targets)
|
|
|
+ {
|
|
|
+ var info = course.ToObject<List<string>>();
|
|
|
+ if (info.Count > 1)
|
|
|
+ {
|
|
|
+ sub.Add(info[0]);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
if (addTmdidsCls.IsNotEmpty())
|
|
|
{
|
|
|
addTmdidsCls.ForEach(x =>
|
|
@@ -155,7 +168,7 @@ namespace TEAMModelOS.FunctionV4
|
|
|
scope = survey.scope,
|
|
|
school = survey.school,
|
|
|
creatorId = survey.creatorId,
|
|
|
- subjects = new List<string> { "" },
|
|
|
+ subjects = sub,
|
|
|
blob = survey.blob,
|
|
|
owner = survey.owner,
|
|
|
createTime = DateTimeOffset.UtcNow.ToUnixTimeMilliseconds(),
|
|
@@ -190,7 +203,7 @@ namespace TEAMModelOS.FunctionV4
|
|
|
scope = survey.scope,
|
|
|
school = survey.school,
|
|
|
creatorId = survey.creatorId,
|
|
|
- subjects = new List<string> { "" },
|
|
|
+ subjects = sub,
|
|
|
blob = survey.blob,
|
|
|
owner = survey.owner,
|
|
|
createTime = DateTimeOffset.UtcNow.ToUnixTimeMilliseconds(),
|