diff --git a/src/main/java/com/teaching/backend/utils/CourseCode.java b/src/main/java/com/teaching/backend/utils/CourseCode.java index 5d52ae7..d736cd4 100644 --- a/src/main/java/com/teaching/backend/utils/CourseCode.java +++ b/src/main/java/com/teaching/backend/utils/CourseCode.java @@ -9,7 +9,7 @@ public enum CourseCode { SI_ZHENG_EXIT(1, "思政目标存在"), KNOWS_EXIT(0, "存在关联的知识点"), TEACHER_ROLE_ID(1, "教师的角色id是1"), - TOTAL_OBJECTIVE_TYPE(5, "课程总目标"), + TOTAL_OBJECTIVE_TYPE(0, "课程总目标"), Total_EXIT(0, "课程总目标"), diff --git a/src/main/resources/mapper/CourseObjectivesMapper.xml b/src/main/resources/mapper/CourseObjectivesMapper.xml index 2acf2b7..602226f 100644 --- a/src/main/resources/mapper/CourseObjectivesMapper.xml +++ b/src/main/resources/mapper/CourseObjectivesMapper.xml @@ -10,7 +10,7 @@ select t2.* from course_objectives t2 inner join t1 on t1.id = t2.pid ) select * from t1 - order by t1.pid + order by t1.type