package com.qianwen.mdc.domain;
|
|
import java.io.Serializable;
|
|
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.JsonIgnoreProperties;
|
|
@JsonIgnoreProperties(ignoreUnknown = true)
|
@TableName( "machine")
|
public class Machine implements Serializable {
|
//public static final String STATE_FLAG_NORMAL = "NORMAL";
|
//public static final String STATE_FLAG_REMOVED = "REMOVED";
|
|
/**
|
* id,与台账中的machine_id相同
|
*/
|
@TableId(type=IdType.INPUT)
|
private Long id;
|
|
|
|
/**
|
* IP地址
|
*/
|
private String ip;
|
|
/**
|
* 采集端口
|
*/
|
private Integer port;
|
|
|
|
/**
|
* 采集数据使用的协议id
|
*/
|
//@Column(name = "protocol_id")
|
@TableField("protocol_id")
|
private Integer protocolId;
|
|
|
/**
|
* user id
|
*/
|
//@Column(name = "user_id")
|
//private Integer userId;
|
|
|
/**
|
* 状态标志,NORMAL 正常;REMOVED 移除(暂时移除车间,不继续采集,但保存已有数据,但可恢复为正常);
|
*/
|
|
public Integer getIsCollect() {
|
return isCollect;
|
}
|
|
public void setIsCollect(Integer isCollect) {
|
this.isCollect = isCollect;
|
}
|
|
public static long getSerialVersionUID() {
|
return serialVersionUID;
|
}
|
|
/**
|
* collect flag
|
*/
|
//@Column(name = "is_collect")
|
private Integer isCollect;
|
|
|
/**
|
* shift type
|
*/
|
//@Column(name = "shift_type")
|
private Integer shiftType;
|
|
/**
|
* machine name in dnc
|
*/
|
//@Column(name = "dnc_name")
|
private String dncName;
|
|
/**
|
* 机床数据传输模式:0. com; 1. share; 2. net
|
*/
|
//@Column(name = "trans_mode")
|
private int transMode;
|
|
/**
|
* 关注状态(0.不关注;1.关注)默认为0
|
*/
|
private Integer concern;
|
|
public Integer getConcern() {
|
return concern;
|
}
|
|
public void setConcern(Integer concern) {
|
this.concern = concern;
|
}
|
|
/**
|
* 是否关注
|
* @return
|
*/
|
public boolean isConcerned() {
|
return this.concern != null && this.concern == 1;
|
}
|
private static final long serialVersionUID = 1L;
|
|
public Long getId() {
|
return id;
|
}
|
|
public void setId(Long id) {
|
this.id = id;
|
}
|
|
public String getIp() {
|
return ip;
|
}
|
|
|
public void setIp(String ip) {
|
this.ip = ip;
|
}
|
|
public Integer getPort() {
|
return port;
|
}
|
|
public void setPort(Integer port) {
|
this.port = port;
|
}
|
|
public Integer getProtocolId() {
|
return protocolId;
|
}
|
|
public void setProtocolId(Integer protocolId) {
|
this.protocolId = protocolId;
|
}
|
|
|
public Integer getShiftType() {
|
return shiftType;
|
}
|
|
public void setShiftType(Integer shiftType) {
|
this.shiftType = shiftType;
|
}
|
|
public String getDncName() {
|
return dncName;
|
}
|
|
public void setDncName(String dncName) {
|
this.dncName = dncName;
|
}
|
|
public int getTransMode() {
|
return transMode;
|
}
|
|
public void setTransMode(int transMode) {
|
this.transMode = transMode;
|
}
|
|
|
|
}
|