whycrzg
2021-05-21 06fc824fdbd64b7221656a7b591b39fd5ccacc1f
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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
package com.whyc.pojo;
 
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.apache.ibatis.type.Alias;
 
import java.util.Date;
import java.util.List;
 
@Alias("Experiment")
@ApiModel
@TableName(schema = "`db_3.5mw_web`" , value = "`tb_experiment`")
public class Experiment<BaseData,Point> {
 
    @ApiModelProperty("试验编号")
    @TableId(type= IdType.INPUT)
    private String id;
    @ApiModelProperty("试验名称")
    private String name;
    @ApiModelProperty("试验类型:九大试验")
    private String type;
    @ApiModelProperty("对应的项目")
    private Integer projectId;
    @ApiModelProperty("被测设备SN")
    private String deviceSn;
    @ApiModelProperty("被测设备id")
    private String deviceId;
 
    @ApiModelProperty("各相绕组连接情况 0 引出; 1 内部连接")
    private Integer rz_link;
    @ApiModelProperty("启动时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "Asia/Shanghai")
    private Date startTime;
    @ApiModelProperty("结束时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "Asia/Shanghai")
    private Date endTime;
    /**单位:分钟*/
    @ApiModelProperty("试验时长")
    @TableField(exist = false)
    private String duration;
    @ApiModelProperty("负责人")
    private Integer userId;
    @ApiModelProperty("负责人姓名")
    @TableField(exist = false)
    private  String username;
    @ApiModelProperty("创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "Asia/Shanghai")
    private Date createTime;
    @ApiModelProperty("状态:-1-取消,0-未开始,1-进行中,2-完成")
    private Integer status;
    @ApiModelProperty("基础数据")
    @TableField(exist = false)
    private BaseData baseData;
    @ApiModelProperty("测试点")
    @TableField(exist = false)
    private List<Point> point;
 
    public String getId() {
        return id;
    }
 
    public void setId(String id) {
        this.id = id;
    }
 
    public String getName() {
        return name;
    }
 
    public void setName(String name) {
        this.name = name;
    }
 
    public String getType() {
        return type;
    }
 
    public void setType(String type) {
        this.type = type;
    }
 
    public Integer getProjectId() {
        return projectId;
    }
 
    public void setProjectId(Integer projectId) {
        this.projectId = projectId;
    }
 
    public String getDeviceSn() {
        return deviceSn;
    }
 
    public void setDeviceSn(String deviceSn) {
        this.deviceSn = deviceSn;
    }
 
    public String getDeviceId() {
        return deviceId;
    }
 
    public void setDeviceId(String deviceId) {
        this.deviceId = deviceId;
    }
 
    public Integer getRz_link() {
        return rz_link;
    }
 
    public void setRz_link(Integer rz_link) {
        this.rz_link = rz_link;
    }
 
    public Date getStartTime() {
        return startTime;
    }
 
    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }
 
    public Date getEndTime() {
        return endTime;
    }
 
    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }
 
    public String getDuration() {
        return duration;
    }
 
    public void setDuration(String duration) {
        this.duration = duration;
    }
 
    public Integer getUserId() {
        return userId;
    }
 
    public void setUserId(Integer userId) {
        this.userId = userId;
    }
 
    public String getUsername() {
        return username;
    }
 
    public void setUsername(String username) {
        this.username = username;
    }
 
    public Date getCreateTime() {
        return createTime;
    }
 
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
 
    public Integer getStatus() {
        return status;
    }
 
    public void setStatus(Integer status) {
        this.status = status;
    }
 
    public BaseData getBaseData() {
        return baseData;
    }
 
    public void setBaseData(BaseData baseData) {
        this.baseData = baseData;
    }
 
    public List<Point> getPoint() {
        return point;
    }
 
    public void setPoint(List<Point> point) {
        this.point = point;
    }
}