[xingyu.guo] feat: 1. 替换所有响应值中的id为num,不将非业务字段展示给外部 2. 调整[实际使用时间]等字段类型为double,方便计算\保存与读取 3. 【获取所有任务列表】api,完善功能,并增加分页功能 4.将int类型修改为使用Integer,更加安全

This commit is contained in:
guo
2024-09-22 08:20:48 +08:00
parent 7315f02ce6
commit 6005782b14
12 changed files with 86 additions and 67 deletions
@@ -4,25 +4,4 @@
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.guo.learningprogresstracker.mapper.StudySessionsMapper">
<resultMap id="BaseResultMap" type="com.guo.learningprogresstracker.entity.StudySessionsEntity">
<id property="sessionId" column="session_id" jdbcType="INTEGER"/>
<result property="taskId" column="task_id" jdbcType="INTEGER"/>
<result property="startTime" column="start_time" jdbcType="TIMESTAMP"/>
<result property="endTime" column="end_time" jdbcType="TIMESTAMP"/>
<result property="actualTime" column="actual_time" jdbcType="INTEGER"/>
<result property="effectiveTime" column="effective_time" jdbcType="INTEGER"/>
<result property="effectivenessRatio" column="effectiveness_ratio" jdbcType="FLOAT"/>
<result property="sessionState" column="session_state" jdbcType="VARCHAR"/>
<result property="createdBy" column="created_by" jdbcType="VARCHAR"/>
<result property="lastModifiedTime" column="last_modified_time" jdbcType="TIMESTAMP"/>
<result property="lastModifiedBy" column="last_modified_by" jdbcType="VARCHAR"/>
<result property="createdTime" column="created_time" jdbcType="TIMESTAMP"/>
</resultMap>
<sql id="Base_Column_List">
session_id,task_id,start_time,
end_time,actual_time,effective_time,
effectiveness_ratio,session_state,created_by,
last_modified_time,last_modified_by,created_time
</sql>
</mapper>