mirror of
https://github.com/PlayEdu/PlayEdu
synced 2025-12-25 20:35:35 +08:00
返回学习统计
This commit is contained in:
@@ -12,7 +12,18 @@
|
||||
</resultMap>
|
||||
|
||||
<sql id="Base_Column_List">
|
||||
id,user_id,duration,
|
||||
id,user_id,duration,
|
||||
created_date
|
||||
</sql>
|
||||
<select id="getUserDateDuration" resultType="java.lang.Integer">
|
||||
SELECT `duration`
|
||||
FROM `user_learn_duration_stats`
|
||||
where `user_id` = #{userId}
|
||||
and `created_date` = #{createdDate};
|
||||
</select>
|
||||
<select id="getUserDuration" resultType="java.lang.Integer">
|
||||
SELECT sum(`duration`)
|
||||
FROM `user_learn_duration_stats`
|
||||
where `user_id` = #{userId};
|
||||
</select>
|
||||
</mapper>
|
||||
|
||||
Reference in New Issue
Block a user