@@ -161,7 +161,7 @@ public interface FgBasicTeachingPlanMapper extends BaseMapper<BasicTeachingPlan>
@Select(" <script> "
+" SELECT "
+" p.courseDesign,p.num,p.lessonType,p.theoryClassHour,p.trainingHours,p.relationId,p.type,p.id AS lessonId,p.basicPlanId as basicPlanId, "
+" t.majorId "
+" t.majorId,pcr.semester,t.academicLevel "
+" FROM "
+" me_public_lessons p "
+" LEFT JOIN me_basic_teaching_plan t ON p.basicPlanId = t.id "
...
...
@@ -179,7 +179,7 @@ public interface FgBasicTeachingPlanMapper extends BaseMapper<BasicTeachingPlan>
+" SELECT "
+" p.courseDesign,p.num,p.lessonType,p.theoryClassHour,p.trainingHours,p.relationId,p.type, p.id AS lessonId,"
+" CONCAT(case when p.basicPlanId is null then s.basicPlanId else p.basicPlanId end) as basicPlanId, "
+" t.majorId "
+" t.majorId,pcr.semester,t.academicLevel "
+" FROM "
+" me_public_lessons_plan_relation s "
+" LEFT JOIN me_public_lessons p ON s.publicLessonId = p.id "
...
...
@@ -205,7 +205,7 @@ public interface FgBasicTeachingPlanMapper extends BaseMapper<BasicTeachingPlan>
@Select(" <script> "
+" SELECT "
+" p.courseDesign,p.num,p.lessonType,p.theoryClassHour,p.trainingHours,p.relationId,p.type,p.id AS lessonId,p.basicPlanId as basicPlanId, "
+" t.majorId "
+" t.majorId,t.academicLevel,pcr.semester "
+" FROM "
+" me_public_lessons p "
+" LEFT JOIN me_basic_teaching_plan t ON p.basicPlanId = t.id "
...
...
@@ -374,4 +374,9 @@ public interface FgBasicTeachingPlanMapper extends BaseMapper<BasicTeachingPlan>
@Select(" SELECT academicLevel FROM me_basic_teaching_plan WHERE relationId = #{relationId} AND TYPE = #{type} GROUP BY academicLevel having academicLevel is not null ")