Li 2 лет назад
Родитель
Сommit
12682f7b50
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      TEAMModelBI/Controllers/BINormal/BatchAreaController.cs

+ 1 - 1
TEAMModelBI/Controllers/BINormal/BatchAreaController.cs

@@ -830,7 +830,7 @@ namespace TEAMModelBI.Controllers.BINormal
                 //发送消息分区键
                 string partitionCode = "DelBeforeCopyAbility-mark";
                 //v2通知
-                Teacher targetTeacher = await cosmosClient.GetContainer(Constant.TEAMModelOS, Constant.Teacher).ReadItemAsync<Teacher>($"1", new PartitionKey($"Base"));
+                Teacher targetTeacher = await cosmosClient.GetContainer(Constant.TEAMModelOS, Constant.Teacher).ReadItemAsync<Teacher>($"{_tmdId}", new PartitionKey($"Base"));
                 _coreAPIHttpService.PushNotify(new List<IdNameCode> { new IdNameCode { id = targetTeacher.id, name = targetTeacher.name, code = targetTeacher.lang } }, "transfer-admin_school", Constant.NotifyType_IES5_Management, new Dictionary<string, object> { { "tmdname", "账号名称" }, { "schooName", "学校名称" }, { "schoolId", $"学校id" }, { "tmdid", "账号id" } }, _option.Location, _configuration, _dingDing, _environment.ContentRootPath);
 
                 //执行复制操作