|
@@ -862,6 +862,9 @@ namespace TEAMModelOS.FunctionV4
|
|
|
var addTmdidsCls = tchList.FindAll(x => x.type == 1);
|
|
|
List<StuActivity> stuActivities = new List<StuActivity>();
|
|
|
List<StuActivity> tmdActivities = new List<StuActivity>();
|
|
|
+ var papers = info.papers.GroupBy(c => c.subjectId).Select(x => new {
|
|
|
+ subject = x.Key,
|
|
|
+ blob = x.ToList().Select(z => z.blob).ToList() });
|
|
|
if (addTmdidsCls.IsNotEmpty())
|
|
|
{
|
|
|
addTmdidsCls.ForEach(x =>
|
|
@@ -928,6 +931,10 @@ namespace TEAMModelOS.FunctionV4
|
|
|
creatorId = info.creatorId,
|
|
|
subjects = sub,
|
|
|
blob = null,
|
|
|
+ paper = info.pk.Equals("Art") ? papers.Select(c => new {
|
|
|
+ c.subject,
|
|
|
+ blob = c.blob[new Random().Next(c.blob.Count)]
|
|
|
+ }) : "",
|
|
|
owner = info.owner,
|
|
|
createTime = info.createTime,
|
|
|
taskStatus = ts,
|
|
@@ -937,7 +944,7 @@ namespace TEAMModelOS.FunctionV4
|
|
|
sStatus = iss ? 1 : 0,
|
|
|
classIds = classIds.ToList()
|
|
|
|
|
|
- });
|
|
|
+ }); ;
|
|
|
});
|
|
|
}
|
|
|
if (addStudentsCls.IsNotEmpty())
|
|
@@ -1007,6 +1014,10 @@ namespace TEAMModelOS.FunctionV4
|
|
|
creatorId = info.creatorId,
|
|
|
subjects = sub,
|
|
|
blob = null,
|
|
|
+ paper = info.pk.Equals("Art") ? papers.Select(c => new {
|
|
|
+ c.subject,
|
|
|
+ blob = c.blob[new Random().Next(c.blob.Count)]
|
|
|
+ }) : "",
|
|
|
owner = info.owner,
|
|
|
classIds = classIds.ToList(),
|
|
|
createTime = info.createTime,
|