|
@@ -816,7 +816,7 @@ namespace TEAMModelOS.SDK
|
|
|
writerNew.Flush();
|
|
|
if (!string.IsNullOrWhiteSpace(stud.Value.imei))
|
|
|
{
|
|
|
- Imei imei = new Imei { id = stud.Value.imei, code = "Imei", stuid = stud.Key, school = schoolId };
|
|
|
+ Imei imei = new Imei { id = stud.Value.imei, code = "Imei", pk = "Imei", stuid = stud.Key, school = schoolId };
|
|
|
await cosmosContainer.UpsertItemAsync(imei, new PartitionKey($"Imei"));
|
|
|
}
|
|
|
var response = await cosmosContainer.CreateItemStreamAsync(memoryStream, new PartitionKey($"Base-{schoolId}"));
|
|
@@ -995,7 +995,7 @@ namespace TEAMModelOS.SDK
|
|
|
writer.Flush();
|
|
|
if (!string.IsNullOrWhiteSpace(studCreateInfo.imei))
|
|
|
{
|
|
|
- Imei imei = new Imei { id = studCreateInfo.imei, code = "Imei", stuid = studCreateInfo.id, school = schoolId };
|
|
|
+ Imei imei = new Imei { id = studCreateInfo.imei, code = "Imei", pk = "Imei", stuid = studCreateInfo.id, school = schoolId };
|
|
|
await _azureCosmos
|
|
|
.GetCosmosClient()
|
|
|
.GetContainer(Constant.TEAMModelOS, "Student").UpsertItemAsync(imei, new PartitionKey($"Imei"));
|
|
@@ -2160,7 +2160,7 @@ namespace TEAMModelOS.SDK
|
|
|
writer.Flush();
|
|
|
if (!string.IsNullOrWhiteSpace(studentInfos[id].imei))
|
|
|
{
|
|
|
- Imei imei = new Imei { id = studentInfos[id].imei, code = "Imei", stuid = id, school = schoolId };
|
|
|
+ Imei imei = new Imei { id = studentInfos[id].imei, code = "Imei", pk = "Imei", stuid = id, school = schoolId };
|
|
|
await _azureCosmos
|
|
|
.GetCosmosClient()
|
|
|
.GetContainer(Constant.TEAMModelOS, "Student").UpsertItemAsync(imei, new PartitionKey($"Imei"));
|