Browse Source

第三方排课数据双周时间计算错误的BUG

黑艺新账号
北京泉江 9 months ago
parent
commit
57b329fb80
1 changed files with 6 additions and 1 deletions
  1. +6
    -1
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/ArrangeLessonTerm/ArrangeLessonTermService.cs

+ 6
- 1
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/ArrangeLessonTerm/ArrangeLessonTermService.cs View File

@@ -2639,6 +2639,8 @@ group by AcademicYearNo,Semester,DeptNo,MajorNo,LessonNo,TeachClassNo,EmpNo,Les
var lessonEndDate = startDate.AddDays(endWeek * 7 - 1);
if (lessonEndDate > endDate) lessonEndDate = endDate;
#endregion

var weekType = dr["课程类型"].ToString();
#region 计算真正的上课时间
var lessonWeekData = dr["上课周几"].ToInt();
var lessonStartDateWeek = (int)lessonStartDate.DayOfWeek;
@@ -2652,11 +2654,14 @@ group by AcademicYearNo,Semester,DeptNo,MajorNo,LessonNo,TeachClassNo,EmpNo,Les
{
trueStartDate = lessonStartDate.AddDays(7 - (lessonStartDateWeek - lessonWeekData));
}
if (weekType == "双周")
{
trueStartDate = trueStartDate.AddDays(7);
}
#endregion

var intLesson = dr["上课节次"].ToInt();
var lessonTime = lessonTimes[intLesson];
var weekType = dr["课程类型"].ToString();
while (true)
{
//写入要导入替换的数据


Loading…
Cancel
Save