Эх сурвалжийг харах

(*)查询学生导出目标列表;

linxiaobin 4 сар өмнө
parent
commit
5f4f89e9b7

+ 1 - 1
education-business/src/main/resources/mapper/education/StuGoalInfoMapper.xml

@@ -76,7 +76,7 @@
         left join course_section
         ON  goal_info.course_id = course_section.course_id AND goal_info.course_section_id = course_section.id
         left join (select a.* from stu_goal_info a,
-        (select goal_info_id,max(id) as id from stu_goal_info where stu_goal_info.student_id = #{studentId}) AS b
+        (select goal_info_id,max(id) as id from stu_goal_info where stu_goal_info.student_id = #{studentId} GROUP BY goal_info_id) AS b
         where a.id = b.id) as l
         on goal_info.id = l.goal_info_id
         <where>