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 int CONCERN_YES = 1; /** * 是否关注:否 */ public static final int CONCERN_NO = 0; /** * id,实际上引用台账中的machine_id */ @TableId(type=IdType.ASSIGN_ID) private Long id; /** * 所属厂房的id */ private Long plantId; /** * machine ip address */ private String ip; /** * machine port */ private Integer port; /** * 采集数据使用的协议id */ //@Column(name = "protocol_id") @TableField("protocol_id") //private Integer typeId; private Integer protocolId; private Long workshopId; private Long sectionId; /** * user id */ //@Column(name = "user_id") //private Integer userId; 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; /** * 车间名 */ //@Transient @TableField(exist = false) private String workshop; /** * 工段名 */ //@Transient @TableField(exist = false) private String section; /** * 机床状态 */ //@Transient @TableField(exist = false) private String status; /** * 图片地址 */ //@Transient //@TableField(exist = false) //private String pic; //@Transient //@TableField(exist = false) //private String efficiency; //@Transient //@TableField(exist = false) //private float utilizationDaily; //@Transient //@TableField(exist = false) //private String cycleCount; //完工件数 //@Transient //@TableField(exist = false) //private String cycleTime; /** * 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 Integer 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 String getWorkshop() { return workshop; } public void setWorkshop(String workshop) { this.workshop = workshop; } public String getSection() { return section; } public void setSection(String section) { this.section = section; } public String getStatus() { return status; } public void setStatus(String status) { this.status = status; } 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 Long getWorkshopId() { return workshopId; } public void setWorkshopId(Long workshopId) { this.workshopId = workshopId; } public Long getSectionId() { return sectionId; } public void setSectionId(Long sectionId) { this.sectionId = sectionId; } 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 Integer getTransMode() { return transMode; } public void setTransMode(Integer transMode) { this.transMode = transMode; } public Long getPlantId() { return plantId; } public void setPlantId(Long plantId) { this.plantId = plantId; } }