|
@@ -847,6 +847,15 @@ namespace TEAMModelOS.SDK
|
|
|
isUpPwDone = true;
|
|
|
}
|
|
|
tmpStudInfo.picture = student.picture;
|
|
|
+ var guardian= student.guardians.Find(x => x.mobile.Equals(stud.Value.gPhone));
|
|
|
+ if (guardian != null)
|
|
|
+ {
|
|
|
+ guardian.name = stud.Value.gName;
|
|
|
+ guardian.relation = stud.Value.guardian;
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ student.guardians.Add(new StudentGuardian { mobile=stud.Value.gPhone,name=stud.Value.gName,relation=stud.Value.guardian});
|
|
|
+ }
|
|
|
await cosmosContainer.ReplaceItemAsync(student, stud.Key, new PartitionKey($"Base-{schoolId}"));
|
|
|
|
|
|
}
|