|
@@ -1835,7 +1835,7 @@ namespace TEAMModelOS.SDK
|
|
|
/// <param name="students"></param>
|
|
|
/// <returns></returns>
|
|
|
public static async Task<(List<object> studs, Dictionary<string, List<string>> classDuplNos, List<string> nonexistentIds, List<string> errorIds, Dictionary<string, List<string>> errorNos, List<string> errorClassId)>
|
|
|
- updateStudents(AzureCosmosFactory _azureCosmos, DingDing _dingDing, Option _option, string schoolId, JsonElement.ArrayEnumerator students,bool cleanImei)
|
|
|
+ updateStudents(AzureCosmosFactory _azureCosmos, DingDing _dingDing, Option _option, string schoolId, JsonElement.ArrayEnumerator students)
|
|
|
{
|
|
|
try
|
|
|
{
|
|
@@ -2227,17 +2227,9 @@ namespace TEAMModelOS.SDK
|
|
|
writer.WriteEndObject();
|
|
|
writer.Flush();
|
|
|
//编辑是是否要明确清除电子学生证。
|
|
|
- if (cleanImei)
|
|
|
- {
|
|
|
- await upsertImei(id, studentInfos[id].imei, schoolId, "clean", _azureCosmos
|
|
|
+ await upsertImei(id, studentInfos[id].imei, schoolId, "clean", _azureCosmos
|
|
|
.GetCosmosClient()
|
|
|
.GetContainer(Constant.TEAMModelOS, "Student"));
|
|
|
- }
|
|
|
- else {
|
|
|
- await upsertImei(id, studentInfos[id].imei, schoolId, "keep", _azureCosmos
|
|
|
- .GetCosmosClient()
|
|
|
- .GetContainer(Constant.TEAMModelOS, "Student"));
|
|
|
- }
|
|
|
try
|
|
|
{
|
|
|
var ret = await cosmosContainer.ReplaceItemStreamAsync(memoryStream, id, new PartitionKey($"Base-{schoolId}"));
|