|
@@ -59,9 +59,9 @@
|
|
|
from activity_evaluation_record aer left join sys_user u on aer.user_id_ = u.id_
|
|
|
left join student stu on stu.user_id_ = aer.user_id_
|
|
|
left join subject s on s.id_ = stu.subject_id_
|
|
|
- where aer.id_ in (
|
|
|
+ where aer.id_ in (select * from (
|
|
|
select aer.id_ from activity_evaluation_record aer where aer.activity_id_ = #{activityPlanId} and aer.evaluation_id_ = #{activityEvaluationId} and aer.user_id_ = #{userId} and aer.score_ > 0
|
|
|
- order by aer.score_ desc,aer.times_ asc, aer.id_ asc limit 1
|
|
|
+ order by aer.score_ desc,aer.times_ asc, aer.id_ asc limit 1) a
|
|
|
)
|
|
|
</select>
|
|
|
|