|
@@ -287,6 +287,27 @@ namespace TEAMModelOS.Controllers
|
|
|
});
|
|
|
await _azureCosmos.GetCosmosClient().GetContainer(Constant.TEAMModelOS, Constant.School).ReplaceItemAsync(teacherImport, $"{school_code}", new PartitionKey("TeacherImport"));
|
|
|
}
|
|
|
+ var noids = teacherImport.teachers.Where(x => string.IsNullOrWhiteSpace(x.id));
|
|
|
+ foreach(var t in noids) {
|
|
|
+ teachers.Add(new ScTeacher
|
|
|
+ {
|
|
|
+ id = t.id,
|
|
|
+ picture = t.picture,
|
|
|
+ iname = t.iname,
|
|
|
+ name = t.name,
|
|
|
+ status = "import",
|
|
|
+ createTime = t.time,
|
|
|
+ permissionCount = 0,
|
|
|
+ size = 0,
|
|
|
+ permissions = new List<string>(),
|
|
|
+ roles = new List<string>(),
|
|
|
+ subjectIds = new List<string>(),
|
|
|
+ groups = new List<IdNameCode>(),
|
|
|
+ note = t.note,
|
|
|
+ phone = t.phone,
|
|
|
+ email = t.email,
|
|
|
+ });
|
|
|
+ }
|
|
|
}
|
|
|
IEnumerable<string> coreids = null;
|
|
|
coreids = teachers.Where(z => !string.IsNullOrWhiteSpace(z.id)).Select(x => x.id);
|