mirror of
https://github.com/PlayEdu/PlayEdu
synced 2025-06-26 06:52:43 +08:00
fixed: 学员最近学习api返回记录不全
This commit is contained in:
parent
9778f1c06a
commit
d44592c773
@ -31,6 +31,7 @@
|
|||||||
from `user_course_hour_records` as `t1`
|
from `user_course_hour_records` as `t1`
|
||||||
inner join (select `course_id`, max(`updated_at`) as `latest_at`
|
inner join (select `course_id`, max(`updated_at`) as `latest_at`
|
||||||
from `user_course_hour_records`
|
from `user_course_hour_records`
|
||||||
|
where `user_id` = #{userId}
|
||||||
group by `course_id`) as `t2`
|
group by `course_id`) as `t2`
|
||||||
on `t2`.`course_id` = `t1`.`course_id` and
|
on `t2`.`course_id` = `t1`.`course_id` and
|
||||||
`t2`.`latest_at` = `t1`.`updated_at`
|
`t2`.`latest_at` = `t1`.`updated_at`
|
||||||
|
Loading…
x
Reference in New Issue
Block a user