优化sql

This commit is contained in:
none 2023-04-04 09:58:44 +08:00
parent 7f9ca140da
commit af95beadad

View File

@ -35,7 +35,6 @@
group by `course_id`) as `t2`
on `t2`.`course_id` = `t1`.`course_id` and
`t2`.`latest_at` = `t1`.`updated_at`
where `t1`.`user_id` = #{userId}
order by `t1`.`updated_at` desc
limit #{size};
</select>