mirror of
https://github.com/PlayEdu/PlayEdu
synced 2025-12-25 20:35:35 +08:00
学员真实学习时长记录
This commit is contained in:
@@ -7,14 +7,17 @@
|
||||
<resultMap id="BaseResultMap" type="xyz.playedu.api.domain.UserLearnDurationRecord">
|
||||
<id property="id" column="id" jdbcType="BIGINT"/>
|
||||
<result property="userId" column="user_id" jdbcType="INTEGER"/>
|
||||
<result property="date" column="date" jdbcType="DATE"/>
|
||||
<result property="createdDate" column="created_date" jdbcType="DATE"/>
|
||||
<result property="duration" column="duration" jdbcType="INTEGER"/>
|
||||
<result property="startAt" column="start_at" jdbcType="TIMESTAMP"/>
|
||||
<result property="endAt" column="end_at" jdbcType="TIMESTAMP"/>
|
||||
<result property="courseId" column="course_id" jdbcType="INTEGER"/>
|
||||
<result property="hourId" column="hour_id" jdbcType="INTEGER"/>
|
||||
</resultMap>
|
||||
|
||||
<sql id="Base_Column_List">
|
||||
id,user_id,date,
|
||||
duration,start_at,end_at
|
||||
id,user_id,created_date,
|
||||
duration,start_at,end_at,
|
||||
course_id,hour_id
|
||||
</sql>
|
||||
</mapper>
|
||||
|
||||
18
src/main/resources/mapper/UserLearnDurationStatsMapper.xml
Normal file
18
src/main/resources/mapper/UserLearnDurationStatsMapper.xml
Normal file
@@ -0,0 +1,18 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="xyz.playedu.api.mapper.UserLearnDurationStatsMapper">
|
||||
|
||||
<resultMap id="BaseResultMap" type="xyz.playedu.api.domain.UserLearnDurationStats">
|
||||
<id property="id" column="id" jdbcType="INTEGER"/>
|
||||
<result property="userId" column="user_id" jdbcType="INTEGER"/>
|
||||
<result property="duration" column="duration" jdbcType="INTEGER"/>
|
||||
<result property="createdDate" column="created_date" jdbcType="DATE"/>
|
||||
</resultMap>
|
||||
|
||||
<sql id="Base_Column_List">
|
||||
id,user_id,duration,
|
||||
created_date
|
||||
</sql>
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user