提交修改

This commit is contained in:
daihh
2022-12-13 10:18:58 +08:00
parent 2fe68ffc59
commit 2dffdd8f9d

View File

@@ -3,6 +3,7 @@ package com.xboe.module.course.entity;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;
import com.xboe.core.SysConstant;
import com.xboe.core.orm.BaseEntity;
@@ -27,6 +28,18 @@ public class CourseFile extends BaseEntity {
@Column(name = "name",nullable=false,length = 100)
private String name;
/**
* 所属机构id
*/
@Column(name = "org_id",length = 36)
private String orgId;
/**
* 所属机构名称,冗余存储,因为机构是从其它服务查询过来的,不是本地的的,所以这里存储是为了方便查询显示
*/
@Column(name = "org_name",length = 100)
private String orgName;
/**
* 课程id,可以为空,管理员直接上传的课件,属于非课程课件
@@ -149,6 +162,12 @@ public class CourseFile extends BaseEntity {
@Column(name = "remark",length = 200)
private String remark;
/**
* duration 转化为分钟的显示
*/
@Transient
private Integer minute;
public CourseFile() {
}