课程目标查询 加入排序

master
Alan 4 months ago
parent 0cd1adf54c
commit 7de8f3f56c
  1. 2
      src/main/java/com/teaching/backend/utils/CourseCode.java
  2. 2
      src/main/resources/mapper/CourseObjectivesMapper.xml

@ -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, "课程总目标"),

@ -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
</select>
<insert id="insertBatch" parameterType="java.util.List">

Loading…
Cancel
Save