Files
lpt-be/src/main/java/com/guo/learningprogresstracker/entity/StudyReportsEntity.java
T
cat-shark 22cc5dc871 feat(历史报告): 展示学习预期目标以区分各会话
StudyReportsEntity 新增 sessionExpectation 字段(非数据库),
getTaskReports() 查询后自动填充对应会话的预期描述,
前端报告条目显示 sessionNum + 预期目标。
2026-07-05 12:35:25 +08:00

44 lines
1.1 KiB
Java

package com.guo.learningprogresstracker.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import lombok.Data;
/**
* 存储每次学习结束时的完整学习报告
* @TableName study_reports
*/
@TableName(value ="study_reports")
@Data
public class StudyReportsEntity extends BaseEntity implements Serializable {
/**
*
*/
@TableId(value = "id", type = IdType.AUTO)
private Integer id;
/**
* 会话编码
*/
@TableField(value = "session_num")
private String sessionNum;
/**
* 完整的学习报告内容
*/
@TableField(value = "content")
private String content;
/**
* 对应学习会话的预期目标(非数据库字段,查询时填充)
*/
@TableField(exist = false)
private String sessionExpectation;
@TableField(exist = false)
private static final long serialVersionUID = 1L;
}