|
|
@@ -725,8 +725,8 @@ WHERE (AcademicYearNo = '" + strAcademicYear + "') and semester='" + strSemest |
|
|
|
{ |
|
|
|
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', |
|
|
|
r.NAME AS 'roomname', r.number AS 'roomnunber', GROUP_CONCAT(t.name) AS 'teachername', GROUP_CONCAT(t.number) AS 'teachernumber', |
|
|
|
cu.NAME AS 'currname', cu.number AS 'currnumber', s.YEAR AS 'semesteryear', s.number AS 'semesternumber' |
|
|
|
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 |
|
|
|
LEFT JOIN tb_clazz c ON c.id = a.`clazzid` |
|
|
|
LEFT JOIN tb_classroom r ON r.id = a.`classroomid` |
|
|
@@ -787,26 +787,28 @@ WHERE (AcademicYearNo = '" + strAcademicYear + "') and semester='" + strSemest |
|
|
|
else |
|
|
|
{ |
|
|
|
//TeachClass数据处理 20211214改为直接读取mysql库 |
|
|
|
var teachclasslist = BaseRepository("paikeDbString").FindList<TeachClassEntity>(@"SELECT clazz.name AS 'clazzname', |
|
|
|
clazz.number AS 'TeachClassNo', |
|
|
|
curriculum.name AS 'curriculumname', |
|
|
|
curriculum.number AS 'LessonNo', |
|
|
|
semester.year AS 'AcademicYearNo', |
|
|
|
semester.number AS 'Semester', |
|
|
|
a.jointclass AS 'jointclass', |
|
|
|
a.type AS 'LessonSortNo', |
|
|
|
a.classhour AS 'classhour', |
|
|
|
room.name AS 'roomname', |
|
|
|
room.number AS 'roomnumber', |
|
|
|
teacher.name AS 'teachername', |
|
|
|
teacher.number AS 'EmpNo' |
|
|
|
FROM tb_class_plan a |
|
|
|
LEFT JOIN tb_clazz clazz ON clazz.id = a.clazzid |
|
|
|
LEFT JOIN tb_semester semester ON semester.id = clazz.semester |
|
|
|
LEFT JOIN tb_curriculum curriculum ON curriculum.id = a.curriculum |
|
|
|
LEFT JOIN tb_classroom room ON room.id = a.classroom |
|
|
|
LEFT JOIN tb_teacher teacher ON teacher.id = a.teacher |
|
|
|
WHERE a.type='1' and semester.year = '" + entity.AcademicYearNo + "' AND semester.number = '" + entity.Semester + "'"); |
|
|
|
var teachclasslist = BaseRepository("paikeDbString").FindList<TeachClassEntity>(@"SELECT |
|
|
|
clazz.NAME AS 'clazzname', |
|
|
|
clazz.number AS 'TeachClassNo', |
|
|
|
curriculum.NAME AS 'curriculumname', |
|
|
|
curriculum.number AS 'LessonNo', |
|
|
|
semester.YEAR AS 'AcademicYearNo', |
|
|
|
semester.number AS 'Semester', |
|
|
|
a.jointclass AS 'jointclass', |
|
|
|
a.type AS 'LessonSortNo', |
|
|
|
a.classhour AS 'classhour', |
|
|
|
room.NAME AS 'roomname', |
|
|
|
room.number AS 'roomnumber', |
|
|
|
GROUP_CONCAT(teacher.name) AS 'teachername', |
|
|
|
GROUP_CONCAT(teacher.number) AS 'EmpNo' |
|
|
|
FROM |
|
|
|
tb_class_plan a |
|
|
|
LEFT JOIN tb_clazz clazz ON clazz.id = a.clazzid |
|
|
|
LEFT JOIN tb_semester semester ON semester.id = clazz.semester |
|
|
|
LEFT JOIN tb_curriculum curriculum ON curriculum.id = a.curriculum |
|
|
|
LEFT JOIN tb_classroom room ON room.id = a.classroom |
|
|
|
LEFT JOIN tb_teacher teacher ON FIND_IN_SET(teacher.id,a.teacher) |
|
|
|
WHERE a.type='1' and semester.year = '" + entity.AcademicYearNo + "' AND semester.number = '" + entity.Semester + "' group by a.id"); |
|
|
|
var TeachClassData = (await BaseRepository("CollegeMIS").FindListAsync<TeachClassEntity>(@"SELECT * |
|
|
|
FROM TeachClass |
|
|
|
WHERE (AcademicYearNo = '" + entity.AcademicYearNo + "') and semester='" + entity.Semester + "' and F_SchoolId='" + entity.F_SchoolId + "' ")).ToList(); |
|
|
|