|
@@ -1121,6 +1121,7 @@ namespace TEAMModelOS.FunctionV4.ServiceBus
|
|
|
if (groupLists.IsNotEmpty() && !string.IsNullOrWhiteSpace(lessonRecord.periodId))
|
|
|
{
|
|
|
try {
|
|
|
+ var gplist = groupLists.FindAll(x => lessonRecord.groupIds.Contains(x.id));
|
|
|
School schoolObj = await client.GetContainer(Constant.TEAMModelOS, "School").ReadItemAsync<School>(lessonRecord.school, new PartitionKey("Base"));
|
|
|
//年级算法
|
|
|
var period = schoolObj.period.Find(x => x.id.Equals(lessonRecord.periodId));
|
|
@@ -1129,7 +1130,7 @@ namespace TEAMModelOS.FunctionV4.ServiceBus
|
|
|
{
|
|
|
int Month = DateTimeOffset.UtcNow.Month;
|
|
|
int Year = DateTimeOffset.UtcNow.Year;
|
|
|
- foreach (int year in groupLists.Select(x => x.year))
|
|
|
+ foreach (int year in gplist.Select(x => x.year))
|
|
|
{
|
|
|
int grade;
|
|
|
if (Month >= 1 && Month <= 6)
|