111
wang-hao-jie
2022-08-25 d90da0759bd93c7f429f6a20bc835782ad927c02
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
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;
    }
}