|
@@ -33,12 +33,23 @@ namespace TEAMModelFunction
|
|
|
//[FunctionName("Course")]
|
|
|
//public async Task StuList([ServiceBusTrigger("active-task", "course", Connection = "Azure:ServiceBus:ConnectionString")] string msg)
|
|
|
//{
|
|
|
+ // var client= _azureCosmos.GetCosmosClient();
|
|
|
// try
|
|
|
// {
|
|
|
- // await _dingDing.SendBotMsg($"ServiceBus,Blob(){msg}", GroupNames.醍摩豆服務運維群組);
|
|
|
+ // await _dingDing.SendBotMsg($"ServiceBus,CourseChange:{msg}", GroupNames.醍摩豆服務運維群組);
|
|
|
// var jsonMsg = JsonDocument.Parse(msg);
|
|
|
- // msg.ToObject<StuCourse>();
|
|
|
+ // CourseChange courseChange= msg.ToObject<CourseChange>();
|
|
|
+ // //根据新增名单获取 新增的学生id 及timdid
|
|
|
+ // (List<string> addTmdids, List<Students> addStudents)= await TriggerStuActivity.GetStuList(client,courseChange.addList,courseChange.school);
|
|
|
+ // //根据新增名单获取 新增的学生id 及timdid
|
|
|
+ // (List<string>delTmdids, List<Students> delStudents) = await TriggerStuActivity.GetStuList(client,courseChange.delList,courseChange.school);
|
|
|
+ // foreach (var addStu in addStudents) {
|
|
|
+
|
|
|
+ // }
|
|
|
+ // foreach (var addTmd in addTmdids)
|
|
|
+ // {
|
|
|
|
|
|
+ // }
|
|
|
|
|
|
// }
|
|
|
// catch (Exception ex)
|