package com.whyc.pojo; import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.TableName; import com.fasterxml.jackson.annotation.JsonFormat; import org.apache.ibatis.type.Alias; import org.springframework.format.annotation.DateTimeFormat; import java.util.Date; /** * 试验计划 */ @Alias("TestPlan") @TableName(schema = "`db_experiment`",value = "`tb_test_plan`") public class TestPlan { @TableId(value = "num") private Integer num; private String planName;//试验名称 private String proId;//所属项目id private String proName;//所属项目名称 private String testType;//试验类别:普通 private String testCase;//试验用例:试验用例1,试验用例2 private String testAddress;//试验场地:1号实验室 @JsonFormat(timezone = "Asia/Shanghai",pattern = "yyyy-MM-dd HH:mm:ss") @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") private Date startTime;//试验开始时间 @JsonFormat(timezone = "Asia/Shanghai",pattern = "yyyy-MM-dd HH:mm:ss") @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") private Date endTime;//试验结束时间 private String testers;//参与人员 private String devices;//参试设备 private String testWay;//试验方式:手动加载、自动加载 private Float testDuration;//加载时长 private String note;//注意事项 @JsonFormat(timezone = "Asia/Shanghai",pattern = "yyyy-MM-dd HH:mm:ss") @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") private Date createTime;//创建时间 private String creator;//创建人 private Integer state;//状态:0:未开始,1:进行中,2:已结束,3:作废;审核状态:2(已结束时):未审核,6:已审核,8:已归档 private String verifier;//审核人 private Integer planCount;//计划次数 private Integer testCount;//实际次数 private String conclusion;//试验结论 public TestPlan() { } @Override public String toString() { return "TestPlan{" + "num=" + num + ", planName='" + planName + '\'' + ", proId=" + proId + ", proName='" + proName + '\'' + ", testType='" + testType + '\'' + ", testCase='" + testCase + '\'' + ", testAddress='" + testAddress + '\'' + ", startTime=" + startTime + ", endTime=" + endTime + ", testers='" + testers + '\'' + ", devices='" + devices + '\'' + ", testWay='" + testWay + '\'' + ", testDuration=" + testDuration + ", note='" + note + '\'' + ", createTime=" + createTime + ", creator='" + creator + '\'' + ", state=" + state + ", verifier='" + verifier + '\'' + ", planCount=" + planCount + ", testCount=" + testCount + ", conclusion='" + conclusion + '\'' + '}'; } public Integer getNum() { return num; } public void setNum(Integer num) { this.num = num; } public String getPlanName() { return planName; } public void setPlanName(String planName) { this.planName = planName; } public String getProId() { return proId; } public void setProId(String proId) { this.proId = proId; } public String getProName() { return proName; } public void setProName(String proName) { this.proName = proName; } public String getTestType() { return testType; } public void setTestType(String testType) { this.testType = testType; } public String getTestAddress() { return testAddress; } public void setTestAddress(String testAddress) { this.testAddress = testAddress; } 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 getTesters() { return testers; } public void setTesters(String testers) { this.testers = testers; } public String getDevices() { return devices; } public void setDevices(String devices) { this.devices = devices; } public String getTestWay() { return testWay; } public void setTestWay(String testWay) { this.testWay = testWay; } public Float getTestDuration() { return testDuration; } public void setTestDuration(Float testDuration) { this.testDuration = testDuration; } public String getNote() { return note; } public void setNote(String note) { this.note = note; } public Date getCreateTime() { return createTime; } public void setCreateTime(Date createTime) { this.createTime = createTime; } public String getCreator() { return creator; } public void setCreator(String creator) { this.creator = creator; } public Integer getState() { return state; } public void setState(Integer state) { this.state = state; } public String getVerifier() { return verifier; } public void setVerifier(String verifier) { this.verifier = verifier; } public String getTestCase() { return testCase; } public void setTestCase(String testCase) { this.testCase = testCase; } public Integer getPlanCount() { return planCount; } public void setPlanCount(Integer planCount) { this.planCount = planCount; } public Integer getTestCount() { return testCount; } public void setTestCount(Integer testCount) { this.testCount = testCount; } public String getConclusion() { return conclusion; } public void setConclusion(String conclusion) { this.conclusion = conclusion; } }