mirror of
https://github.com/PlayEdu/PlayEdu
synced 2025-06-24 13:22:42 +08:00
优化sql
This commit is contained in:
parent
7f9ca140da
commit
af95beadad
@ -35,7 +35,6 @@
|
|||||||
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`
|
||||||
where `t1`.`user_id` = #{userId}
|
|
||||||
order by `t1`.`updated_at` desc
|
order by `t1`.`updated_at` desc
|
||||||
limit #{size};
|
limit #{size};
|
||||||
</select>
|
</select>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user