From 2dffdd8f9d437350e00baafa6fca9fdbe690de36 Mon Sep 17 00:00:00 2001 From: daihh Date: Tue, 13 Dec 2022 10:18:58 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../xboe/module/course/entity/CourseFile.java | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/servers/boe-server-all/src/main/java/com/xboe/module/course/entity/CourseFile.java b/servers/boe-server-all/src/main/java/com/xboe/module/course/entity/CourseFile.java index 99eba75c..f9c75d37 100644 --- a/servers/boe-server-all/src/main/java/com/xboe/module/course/entity/CourseFile.java +++ b/servers/boe-server-all/src/main/java/com/xboe/module/course/entity/CourseFile.java @@ -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() { }