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;
|
}
|
}
|