package com.qianwen.mdc.collect.entity.mgr;
|
|
import com.baomidou.mybatisplus.annotation.TableField;
|
import com.baomidou.mybatisplus.annotation.TableName;
|
import java.math.BigDecimal;
|
import com.qianwen.core.tenant.mp.TenantEntity;
|
|
@TableName("blade_workstation")
|
public class Workstation extends TenantEntity{// 暂时不要租户了,就一个tenantid
|
private static final long serialVersionUID = -883848031177958203L;
|
private String avatar;
|
private String code;
|
private String name;
|
private Integer type;
|
@TableField("calendar_code")
|
private String calendarCode;
|
@TableField("calendar_code_waiting")
|
private String calendarCodeWaiting;
|
@TableField("standard_efficiency")
|
private BigDecimal standardEfficiency;
|
private Long productionCapacityGroup;
|
|
public void setAvatar(final String avatar) {
|
this.avatar = avatar;
|
}
|
|
public void setCode(final String code) {
|
this.code = code;
|
}
|
|
public void setName(final String name) {
|
this.name = name;
|
}
|
|
public void setType(final Integer type) {
|
this.type = type;
|
}
|
|
public void setCalendarCode(final String calendarCode) {
|
this.calendarCode = calendarCode;
|
}
|
|
public void setCalendarCodeWaiting(final String calendarCodeWaiting) {
|
this.calendarCodeWaiting = calendarCodeWaiting;
|
}
|
|
public void setStandardEfficiency(final BigDecimal standardEfficiency) {
|
this.standardEfficiency = standardEfficiency;
|
}
|
|
public void setProductionCapacityGroup(final Long productionCapacityGroup) {
|
this.productionCapacityGroup = productionCapacityGroup;
|
}
|
|
public boolean equals(final Object o) {
|
if (o == this) {
|
return true;
|
}
|
if (o instanceof Workstation) {
|
Workstation other = (Workstation) o;
|
if (other.canEqual(this)) {
|
Object this$type = getType();
|
Object other$type = other.getType();
|
if (this$type == null) {
|
if (other$type != null) {
|
return false;
|
}
|
} else if (!this$type.equals(other$type)) {
|
return false;
|
}
|
Object this$productionCapacityGroup = getProductionCapacityGroup();
|
Object other$productionCapacityGroup = other.getProductionCapacityGroup();
|
if (this$productionCapacityGroup == null) {
|
if (other$productionCapacityGroup != null) {
|
return false;
|
}
|
} else if (!this$productionCapacityGroup.equals(other$productionCapacityGroup)) {
|
return false;
|
}
|
Object this$avatar = getAvatar();
|
Object other$avatar = other.getAvatar();
|
if (this$avatar == null) {
|
if (other$avatar != null) {
|
return false;
|
}
|
} else if (!this$avatar.equals(other$avatar)) {
|
return false;
|
}
|
Object this$code = getCode();
|
Object other$code = other.getCode();
|
if (this$code == null) {
|
if (other$code != null) {
|
return false;
|
}
|
} else if (!this$code.equals(other$code)) {
|
return false;
|
}
|
Object this$name = getName();
|
Object other$name = other.getName();
|
if (this$name == null) {
|
if (other$name != null) {
|
return false;
|
}
|
} else if (!this$name.equals(other$name)) {
|
return false;
|
}
|
Object this$calendarCode = getCalendarCode();
|
Object other$calendarCode = other.getCalendarCode();
|
if (this$calendarCode == null) {
|
if (other$calendarCode != null) {
|
return false;
|
}
|
} else if (!this$calendarCode.equals(other$calendarCode)) {
|
return false;
|
}
|
Object this$calendarCodeWaiting = getCalendarCodeWaiting();
|
Object other$calendarCodeWaiting = other.getCalendarCodeWaiting();
|
if (this$calendarCodeWaiting == null) {
|
if (other$calendarCodeWaiting != null) {
|
return false;
|
}
|
} else if (!this$calendarCodeWaiting.equals(other$calendarCodeWaiting)) {
|
return false;
|
}
|
Object this$standardEfficiency = getStandardEfficiency();
|
Object other$standardEfficiency = other.getStandardEfficiency();
|
return this$standardEfficiency == null ? other$standardEfficiency == null : this$standardEfficiency.equals(other$standardEfficiency);
|
}
|
return false;
|
}
|
return false;
|
}
|
|
protected boolean canEqual(final Object other) {
|
return other instanceof Workstation;
|
}
|
|
public int hashCode() {
|
Object $type = getType();
|
int result = (1 * 59) + ($type == null ? 43 : $type.hashCode());
|
Object $productionCapacityGroup = getProductionCapacityGroup();
|
int result2 = (result * 59) + ($productionCapacityGroup == null ? 43 : $productionCapacityGroup.hashCode());
|
Object $avatar = getAvatar();
|
int result3 = (result2 * 59) + ($avatar == null ? 43 : $avatar.hashCode());
|
Object $code = getCode();
|
int result4 = (result3 * 59) + ($code == null ? 43 : $code.hashCode());
|
Object $name = getName();
|
int result5 = (result4 * 59) + ($name == null ? 43 : $name.hashCode());
|
Object $calendarCode = getCalendarCode();
|
int result6 = (result5 * 59) + ($calendarCode == null ? 43 : $calendarCode.hashCode());
|
Object $calendarCodeWaiting = getCalendarCodeWaiting();
|
int result7 = (result6 * 59) + ($calendarCodeWaiting == null ? 43 : $calendarCodeWaiting.hashCode());
|
Object $standardEfficiency = getStandardEfficiency();
|
return (result7 * 59) + ($standardEfficiency == null ? 43 : $standardEfficiency.hashCode());
|
}
|
|
public String toString() {
|
return "Workstation(avatar=" + getAvatar() + ", code=" + getCode() + ", name=" + getName() + ", type=" + getType() + ", calendarCode=" + getCalendarCode() + ", calendarCodeWaiting=" + getCalendarCodeWaiting() + ", standardEfficiency=" + getStandardEfficiency() + ", productionCapacityGroup=" + getProductionCapacityGroup() + ")";
|
}
|
|
public static class WorkstationBuilder {
|
private String avatar;
|
private String code;
|
private String name;
|
private Integer type;
|
private String calendarCode;
|
private String calendarCodeWaiting;
|
private BigDecimal standardEfficiency;
|
private Long productionCapacityGroup;
|
|
WorkstationBuilder() {
|
}
|
|
public WorkstationBuilder avatar(final String avatar) {
|
this.avatar = avatar;
|
return this;
|
}
|
|
public WorkstationBuilder code(final String code) {
|
this.code = code;
|
return this;
|
}
|
|
public WorkstationBuilder name(final String name) {
|
this.name = name;
|
return this;
|
}
|
|
public WorkstationBuilder type(final Integer type) {
|
this.type = type;
|
return this;
|
}
|
|
public WorkstationBuilder calendarCode(final String calendarCode) {
|
this.calendarCode = calendarCode;
|
return this;
|
}
|
|
public WorkstationBuilder calendarCodeWaiting(final String calendarCodeWaiting) {
|
this.calendarCodeWaiting = calendarCodeWaiting;
|
return this;
|
}
|
|
public WorkstationBuilder standardEfficiency(final BigDecimal standardEfficiency) {
|
this.standardEfficiency = standardEfficiency;
|
return this;
|
}
|
|
public WorkstationBuilder productionCapacityGroup(final Long productionCapacityGroup) {
|
this.productionCapacityGroup = productionCapacityGroup;
|
return this;
|
}
|
|
public Workstation build() {
|
return new Workstation(this.avatar, this.code, this.name, this.type, this.calendarCode, this.calendarCodeWaiting, this.standardEfficiency, this.productionCapacityGroup);
|
}
|
|
public String toString() {
|
return "Workstation.WorkstationBuilder(avatar=" + this.avatar + ", code=" + this.code + ", name=" + this.name + ", type=" + this.type + ", calendarCode=" + this.calendarCode + ", calendarCodeWaiting=" + this.calendarCodeWaiting + ", standardEfficiency=" + this.standardEfficiency + ", productionCapacityGroup=" + this.productionCapacityGroup + ")";
|
}
|
}
|
|
public static WorkstationBuilder builder() {
|
return new WorkstationBuilder();
|
}
|
|
public Workstation(final String avatar, final String code, final String name, final Integer type, final String calendarCode, final String calendarCodeWaiting, final BigDecimal standardEfficiency, final Long productionCapacityGroup) {
|
this.avatar = avatar;
|
this.code = code;
|
this.name = name;
|
this.type = type;
|
this.calendarCode = calendarCode;
|
this.calendarCodeWaiting = calendarCodeWaiting;
|
this.standardEfficiency = standardEfficiency;
|
this.productionCapacityGroup = productionCapacityGroup;
|
}
|
|
public Workstation() {
|
}
|
|
public String getAvatar() {
|
return this.avatar;
|
}
|
|
public String getCode() {
|
return this.code;
|
}
|
|
public String getName() {
|
return this.name;
|
}
|
|
public Integer getType() {
|
return this.type;
|
}
|
|
public String getCalendarCode() {
|
return this.calendarCode;
|
}
|
|
public String getCalendarCodeWaiting() {
|
return this.calendarCodeWaiting;
|
}
|
|
public BigDecimal getStandardEfficiency() {
|
return this.standardEfficiency;
|
}
|
|
public Long getProductionCapacityGroup() {
|
return this.productionCapacityGroup;
|
}
|
}
|