mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/per-boe/java-servers.git
synced 2025-12-13 12:56:48 +08:00
提交修改
This commit is contained in:
@@ -3,6 +3,7 @@ package com.xboe.module.course.entity;
|
|||||||
import javax.persistence.Column;
|
import javax.persistence.Column;
|
||||||
import javax.persistence.Entity;
|
import javax.persistence.Entity;
|
||||||
import javax.persistence.Table;
|
import javax.persistence.Table;
|
||||||
|
import javax.persistence.Transient;
|
||||||
|
|
||||||
import com.xboe.core.SysConstant;
|
import com.xboe.core.SysConstant;
|
||||||
import com.xboe.core.orm.BaseEntity;
|
import com.xboe.core.orm.BaseEntity;
|
||||||
@@ -27,6 +28,18 @@ public class CourseFile extends BaseEntity {
|
|||||||
@Column(name = "name",nullable=false,length = 100)
|
@Column(name = "name",nullable=false,length = 100)
|
||||||
private String name;
|
private String name;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 所属机构id
|
||||||
|
*/
|
||||||
|
@Column(name = "org_id",length = 36)
|
||||||
|
private String orgId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 所属机构名称,冗余存储,因为机构是从其它服务查询过来的,不是本地的的,所以这里存储是为了方便查询显示
|
||||||
|
*/
|
||||||
|
@Column(name = "org_name",length = 100)
|
||||||
|
private String orgName;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 课程id,可以为空,管理员直接上传的课件,属于非课程课件
|
* 课程id,可以为空,管理员直接上传的课件,属于非课程课件
|
||||||
@@ -149,6 +162,12 @@ public class CourseFile extends BaseEntity {
|
|||||||
@Column(name = "remark",length = 200)
|
@Column(name = "remark",length = 200)
|
||||||
private String remark;
|
private String remark;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* duration 转化为分钟的显示
|
||||||
|
*/
|
||||||
|
@Transient
|
||||||
|
private Integer minute;
|
||||||
|
|
||||||
public CourseFile() {
|
public CourseFile() {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user