package com.qianwen.mdc.domain;
|
|
import java.io.Serializable;
|
|
import com.baomidou.mybatisplus.annotation.IdType;
|
import com.baomidou.mybatisplus.annotation.TableId;
|
import com.baomidou.mybatisplus.annotation.TableName;
|
|
@TableName("mdc_utilization")
|
public class MdcUtilization implements Serializable {
|
/**
|
* primary key
|
*/
|
@TableId(type=IdType.AUTO)
|
private Long id;
|
|
/**
|
* unique id
|
*/
|
private String uid;
|
|
/**
|
* machine name
|
*/
|
private String name;
|
|
/**
|
* machine model
|
*/
|
private String model;
|
|
/**
|
* machine category
|
*/
|
private String category;
|
|
/**
|
* cnc system
|
*/
|
//@Column(name = "cnc_system")
|
private String cncSystem;
|
|
/**
|
* workshop
|
*/
|
private String workshop;
|
|
/**
|
* section
|
*/
|
private String section;
|
|
/**
|
* shift type
|
*/
|
private Integer shift;
|
|
/**
|
* collect date
|
*/
|
private String cdate;
|
|
/**
|
* cut time
|
*/
|
//@Column(name = "cut_time")
|
private Integer cutTime;
|
|
/**
|
* boot time
|
*/
|
//@Column(name = "boot_time")
|
private Integer bootTime;
|
|
/**
|
* three shift time
|
*/
|
//@Column(name = "three_shift_time")
|
private Integer threeShiftTime;
|
|
/**
|
* two shift time
|
*/
|
//@Column(name = "two_shift_time")
|
private Integer twoShiftTime;
|
|
/**
|
* machine down time
|
*/
|
//@Column(name = "down_time")
|
private Integer downTime;
|
|
/**
|
* factory
|
*/
|
private Integer factory;
|
|
private static final long serialVersionUID = 1L;
|
|
/**
|
* 获取primary key
|
*
|
* @return id - primary key
|
*/
|
public Long getId() {
|
return id;
|
}
|
|
/**
|
* 设置primary key
|
*
|
* @param id primary key
|
*/
|
public void setId(Long id) {
|
this.id = id;
|
}
|
|
/**
|
* 获取unique id
|
*
|
* @return uid - unique id
|
*/
|
public String getUid() {
|
return uid;
|
}
|
|
/**
|
* 设置unique id
|
*
|
* @param uid unique id
|
*/
|
public void setUid(String uid) {
|
this.uid = uid;
|
}
|
|
/**
|
* 获取machine name
|
*
|
* @return name - machine name
|
*/
|
public String getName() {
|
return name;
|
}
|
|
/**
|
* 设置machine name
|
*
|
* @param name machine name
|
*/
|
public void setName(String name) {
|
this.name = name;
|
}
|
|
/**
|
* 获取machine model
|
*
|
* @return model - machine model
|
*/
|
public String getModel() {
|
return model;
|
}
|
|
/**
|
* 设置machine model
|
*
|
* @param model machine model
|
*/
|
public void setModel(String model) {
|
this.model = model;
|
}
|
|
/**
|
* 获取machine category
|
*
|
* @return category - machine category
|
*/
|
public String getCategory() {
|
return category;
|
}
|
|
/**
|
* 设置machine category
|
*
|
* @param category machine category
|
*/
|
public void setCategory(String category) {
|
this.category = category;
|
}
|
|
/**
|
* 获取cnc system
|
*
|
* @return cnc_system - cnc system
|
*/
|
public String getCncSystem() {
|
return cncSystem;
|
}
|
|
/**
|
* 设置cnc system
|
*
|
* @param cncSystem cnc system
|
*/
|
public void setCncSystem(String cncSystem) {
|
this.cncSystem = cncSystem;
|
}
|
|
/**
|
* 获取workshop
|
*
|
* @return workshop - workshop
|
*/
|
public String getWorkshop() {
|
return workshop;
|
}
|
|
/**
|
* 设置workshop
|
*
|
* @param workshop workshop
|
*/
|
public void setWorkshop(String workshop) {
|
this.workshop = workshop;
|
}
|
|
/**
|
* 获取section
|
*
|
* @return section - section
|
*/
|
public String getSection() {
|
return section;
|
}
|
|
/**
|
* 设置section
|
*
|
* @param section section
|
*/
|
public void setSection(String section) {
|
this.section = section;
|
}
|
|
/**
|
* 获取shift type
|
*
|
* @return shift - shift type
|
*/
|
public Integer getShift() {
|
return shift;
|
}
|
|
/**
|
* 设置shift type
|
*
|
* @param shift shift type
|
*/
|
public void setShift(Integer shift) {
|
this.shift = shift;
|
}
|
|
/**
|
* 获取collect date
|
*
|
* @return cdate - collect date
|
*/
|
public String getCdate() {
|
return cdate;
|
}
|
|
/**
|
* 设置collect date
|
*
|
* @param cdate collect date
|
*/
|
public void setCdate(String cdate) {
|
this.cdate = cdate;
|
}
|
|
/**
|
* 获取cut time
|
*
|
* @return cut_time - cut time
|
*/
|
public Integer getCutTime() {
|
return cutTime;
|
}
|
|
/**
|
* 设置cut time
|
*
|
* @param cutTime cut time
|
*/
|
public void setCutTime(Integer cutTime) {
|
this.cutTime = cutTime;
|
}
|
|
/**
|
* 获取boot time
|
*
|
* @return boot_time - boot time
|
*/
|
public Integer getBootTime() {
|
return bootTime;
|
}
|
|
/**
|
* 设置boot time
|
*
|
* @param bootTime boot time
|
*/
|
public void setBootTime(Integer bootTime) {
|
this.bootTime = bootTime;
|
}
|
|
/**
|
* 获取three shift time
|
*
|
* @return three_shift_time - three shift time
|
*/
|
public Integer getThreeShiftTime() {
|
return threeShiftTime;
|
}
|
|
/**
|
* 设置three shift time
|
*
|
* @param threeShiftTime three shift time
|
*/
|
public void setThreeShiftTime(Integer threeShiftTime) {
|
this.threeShiftTime = threeShiftTime;
|
}
|
|
/**
|
* 获取two shift time
|
*
|
* @return two_shift_time - two shift time
|
*/
|
public Integer getTwoShiftTime() {
|
return twoShiftTime;
|
}
|
|
/**
|
* 设置two shift time
|
*
|
* @param twoShiftTime two shift time
|
*/
|
public void setTwoShiftTime(Integer twoShiftTime) {
|
this.twoShiftTime = twoShiftTime;
|
}
|
|
/**
|
* 获取machine down time
|
*
|
* @return down_time - machine down time
|
*/
|
public Integer getDownTime() {
|
return downTime;
|
}
|
|
/**
|
* 设置machine down time
|
*
|
* @param downTime machine down time
|
*/
|
public void setDownTime(Integer downTime) {
|
this.downTime = downTime;
|
}
|
|
/**
|
* 获取factory
|
*
|
* @return factory - factory
|
*/
|
public Integer getFactory() {
|
return factory;
|
}
|
|
/**
|
* 设置factory
|
*
|
* @param factory factory
|
*/
|
public void setFactory(Integer factory) {
|
this.factory = factory;
|
}
|
|
@Override
|
public String toString() {
|
StringBuilder sb = new StringBuilder();
|
sb.append(getClass().getSimpleName());
|
sb.append(" [");
|
sb.append("Hash = ").append(hashCode());
|
sb.append(", id=").append(id);
|
sb.append(", uid=").append(uid);
|
sb.append(", name=").append(name);
|
sb.append(", model=").append(model);
|
sb.append(", category=").append(category);
|
sb.append(", cncSystem=").append(cncSystem);
|
sb.append(", workshop=").append(workshop);
|
sb.append(", section=").append(section);
|
sb.append(", shift=").append(shift);
|
sb.append(", cdate=").append(cdate);
|
sb.append(", cutTime=").append(cutTime);
|
sb.append(", bootTime=").append(bootTime);
|
sb.append(", threeShiftTime=").append(threeShiftTime);
|
sb.append(", twoShiftTime=").append(twoShiftTime);
|
sb.append(", downTime=").append(downTime);
|
sb.append(", factory=").append(factory);
|
sb.append("]");
|
return sb.toString();
|
}
|
|
@Override
|
public boolean equals(Object that) {
|
if (this == that) {
|
return true;
|
}
|
if (that == null) {
|
return false;
|
}
|
if (getClass() != that.getClass()) {
|
return false;
|
}
|
MdcUtilization other = (MdcUtilization) that;
|
return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
|
&& (this.getUid() == null ? other.getUid() == null : this.getUid().equals(other.getUid()))
|
&& (this.getName() == null ? other.getName() == null : this.getName().equals(other.getName()))
|
&& (this.getModel() == null ? other.getModel() == null : this.getModel().equals(other.getModel()))
|
&& (this.getCategory() == null ? other.getCategory() == null : this.getCategory().equals(other.getCategory()))
|
&& (this.getCncSystem() == null ? other.getCncSystem() == null : this.getCncSystem().equals(other.getCncSystem()))
|
&& (this.getWorkshop() == null ? other.getWorkshop() == null : this.getWorkshop().equals(other.getWorkshop()))
|
&& (this.getSection() == null ? other.getSection() == null : this.getSection().equals(other.getSection()))
|
&& (this.getShift() == null ? other.getShift() == null : this.getShift().equals(other.getShift()))
|
&& (this.getCdate() == null ? other.getCdate() == null : this.getCdate().equals(other.getCdate()))
|
&& (this.getCutTime() == null ? other.getCutTime() == null : this.getCutTime().equals(other.getCutTime()))
|
&& (this.getBootTime() == null ? other.getBootTime() == null : this.getBootTime().equals(other.getBootTime()))
|
&& (this.getThreeShiftTime() == null ? other.getThreeShiftTime() == null : this.getThreeShiftTime().equals(other.getThreeShiftTime()))
|
&& (this.getTwoShiftTime() == null ? other.getTwoShiftTime() == null : this.getTwoShiftTime().equals(other.getTwoShiftTime()))
|
&& (this.getDownTime() == null ? other.getDownTime() == null : this.getDownTime().equals(other.getDownTime()))
|
&& (this.getFactory() == null ? other.getFactory() == null : this.getFactory().equals(other.getFactory()));
|
}
|
|
@Override
|
public int hashCode() {
|
final int prime = 31;
|
int result = 1;
|
result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
|
result = prime * result + ((getUid() == null) ? 0 : getUid().hashCode());
|
result = prime * result + ((getName() == null) ? 0 : getName().hashCode());
|
result = prime * result + ((getModel() == null) ? 0 : getModel().hashCode());
|
result = prime * result + ((getCategory() == null) ? 0 : getCategory().hashCode());
|
result = prime * result + ((getCncSystem() == null) ? 0 : getCncSystem().hashCode());
|
result = prime * result + ((getWorkshop() == null) ? 0 : getWorkshop().hashCode());
|
result = prime * result + ((getSection() == null) ? 0 : getSection().hashCode());
|
result = prime * result + ((getShift() == null) ? 0 : getShift().hashCode());
|
result = prime * result + ((getCdate() == null) ? 0 : getCdate().hashCode());
|
result = prime * result + ((getCutTime() == null) ? 0 : getCutTime().hashCode());
|
result = prime * result + ((getBootTime() == null) ? 0 : getBootTime().hashCode());
|
result = prime * result + ((getThreeShiftTime() == null) ? 0 : getThreeShiftTime().hashCode());
|
result = prime * result + ((getTwoShiftTime() == null) ? 0 : getTwoShiftTime().hashCode());
|
result = prime * result + ((getDownTime() == null) ? 0 : getDownTime().hashCode());
|
result = prime * result + ((getFactory() == null) ? 0 : getFactory().hashCode());
|
return result;
|
}
|
}
|