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
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 = "ziLiaoData")
@Entity
public class ZiLiaoData extends BaseEntity {
 
    private String name;
    private Long dirId;
    private double time;
    private String type;
    private String ziLiaoPath;
 
    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 getZiLiaoPath() {
        if(!StringUtil.isNullOrEmpty(ziLiaoPath)){
            SystemConfigProperties systemConfigProperties = SpringUtils.getBean("systemConfigProperties");
            String img2 = "";
            img2+= systemConfigProperties.getIp()+ systemConfigProperties.getShowImg2()+ziLiaoPath;
            return img2;
        }
        return ziLiaoPath;
    }
 
    public void setZiLiaoPath(String ziLiaoPath) {
        this.ziLiaoPath = ziLiaoPath;
    }
}