|
|
@@ -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>
|