|
@@ -184,7 +184,7 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration |
|
|
//必修 |
|
|
//必修 |
|
|
string sql = $@"insert into Exam_ExamPlanLesson(EPLId,EPId,LessonName,LessonNo) |
|
|
string sql = $@"insert into Exam_ExamPlanLesson(EPLId,EPId,LessonName,LessonNo) |
|
|
select NEWID(),'{EPId}',LessonName+'('+grade+')',LessonNo+'('+grade+')' from Exam_ExamLesson where ELEnabled=1 and AcademicYearNo='{exam_ExamPlan.AcademicYearNo}' and Semester='{exam_ExamPlan.Semester}' |
|
|
select NEWID(),'{EPId}',LessonName+'('+grade+')',LessonNo+'('+grade+')' from Exam_ExamLesson where ELEnabled=1 and AcademicYearNo='{exam_ExamPlan.AcademicYearNo}' and Semester='{exam_ExamPlan.Semester}' |
|
|
and LessonNo not in (select LessonNo+'('+grade+')' from Exam_ExamPlanLesson where EPId='{EPId}') |
|
|
|
|
|
|
|
|
and LessonNo+'('+grade+')' not in (select LessonNo from Exam_ExamPlanLesson where EPId='{EPId}') |
|
|
group by LessonNo,grade,LessonName"; |
|
|
group by LessonNo,grade,LessonName"; |
|
|
this.BaseRepository("CollegeMIS").ExecuteBySql(sql); |
|
|
this.BaseRepository("CollegeMIS").ExecuteBySql(sql); |
|
|
} |
|
|
} |
|
|