提交调整

This commit is contained in:
daihh
2022-12-12 10:10:39 +08:00
parent a98988eb10
commit 6d9f32e290
4 changed files with 107 additions and 1 deletions

View File

@@ -230,6 +230,7 @@ public class CourseFileApi extends ApiBaseController {
return error("保存上传课件文件信息失败", e.getMessage());
}
}
@GetMapping("/detail")
public JsonResponse<CourseFile> detail(String id) {

View File

@@ -73,7 +73,7 @@ public class CourseContent extends BaseEntity {
private String contentRefId;
/**
* 内容 具体的内容
* 内容 具体的内容,一般是json内容
* */
@Column(name = "content",columnDefinition = "mediumtext")
private String content;

View File

@@ -0,0 +1,11 @@
package com.xboe.school.study.dao;
import org.springframework.stereotype.Repository;
import com.xboe.core.orm.BaseDao;
import com.xboe.school.study.entity.StudyScorm;
@Repository
public class StudyScormDao extends BaseDao<StudyScorm>{
}

View File

@@ -0,0 +1,94 @@
package com.xboe.school.study.entity;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import com.xboe.core.SysConstant;
import com.xboe.core.orm.IdEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
* 学习scorm课程的相关内容记录
*
*/
@Data
@Entity
@EqualsAndHashCode(callSuper = false)
@Table(name = SysConstant.TABLE_PRE+"study_scorm")
public class StudyScorm extends IdEntity{
private static final long serialVersionUID = 1L;
/*
* 学习id
* */
@Column(name = "study_id",nullable=false,length = 20)
private String studyId;
/**
* 内容学习记录id
*/
@Column(name = "study_item_id",nullable=false,length = 20)
private String studyItemId;
/*
* 课程id
* */
@Column(name = "course_id",nullable=false,length = 20)
private String courseId;
/*
* 内容id
* */
@Column(name = "content_id",nullable=false,length = 20)
private String contentId;
/*
* 学员id
* */
@Column(name = "student_id",nullable=false,length = 20)
private String studentId;
/*
* 学员name
* */
@Column(name = "student_name",length = 30)
private String studentName;
/**
* sco的identifier
*/
@Column(name = "sco_id",length = 100)
private String scoId;
/**
* 本次sco的学习进度
*/
@Column(name = "progress")
private Integer progress;
/**
* 上次学习的时间点
*/
@Column(name = "last_time")
private Integer lastTime;
/**
* 1表未学习2表学习中9表学习完成
*/
@Column(name = "status",length=1)
private Integer status;
/**
* 存储对应的jsondata
*/
@Column(name = "json_data",length=1,columnDefinition = "text")
private String jsonData;
}