浏览代码

处理活动清单。

CrazyIter_Bin 3 年之前
父节点
当前提交
3b779fe61a

+ 1 - 1
TEAMModelOS.SDK/Models/Service/GroupListService.cs

@@ -121,7 +121,6 @@ namespace TEAMModelOS.SDK
             string tbname = list.scope.Equals("private") ? "Teacher" : "School";
             list.tcount = list.members.Where(x => x.type == 1).Count();
             list.scount = list.members.Where(x => x.type == 2).Count();
-            await client.GetContainer(Constant.TEAMModelOS, tbname).UpsertItemAsync(list, new PartitionKey(list.code));
             //学生名单,教研组会触发活动中间表刷新
             if (list.type.Equals("teach") || list.type.Equals("research") || list.type.Equals("yxtrain"))
             {
@@ -232,6 +231,7 @@ namespace TEAMModelOS.SDK
                     await _serviceBus.GetServiceBusClient().SendMessageAsync(ActiveTask, messageChange);
                 }
             }
+            await client.GetContainer(Constant.TEAMModelOS, tbname).UpsertItemAsync(list, new PartitionKey(list.code));
             return list;
         }
         public static async Task<GroupList> CheckListNo(GroupList list, AzureCosmosFactory _azureCosmos, DingDing _dingDing, Option _option)

+ 4 - 4
TEAMModelOS/Controllers/School/GroupListController.cs

@@ -483,11 +483,11 @@ namespace TEAMModelOS.Controllers
             }
             catch (CosmosException ex)
             {
-                await _dingDing.SendBotMsg($"OS,{_option.Location},grouplist/upsert-grouplist()\n{ex.Message}{ex.StackTrace}\n", GroupNames.醍摩豆服務運維群組);
+                await _dingDing.SendBotMsg($"OS,{_option.Location},grouplist/get-grouplists-members()\n{ex.Message}{ex.StackTrace}\n", GroupNames.醍摩豆服務運維群組);
             }
             catch (Exception ex)
             {
-                await _dingDing.SendBotMsg($"OS,{_option.Location},grouplist/upsert-grouplist()\n{ex.Message}{ex.StackTrace}\n", GroupNames.醍摩豆服務運維群組);
+                await _dingDing.SendBotMsg($"OS,{_option.Location},grouplist/get-grouplists-members()\n{ex.Message}{ex.StackTrace}\n", GroupNames.醍摩豆服務運維群組);
             }
             return Ok();
         }
@@ -541,11 +541,11 @@ namespace TEAMModelOS.Controllers
             }
             catch (CosmosException ex)
             {
-                await _dingDing.SendBotMsg($"OS,{_option.Location},grouplist/upsert-grouplist()\n{ex.Message}{ex.StackTrace}\n", GroupNames.醍摩豆服務運維群組);
+                await _dingDing.SendBotMsg($"OS,{_option.Location},grouplist/get-grouplists()\n{ex.Message}{ex.StackTrace}\n", GroupNames.醍摩豆服務運維群組);
             }
             catch (Exception ex)
             {
-                await _dingDing.SendBotMsg($"OS,{_option.Location},grouplist/upsert-grouplist()\n{ex.Message}{ex.StackTrace}\n", GroupNames.醍摩豆服務運維群組);
+                await _dingDing.SendBotMsg($"OS,{_option.Location},grouplist/get-grouplists()\n{ex.Message}{ex.StackTrace}\n", GroupNames.醍摩豆服務運維群組);
             }
             return Ok();
         }