|
@@ -83,7 +83,9 @@ namespace TEAMModelFunction
|
|
startTime = activity.startTime,
|
|
startTime = activity.startTime,
|
|
endTime = activity.endTime,
|
|
endTime = activity.endTime,
|
|
blob = activity.blob,
|
|
blob = activity.blob,
|
|
- owner = activity.owner
|
|
|
|
|
|
+ owner = activity.owner,
|
|
|
|
+ createTime = DateTimeOffset.UtcNow.ToUnixTimeMilliseconds(),
|
|
|
|
+ taskStatus = -1
|
|
};
|
|
};
|
|
await _dingDing.SendBotMsg($"{Environment.GetEnvironmentVariable("Option:Location")}-StuListService-FixActivity\n名单发生变更 新建活动中间表\n{stucourse.ToJsonString()}", GroupNames.醍摩豆服務運維群組);
|
|
await _dingDing.SendBotMsg($"{Environment.GetEnvironmentVariable("Option:Location")}-StuListService-FixActivity\n名单发生变更 新建活动中间表\n{stucourse.ToJsonString()}", GroupNames.醍摩豆服務運維群組);
|
|
await client.GetContainer("TEAMModelOS", "Student").UpsertItemAsync(stucourse, new PartitionKey(stucourse.code));
|
|
await client.GetContainer("TEAMModelOS", "Student").UpsertItemAsync(stucourse, new PartitionKey(stucourse.code));
|
|
@@ -105,7 +107,9 @@ namespace TEAMModelFunction
|
|
startTime = activity.startTime,
|
|
startTime = activity.startTime,
|
|
endTime = activity.endTime,
|
|
endTime = activity.endTime,
|
|
blob = activity.blob,
|
|
blob = activity.blob,
|
|
- owner = activity.owner
|
|
|
|
|
|
+ owner = activity.owner,
|
|
|
|
+ createTime = DateTimeOffset.UtcNow.ToUnixTimeMilliseconds(),
|
|
|
|
+ taskStatus = -1
|
|
};
|
|
};
|
|
await _dingDing.SendBotMsg($"{Environment.GetEnvironmentVariable("Option:Location")}-StuListService-FixActivity\n名单发生变更 新建活动中间表\n{stucourse.ToJsonString()}", GroupNames.醍摩豆服務運維群組);
|
|
await _dingDing.SendBotMsg($"{Environment.GetEnvironmentVariable("Option:Location")}-StuListService-FixActivity\n名单发生变更 新建活动中间表\n{stucourse.ToJsonString()}", GroupNames.醍摩豆服務運維群組);
|
|
await client.GetContainer("TEAMModelOS", "Teacher").UpsertItemAsync(stucourse, new PartitionKey(stucourse.code));
|
|
await client.GetContainer("TEAMModelOS", "Teacher").UpsertItemAsync(stucourse, new PartitionKey(stucourse.code));
|
|
@@ -179,7 +183,8 @@ namespace TEAMModelFunction
|
|
school = course.school,
|
|
school = course.school,
|
|
creatorId = course.creatorId,
|
|
creatorId = course.creatorId,
|
|
pk = "StuCourse",
|
|
pk = "StuCourse",
|
|
- stulist = new List<string> { stuListChange.listid }
|
|
|
|
|
|
+ stulist = new List<string> { stuListChange.listid },
|
|
|
|
+ createTime = DateTimeOffset.UtcNow.ToUnixTimeMilliseconds()
|
|
};
|
|
};
|
|
await _dingDing.SendBotMsg($"{Environment.GetEnvironmentVariable("Option:Location")}-StuListService-FixStuCourse\n名单发生变更 新建课程中间表\n{stucourse.ToJsonString()}", GroupNames.醍摩豆服務運維群組);
|
|
await _dingDing.SendBotMsg($"{Environment.GetEnvironmentVariable("Option:Location")}-StuListService-FixStuCourse\n名单发生变更 新建课程中间表\n{stucourse.ToJsonString()}", GroupNames.醍摩豆服務運維群組);
|
|
await client.GetContainer("TEAMModelOS", "Student").UpsertItemAsync(stucourse, new PartitionKey(stucourse.code));
|
|
await client.GetContainer("TEAMModelOS", "Student").UpsertItemAsync(stucourse, new PartitionKey(stucourse.code));
|
|
@@ -197,7 +202,8 @@ namespace TEAMModelFunction
|
|
school = course.school,
|
|
school = course.school,
|
|
creatorId = course.creatorId,
|
|
creatorId = course.creatorId,
|
|
pk = "StuCourse",
|
|
pk = "StuCourse",
|
|
- stulist= new List<string> { stuListChange .listid}
|
|
|
|
|
|
+ stulist= new List<string> { stuListChange .listid},
|
|
|
|
+ createTime = DateTimeOffset.UtcNow.ToUnixTimeMilliseconds()
|
|
};
|
|
};
|
|
await _dingDing.SendBotMsg($"{Environment.GetEnvironmentVariable("Option:Location")}-StuListService-FixStuCourse\n名单发生变更 新建课程中间表\n{stucourse.ToJsonString()}", GroupNames.醍摩豆服務運維群組);
|
|
await _dingDing.SendBotMsg($"{Environment.GetEnvironmentVariable("Option:Location")}-StuListService-FixStuCourse\n名单发生变更 新建课程中间表\n{stucourse.ToJsonString()}", GroupNames.醍摩豆服務運維群組);
|
|
await client.GetContainer("TEAMModelOS", "Teacher").UpsertItemAsync(stucourse, new PartitionKey(stucourse.code));
|
|
await client.GetContainer("TEAMModelOS", "Teacher").UpsertItemAsync(stucourse, new PartitionKey(stucourse.code));
|