|
@@ -171,7 +171,8 @@ namespace TEAMModelOS.SDK.Models.Service
|
|
|
public static async void DoLessonStudentRecord(DingDing _dingding, SnowflakeId snowflakeId, LessonRecord lessonRecord, string scope, CosmosClient client, string school, string tmdid,
|
|
|
Teacher teacher, AzureServiceBusFactory _serviceBus, AzureStorageFactory _azureStorage, IConfiguration _configuration, LessonBase lessonBase,AzureRedisFactory _azureRedis)
|
|
|
{
|
|
|
-
|
|
|
+ School schoolBase = null;
|
|
|
+ Period period = null;
|
|
|
try
|
|
|
{
|
|
|
int year = DateTimeOffset.UtcNow.Year;
|
|
@@ -217,8 +218,7 @@ namespace TEAMModelOS.SDK.Models.Service
|
|
|
lessonStudentRecords.Add(item);
|
|
|
}
|
|
|
}
|
|
|
- School schoolBase = null;
|
|
|
- Period period = null;
|
|
|
+
|
|
|
(Semester currSemester, int studyYear, DateTimeOffset date, DateTimeOffset nextSemester) dataSemester = new(null,-1, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow) ;
|
|
|
if (!string.IsNullOrWhiteSpace(school)) {
|
|
|
schoolBase = await client.GetContainer(Constant.TEAMModelOS, Constant.School).ReadItemAsync<School>(school, new PartitionKey("Base"));
|
|
@@ -476,7 +476,7 @@ namespace TEAMModelOS.SDK.Models.Service
|
|
|
}
|
|
|
catch (Exception ex)
|
|
|
{
|
|
|
- await _dingding.SendBotMsg($"学生个人课例统计信息异常,{ex.Message}\n{ex.StackTrace}", GroupNames.醍摩豆服務運維群組);
|
|
|
+ await _dingding.SendBotMsg($"学生个人课例统计信息异常,{ex.Message}\n{ex.StackTrace},{lessonRecord?.ToJsonString()}{school}", GroupNames.醍摩豆服務運維群組);
|
|
|
}
|
|
|
}
|
|
|
|