mirror of
https://github.com/PlayEdu/PlayEdu
synced 2025-12-25 20:35:35 +08:00
user/courses返回学员的线上课学习课时数量
This commit is contained in:
@@ -34,9 +34,9 @@ spring:
|
||||
task:
|
||||
execution:
|
||||
pool:
|
||||
max-size: 8 #最大线程数量
|
||||
core-size: 4 #初始化线程数量
|
||||
queue-capacity: 1000 #队列最大长度
|
||||
max-size: 4 #最大线程数量
|
||||
core-size: 2 #初始化线程数量
|
||||
queue-capacity: 10000 #队列最大长度
|
||||
keep-alive: 60s #线程终止前允许保存的最大时间
|
||||
shutdown:
|
||||
await-termination: true
|
||||
|
||||
@@ -39,4 +39,17 @@
|
||||
order by `t1`.`updated_at` desc
|
||||
limit #{size};
|
||||
</select>
|
||||
<select id="getUserCourseHourCount"
|
||||
resultType="xyz.playedu.api.types.mapper.UserCourseHourRecordCountMapper">
|
||||
SELECT `course_id`, count(1) AS `total`
|
||||
FROM `user_course_hour_records`
|
||||
WHERE `user_id` = #{userId}
|
||||
<if test="courseIds != null and #{courseIds}.size() > 0">
|
||||
AND `course_id` IN (<foreach collection="courseIds" item="courseId" separator=",">#{courseId}</foreach>)
|
||||
</if>
|
||||
<if test="isFinished != null">
|
||||
AND `is_finisehd` = #{isFinished}
|
||||
</if>
|
||||
GROUP BY `course_id`;
|
||||
</select>
|
||||
</mapper>
|
||||
|
||||
Reference in New Issue
Block a user