package com.boying.entity; import com.boying.common.BaseEntity; import com.boying.common.SystemConfigProperties; import com.boying.common.util.SpringUtils; import com.boying.common.util.StringUtil; import javax.persistence.Entity; import javax.persistence.Table; @Table(name = "studyData") @Entity public class StudyData extends BaseEntity { private String name; private Long dirId; private double time;//得分 private double time2;//学习时长 private String type; private String studyPath; private int fileType;//0:pdf 1:mp4 private String tengXunId; public String getName() { return name; } public void setName(String name) { this.name = name; } public Long getDirId() { return dirId; } public void setDirId(Long dirId) { this.dirId = dirId; } public double getTime() { return time; } public void setTime(double time) { this.time = time; } public String getType() { return type; } public void setType(String type) { this.type = type; } public String getStudyPath() { if(!StringUtil.isNullOrEmpty(studyPath)){ SystemConfigProperties systemConfigProperties = SpringUtils.getBean("systemConfigProperties"); String img2 = ""; img2+= systemConfigProperties.getIp()+ systemConfigProperties.getShowImg()+studyPath; return img2; } return studyPath; } public void setStudyPath(String studyPath) { this.studyPath = studyPath; } public int getFileType() { return fileType; } public void setFileType(int fileType) { this.fileType = fileType; } public String getTengXunId() { return tengXunId; } public void setTengXunId(String tengXunId) { this.tengXunId = tengXunId; } public double getTime2() { return time2; } public void setTime2(double time2) { this.time2 = time2; } }