|
|
@@ -724,7 +724,7 @@ WHERE (AcademicYearNo = '" + strAcademicYear + "') and semester='" + strSemest |
|
|
|
if (entity.SyncType == "1") |
|
|
|
{ |
|
|
|
var LessonList = BaseRepository("paikeDbString").FindList<paikeList>( |
|
|
|
@"SELECT a.WEEK AS 'week', a.section AS 'sectoin', a.timetext AS 'timetext', c.NAME AS 'classname', c.number AS 'classnumber', |
|
|
|
@"SELECT a.WEEK AS 'week', a.section AS 'section', a.timetext AS 'timetext', c.NAME AS 'classname', c.number AS 'classnumber', |
|
|
|
r.NAME AS 'roomname', r.number AS 'ClassroomNo', GROUP_CONCAT(t.name) AS 'teachername', GROUP_CONCAT(t.number) AS 'teacherNumber', |
|
|
|
cu.NAME AS 'curriculunName', cu.number AS 'curriculunNumber', s.YEAR AS 'year', s.number AS 'semester' |
|
|
|
FROM tb_paike a |
|
|
@@ -759,10 +759,12 @@ WHERE (AcademicYearNo = '" + strAcademicYear + "') and semester='" + strSemest |
|
|
|
EmpName = item.teachername, |
|
|
|
LessonSortNo = lessonData.FirstOrDefault(m => m.LessonNo == item.curriculunNumber)?.LessonSortNo, |
|
|
|
ClassroomNo = classroomData.FirstOrDefault(m => m.ClassroomNo == item.ClassroomNo)?.ClassroomNo, |
|
|
|
//LessonTime = $"{item.week}{item.section}", |
|
|
|
LessonTime = item.week + item.section, |
|
|
|
CheckMark = "1", |
|
|
|
F_SchoolId = entity.F_SchoolId |
|
|
|
}; |
|
|
|
Util.Log.LogHelper.Info($"item week {item.week} section {item.section} , insertdata {insertData.LessonTime}"); |
|
|
|
if (oldArrangeLessonTermList.Count(m => m.AcademicYearNo == insertData.AcademicYearNo && m.Semester == insertData.Semester |
|
|
|
&& m.LessonNo == insertData.LessonNo && m.LessonDate.Value.Date == insertData.LessonDate.Value.Date |
|
|
|
&& m.DeptNo == insertData.DeptNo && m.MajorNo == insertData.MajorNo |
|
|
|