package com.qianwen.smartman.modules.cps.entity;
|
|
import com.baomidou.mybatisplus.annotation.TableField;
|
import com.baomidou.mybatisplus.annotation.TableName;
|
import com.qianwen.smartman.common.constant.CommonConstant;
|
import com.qianwen.core.mp.base.BaseEntity;
|
|
@TableName("blade_workstation_workbench")
|
/* loaded from: blade-api.jar:BOOT-INF/classes/org/springblade/modules/cps/entity/WorkstationWorkbench.class */
|
public class WorkstationWorkbench extends BaseEntity {
|
private static final long serialVersionUID = -883848031177958103L;
|
@TableField("workstation_id")
|
private Long workstationId;
|
@TableField(CommonConstant.SORT_FIELD)
|
private Integer sort;
|
@TableField("name")
|
private String name;
|
@TableField("workbench_default")
|
private Integer workbenchDefault;
|
|
public void setWorkstationId(final Long workstationId) {
|
this.workstationId = workstationId;
|
}
|
|
public void setSort(final Integer sort) {
|
this.sort = sort;
|
}
|
|
public void setName(final String name) {
|
this.name = name;
|
}
|
|
public void setWorkbenchDefault(final Integer workbenchDefault) {
|
this.workbenchDefault = workbenchDefault;
|
}
|
|
public boolean equals(final Object o) {
|
if (o == this) {
|
return true;
|
}
|
if (o instanceof WorkstationWorkbench) {
|
WorkstationWorkbench other = (WorkstationWorkbench) o;
|
if (other.canEqual(this)) {
|
Object this$workstationId = getWorkstationId();
|
Object other$workstationId = other.getWorkstationId();
|
if (this$workstationId == null) {
|
if (other$workstationId != null) {
|
return false;
|
}
|
} else if (!this$workstationId.equals(other$workstationId)) {
|
return false;
|
}
|
Object this$sort = getSort();
|
Object other$sort = other.getSort();
|
if (this$sort == null) {
|
if (other$sort != null) {
|
return false;
|
}
|
} else if (!this$sort.equals(other$sort)) {
|
return false;
|
}
|
Object this$workbenchDefault = getWorkbenchDefault();
|
Object other$workbenchDefault = other.getWorkbenchDefault();
|
if (this$workbenchDefault == null) {
|
if (other$workbenchDefault != null) {
|
return false;
|
}
|
} else if (!this$workbenchDefault.equals(other$workbenchDefault)) {
|
return false;
|
}
|
Object this$name = getName();
|
Object other$name = other.getName();
|
return this$name == null ? other$name == null : this$name.equals(other$name);
|
}
|
return false;
|
}
|
return false;
|
}
|
|
protected boolean canEqual(final Object other) {
|
return other instanceof WorkstationWorkbench;
|
}
|
|
public int hashCode() {
|
Object $workstationId = getWorkstationId();
|
int result = (1 * 59) + ($workstationId == null ? 43 : $workstationId.hashCode());
|
Object $sort = getSort();
|
int result2 = (result * 59) + ($sort == null ? 43 : $sort.hashCode());
|
Object $workbenchDefault = getWorkbenchDefault();
|
int result3 = (result2 * 59) + ($workbenchDefault == null ? 43 : $workbenchDefault.hashCode());
|
Object $name = getName();
|
return (result3 * 59) + ($name == null ? 43 : $name.hashCode());
|
}
|
|
public String toString() {
|
return "WorkstationWorkbench(workstationId=" + getWorkstationId() + ", sort=" + getSort() + ", name=" + getName() + ", workbenchDefault=" + getWorkbenchDefault() + ")";
|
}
|
|
/* loaded from: blade-api.jar:BOOT-INF/classes/org/springblade/modules/cps/entity/WorkstationWorkbench$WorkstationWorkbenchBuilder.class */
|
public static class WorkstationWorkbenchBuilder {
|
private Long workstationId;
|
private Integer sort;
|
private String name;
|
private Integer workbenchDefault;
|
|
WorkstationWorkbenchBuilder() {
|
}
|
|
public WorkstationWorkbenchBuilder workstationId(final Long workstationId) {
|
this.workstationId = workstationId;
|
return this;
|
}
|
|
public WorkstationWorkbenchBuilder sort(final Integer sort) {
|
this.sort = sort;
|
return this;
|
}
|
|
public WorkstationWorkbenchBuilder name(final String name) {
|
this.name = name;
|
return this;
|
}
|
|
public WorkstationWorkbenchBuilder workbenchDefault(final Integer workbenchDefault) {
|
this.workbenchDefault = workbenchDefault;
|
return this;
|
}
|
|
public WorkstationWorkbench build() {
|
return new WorkstationWorkbench(this.workstationId, this.sort, this.name, this.workbenchDefault);
|
}
|
|
public String toString() {
|
return "WorkstationWorkbench.WorkstationWorkbenchBuilder(workstationId=" + this.workstationId + ", sort=" + this.sort + ", name=" + this.name + ", workbenchDefault=" + this.workbenchDefault + ")";
|
}
|
}
|
|
public static WorkstationWorkbenchBuilder builder() {
|
return new WorkstationWorkbenchBuilder();
|
}
|
|
public WorkstationWorkbench(final Long workstationId, final Integer sort, final String name, final Integer workbenchDefault) {
|
this.workstationId = workstationId;
|
this.sort = sort;
|
this.name = name;
|
this.workbenchDefault = workbenchDefault;
|
}
|
|
public WorkstationWorkbench() {
|
}
|
|
public Long getWorkstationId() {
|
return this.workstationId;
|
}
|
|
public Integer getSort() {
|
return this.sort;
|
}
|
|
public String getName() {
|
return this.name;
|
}
|
|
public Integer getWorkbenchDefault() {
|
return this.workbenchDefault;
|
}
|
}
|