mirror of
https://github.com/PlayEdu/PlayEdu
synced 2025-12-25 20:35:35 +08:00
学员学习记录表
This commit is contained in:
27
src/main/resources/mapper/UserCourseHourRecordMapper.xml
Normal file
27
src/main/resources/mapper/UserCourseHourRecordMapper.xml
Normal file
@@ -0,0 +1,27 @@
|
||||
<?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.UserCourseHourRecordMapper">
|
||||
|
||||
<resultMap id="BaseResultMap" type="xyz.playedu.api.domain.UserCourseHourRecord">
|
||||
<id property="id" column="id" jdbcType="INTEGER"/>
|
||||
<result property="userId" column="user_id" jdbcType="INTEGER"/>
|
||||
<result property="courseId" column="course_id" jdbcType="INTEGER"/>
|
||||
<result property="hourId" column="hour_id" jdbcType="INTEGER"/>
|
||||
<result property="totalDuration" column="total_duration" jdbcType="INTEGER"/>
|
||||
<result property="finishedDuration" column="finished_duration" jdbcType="INTEGER"/>
|
||||
<result property="realDuration" column="real_duration" jdbcType="INTEGER"/>
|
||||
<result property="isFinished" column="is_finished" jdbcType="TINYINT"/>
|
||||
<result property="finishedAt" column="finished_at" jdbcType="TIMESTAMP"/>
|
||||
<result property="createdAt" column="created_at" jdbcType="TIMESTAMP"/>
|
||||
<result property="updatedAt" column="updated_at" jdbcType="TIMESTAMP"/>
|
||||
</resultMap>
|
||||
|
||||
<sql id="Base_Column_List">
|
||||
id,user_id,course_id,
|
||||
hour_id,total_duration,finished_duration,
|
||||
real_duration,is_finished,finished_at,
|
||||
created_at,updated_at
|
||||
</sql>
|
||||
</mapper>
|
||||
26
src/main/resources/mapper/UserCourseRecordMapper.xml
Normal file
26
src/main/resources/mapper/UserCourseRecordMapper.xml
Normal file
@@ -0,0 +1,26 @@
|
||||
<?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.UserCourseRecordMapper">
|
||||
|
||||
<resultMap id="BaseResultMap" type="xyz.playedu.api.domain.UserCourseRecord">
|
||||
<id property="id" column="id" jdbcType="INTEGER"/>
|
||||
<result property="userId" column="user_id" jdbcType="INTEGER"/>
|
||||
<result property="courseId" column="course_id" jdbcType="INTEGER"/>
|
||||
<result property="hourCount" column="hour_count" jdbcType="INTEGER"/>
|
||||
<result property="finishedCount" column="finished_count" jdbcType="INTEGER"/>
|
||||
<result property="progress" column="progress" jdbcType="INTEGER"/>
|
||||
<result property="isFinished" column="is_finished" jdbcType="TINYINT"/>
|
||||
<result property="finishedAt" column="finished_at" jdbcType="TIMESTAMP"/>
|
||||
<result property="createdAt" column="created_at" jdbcType="TIMESTAMP"/>
|
||||
<result property="updatedAt" column="updated_at" jdbcType="TIMESTAMP"/>
|
||||
</resultMap>
|
||||
|
||||
<sql id="Base_Column_List">
|
||||
id,user_id,course_id,
|
||||
hour_count,finished_count,progress,
|
||||
is_finished,finished_at,created_at,
|
||||
updated_at
|
||||
</sql>
|
||||
</mapper>
|
||||
20
src/main/resources/mapper/UserLearnDurationRecordMapper.xml
Normal file
20
src/main/resources/mapper/UserLearnDurationRecordMapper.xml
Normal file
@@ -0,0 +1,20 @@
|
||||
<?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.UserLearnDurationRecordMapper">
|
||||
|
||||
<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="duration" column="duration" jdbcType="INTEGER"/>
|
||||
<result property="startAt" column="start_at" jdbcType="TIMESTAMP"/>
|
||||
<result property="endAt" column="end_at" jdbcType="TIMESTAMP"/>
|
||||
</resultMap>
|
||||
|
||||
<sql id="Base_Column_List">
|
||||
id,user_id,date,
|
||||
duration,start_at,end_at
|
||||
</sql>
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user