|
@@ -43,6 +43,7 @@ using System.Threading;
|
|
using System.Collections.Concurrent;
|
|
using System.Collections.Concurrent;
|
|
using Microsoft.Azure.Amqp.Framing;
|
|
using Microsoft.Azure.Amqp.Framing;
|
|
using System.Security.Policy;
|
|
using System.Security.Policy;
|
|
|
|
+using TEAMModelOS.SDK.Models.Service.BI;
|
|
|
|
|
|
namespace TEAMModelOS.FunctionV4.ServiceBus
|
|
namespace TEAMModelOS.FunctionV4.ServiceBus
|
|
{
|
|
{
|
|
@@ -510,6 +511,13 @@ namespace TEAMModelOS.FunctionV4.ServiceBus
|
|
await ActivityService.FixActivity(client, _dingDing, groupChange, "Art");
|
|
await ActivityService.FixActivity(client, _dingDing, groupChange, "Art");
|
|
//TODO学习活动
|
|
//TODO学习活动
|
|
//await FixActivity(client, stuListChange, "Learn");
|
|
//await FixActivity(client, stuListChange, "Learn");
|
|
|
|
+ if (groupChange.type.Equals("class") || groupChange.type.Equals("student"))
|
|
|
|
+ {
|
|
|
|
+ if (groupChange.stujoin.Count > 0)
|
|
|
|
+ await BIStats.SetTypeAddStats(client, groupChange.school, "Student", groupChange.stujoin.Count);//BI统计增/减量
|
|
|
|
+ if (groupChange.stuleave.Count > 0)
|
|
|
|
+ await BIStats.SetTypeAddStats(client, groupChange.school, "Student", -groupChange.stuleave.Count);//BI统计增/减量
|
|
|
|
+ }
|
|
|
|
|
|
if (groupChange.type == null || !groupChange.type.Equals("research") || !groupChange.type.Equals("yxtrain") || !groupChange.type.Equals("activity"))
|
|
if (groupChange.type == null || !groupChange.type.Equals("research") || !groupChange.type.Equals("yxtrain") || !groupChange.type.Equals("activity"))
|
|
{
|
|
{
|
|
@@ -1450,6 +1458,7 @@ namespace TEAMModelOS.FunctionV4.ServiceBus
|
|
msgs.Add(update);
|
|
msgs.Add(update);
|
|
|
|
|
|
DoLessonStudentRecord(_dingDing, _snowflakeId, lessonRecord, scope, client, school, tmdid, teacher, _serviceBus, _azureStorage, _configuration, lessonBase);
|
|
DoLessonStudentRecord(_dingDing, _snowflakeId, lessonRecord, scope, client, school, tmdid, teacher, _serviceBus, _azureStorage, _configuration, lessonBase);
|
|
|
|
+
|
|
}
|
|
}
|
|
catch (Exception ex)
|
|
catch (Exception ex)
|
|
{
|
|
{
|
|
@@ -1458,6 +1467,8 @@ namespace TEAMModelOS.FunctionV4.ServiceBus
|
|
}
|
|
}
|
|
|
|
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ await BIStats.SetTypeAddStats(client, lessonRecord.school, "Less", 0, 1, lessonRecord.clientInteractionCount);//BI统计增/减量
|
|
break;
|
|
break;
|
|
//更新 时间线
|
|
//更新 时间线
|
|
case "up-TimeLine":
|
|
case "up-TimeLine":
|
|
@@ -1763,6 +1774,7 @@ namespace TEAMModelOS.FunctionV4.ServiceBus
|
|
}
|
|
}
|
|
|
|
|
|
msgs.Add(update);
|
|
msgs.Add(update);
|
|
|
|
+ await BIStats.SetTypeAddStats(client, lessonRecord.school, "Less", 1, 0);//BI统计增/减量
|
|
break;
|
|
break;
|
|
default:
|
|
default:
|
|
break;
|
|
break;
|