package com.qianwen.mdc.domain;
|
|
import java.io.Serializable;
|
import java.math.BigDecimal;
|
|
import com.baomidou.mybatisplus.annotation.IdType;
|
import com.baomidou.mybatisplus.annotation.TableId;
|
import com.baomidou.mybatisplus.annotation.TableName;
|
|
@TableName("mdc_work_days")
|
public class MdcWorkDays implements Serializable {
|
@TableId(type=IdType.AUTO)
|
private Long id;
|
|
/**
|
* year month
|
*/
|
private String yearmonth;
|
|
/**
|
* two shift days
|
*/
|
private BigDecimal days2;
|
|
/**
|
* three shift days
|
*/
|
private BigDecimal days3;
|
|
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;
|
}
|
|
/**
|
* 获取year month
|
*
|
* @return yearmonth - year month
|
*/
|
public String getYearmonth() {
|
return yearmonth;
|
}
|
|
/**
|
* 设置year month
|
*
|
* @param yearmonth year month
|
*/
|
public void setYearmonth(String yearmonth) {
|
this.yearmonth = yearmonth;
|
}
|
|
/**
|
* 获取two shift days
|
*
|
* @return days2 - two shift days
|
*/
|
public BigDecimal getDays2() {
|
return days2;
|
}
|
|
/**
|
* 设置two shift days
|
*
|
* @param days2 two shift days
|
*/
|
public void setDays2(BigDecimal days2) {
|
this.days2 = days2;
|
}
|
|
/**
|
* 获取three shift days
|
*
|
* @return days3 - three shift days
|
*/
|
public BigDecimal getDays3() {
|
return days3;
|
}
|
|
/**
|
* 设置three shift days
|
*
|
* @param days3 three shift days
|
*/
|
public void setDays3(BigDecimal days3) {
|
this.days3 = days3;
|
}
|
|
@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(", yearmonth=").append(yearmonth);
|
sb.append(", days2=").append(days2);
|
sb.append(", days3=").append(days3);
|
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;
|
}
|
MdcWorkDays other = (MdcWorkDays) that;
|
return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
|
&& (this.getYearmonth() == null ? other.getYearmonth() == null : this.getYearmonth().equals(other.getYearmonth()))
|
&& (this.getDays2() == null ? other.getDays2() == null : this.getDays2().equals(other.getDays2()))
|
&& (this.getDays3() == null ? other.getDays3() == null : this.getDays3().equals(other.getDays3()));
|
}
|
|
@Override
|
public int hashCode() {
|
final int prime = 31;
|
int result = 1;
|
result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
|
result = prime * result + ((getYearmonth() == null) ? 0 : getYearmonth().hashCode());
|
result = prime * result + ((getDays2() == null) ? 0 : getDays2().hashCode());
|
result = prime * result + ((getDays3() == null) ? 0 : getDays3().hashCode());
|
return result;
|
}
|
}
|