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 org.apache.ibatis.type.Alias;
|
|
import java.util.Date;
|
|
/**
|
* 设备维护
|
*/
|
@Alias("DeviceMaintain")
|
@TableName(schema = "db_experiment",value = "tb_device_maintain")
|
public class DeviceMaintain {
|
private Integer num;
|
@TableId(type = IdType.INPUT)
|
private Integer deviceId;
|
/**设备在库信息*/
|
@TableField(exist = false)
|
private DeviceManage deviceManage;
|
/**维护厂家*/
|
private String owner;
|
/**维护人员*/
|
private String owner2;
|
/**联系电话*/
|
private String phone;
|
/**维护周期,单位为月*/
|
private Integer cycle;
|
/**首次维护时间*/
|
@JsonFormat(pattern = "yyyy-MM-dd",timezone = "Asia/Shanghai")
|
private Date firstTime;
|
/**提前提醒时间,单位为天*/
|
private Integer reminderAheadUnit;
|
/**提醒方式:1-列表提醒,2-页面弹窗,3-短信提醒*/
|
private Integer reminderType;
|
/**状态:1-有效,0-失效*/
|
private Integer status;
|
/**记录类型:1-计划,0-记录*/
|
@TableField("is_plan")
|
private Integer plan;
|
/**实际维护时间*/
|
@JsonFormat(pattern = "yyyy-MM-dd",timezone = "Asia/Shanghai")
|
private Date actualTime;
|
/**实际维护人员*/
|
private String actualOwner2;
|
/**主要维护内容*/
|
private String content;
|
/**最后维护时间,动态计算*/
|
@JsonFormat(pattern = "yyyy-MM-dd",timezone = "Asia/Shanghai")
|
private Date lastMaintainTime;
|
|
public Integer getNum() {
|
return num;
|
}
|
|
public void setNum(Integer num) {
|
this.num = num;
|
}
|
|
public Integer getDeviceId() {
|
return deviceId;
|
}
|
|
public void setDeviceId(Integer deviceId) {
|
this.deviceId = deviceId;
|
}
|
|
public String getOwner() {
|
return owner;
|
}
|
|
public void setOwner(String owner) {
|
this.owner = owner;
|
}
|
|
public String getOwner2() {
|
return owner2;
|
}
|
|
public void setOwner2(String owner2) {
|
this.owner2 = owner2;
|
}
|
|
public String getPhone() {
|
return phone;
|
}
|
|
public void setPhone(String phone) {
|
this.phone = phone;
|
}
|
|
public Integer getCycle() {
|
return cycle;
|
}
|
|
public void setCycle(Integer cycle) {
|
this.cycle = cycle;
|
}
|
|
public Integer getReminderAheadUnit() {
|
return reminderAheadUnit;
|
}
|
|
public void setReminderAheadUnit(Integer reminderAheadUnit) {
|
this.reminderAheadUnit = reminderAheadUnit;
|
}
|
|
public Integer getReminderType() {
|
return reminderType;
|
}
|
|
public void setReminderType(Integer reminderType) {
|
this.reminderType = reminderType;
|
}
|
|
public Date getFirstTime() {
|
return firstTime;
|
}
|
|
public void setFirstTime(Date firstTime) {
|
this.firstTime = firstTime;
|
}
|
|
public Integer getStatus() {
|
return status;
|
}
|
|
public void setStatus(Integer status) {
|
this.status = status;
|
}
|
|
public Date getActualTime() {
|
return actualTime;
|
}
|
|
public void setActualTime(Date actualTime) {
|
this.actualTime = actualTime;
|
}
|
|
public String getActualOwner2() {
|
return actualOwner2;
|
}
|
|
public void setActualOwner2(String actualOwner2) {
|
this.actualOwner2 = actualOwner2;
|
}
|
|
public String getContent() {
|
return content;
|
}
|
|
public void setContent(String content) {
|
this.content = content;
|
}
|
|
public DeviceManage getDeviceManage() {
|
return deviceManage;
|
}
|
|
public void setDeviceManage(DeviceManage deviceManage) {
|
this.deviceManage = deviceManage;
|
}
|
|
public Integer getPlan() {
|
return plan;
|
}
|
|
public void setPlan(Integer plan) {
|
this.plan = plan;
|
}
|
|
public Date getLastMaintainTime() {
|
return lastMaintainTime;
|
}
|
|
public void setLastMaintainTime(Date lastMaintainTime) {
|
this.lastMaintainTime = lastMaintainTime;
|
}
|
}
|