|
@@ -486,7 +486,20 @@ namespace TEAMModelOS.SDK.Models
|
|
|
requestOptions: new QueryRequestOptions() { PartitionKey = new Azure.Cosmos.PartitionKey($"Class-{school}") }))
|
|
|
{
|
|
|
///行政班(学生搜寻classId动态返回)class
|
|
|
- List<RMember> smembers = students.Where(x => x.classId.Equals(item.id)).Select(y => new RMember { id = y.id, code = school, name = y.name, type = 2, picture = y.picture, no = y.no,classId=y.classId,groupId=y.groupId,groupName=y.groupName }).ToList();
|
|
|
+ List<RMember> smembers = students.Where(x => x.classId.Equals(item.id))
|
|
|
+ .Select(y => new RMember
|
|
|
+ {
|
|
|
+ id = y.id,
|
|
|
+ code = school,
|
|
|
+ name = y.name,
|
|
|
+ type = 2,
|
|
|
+ picture = y.picture,
|
|
|
+ no = y.no,
|
|
|
+ classId=y.classId,
|
|
|
+ groupId=y.groupId,
|
|
|
+ groupName=y.groupName ,
|
|
|
+ irs=y.irs,
|
|
|
+ }).ToList();
|
|
|
members.AddRange(smembers);
|
|
|
|
|
|
RGroupList group = new RGroupList
|
|
@@ -531,7 +544,7 @@ namespace TEAMModelOS.SDK.Models
|
|
|
var ids = item.list.Select(x => x.id).ToList();
|
|
|
if (ids.IsNotEmpty())
|
|
|
{
|
|
|
- StringBuilder stuSql = new StringBuilder($"SELECT distinct c.name,c.id,c.code,c.picture,c.no,c.classId FROM c ");
|
|
|
+ StringBuilder stuSql = new StringBuilder($"SELECT distinct c.name,c.id,c.code,c.picture,c.no,c.irs,c.classId FROM c ");
|
|
|
string insql = string.Join(",", ids.Select(x => $"'{x}'"));
|
|
|
stuSql.Append($"where c.id in ({insql})");
|
|
|
await foreach (var student in client.GetContainer(Constant.TEAMModelOS, "Student").GetItemQueryIterator<Student>(queryText: stuSql.ToString(),
|
|
@@ -612,7 +625,6 @@ namespace TEAMModelOS.SDK.Models
|
|
|
var student = studentsData.Find(y => y.id.Equals(x.id) && y.schoolId.Equals(x.code));
|
|
|
x.name = student?.name;
|
|
|
x.picture = student?.picture;
|
|
|
- x.no = student?.no;
|
|
|
x.classId = student?.classId;
|
|
|
});
|
|
|
var mbs = tmdids;
|
|
@@ -638,7 +650,6 @@ namespace TEAMModelOS.SDK.Models
|
|
|
var student = students.Find(t => t.id.Equals(y.id)&& t.code.Equals(y.code));
|
|
|
y.name = student?.name;
|
|
|
y.picture = student?.picture;
|
|
|
- y.no = student?.no;
|
|
|
y.classId = student?.classId;
|
|
|
}
|
|
|
}));
|