package com.qianwen.smartman.modules.smis.vo;
|
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
import io.swagger.annotations.ApiModelProperty;
|
import java.io.Serializable;
|
import java.util.Date;
|
import com.qianwen.smartman.common.constant.DateConstant;
|
import org.springframework.format.annotation.DateTimeFormat;
|
|
public class BaseVO implements Serializable {
|
private static final long serialVersionUID = 4342738058240475931L;
|
@ApiModelProperty(value = "主键id", dataType = "java.lang.String")
|
private Long id;
|
@ApiModelProperty(value = "创建人", dataType = "java.lang.String")
|
private Long createUser;
|
@ApiModelProperty(value = "创建部门", dataType = "java.lang.String")
|
private Long createDept;
|
@DateTimeFormat(pattern = DateConstant.PATTERN_DATE_TIME)
|
@JsonFormat(pattern = DateConstant.PATTERN_DATE_TIME)
|
@ApiModelProperty("创建时间")
|
private Date createTime;
|
@ApiModelProperty(value = "更新人", dataType = "java.lang.String")
|
private Long updateUser;
|
@DateTimeFormat(pattern = DateConstant.PATTERN_DATE_TIME)
|
@JsonFormat(pattern = DateConstant.PATTERN_DATE_TIME)
|
@ApiModelProperty("更新时间")
|
private Date updateTime;
|
@ApiModelProperty("业务状态")
|
private Integer status;
|
@ApiModelProperty("是否已删除")
|
private Integer isDeleted;
|
|
public void setId(final Long id) {
|
this.id = id;
|
}
|
|
public void setCreateUser(final Long createUser) {
|
this.createUser = createUser;
|
}
|
|
public void setCreateDept(final Long createDept) {
|
this.createDept = createDept;
|
}
|
|
@JsonFormat(pattern = DateConstant.PATTERN_DATE_TIME)
|
public void setCreateTime(final Date createTime) {
|
this.createTime = createTime;
|
}
|
|
public void setUpdateUser(final Long updateUser) {
|
this.updateUser = updateUser;
|
}
|
|
@JsonFormat(pattern = DateConstant.PATTERN_DATE_TIME)
|
public void setUpdateTime(final Date updateTime) {
|
this.updateTime = updateTime;
|
}
|
|
public void setStatus(final Integer status) {
|
this.status = status;
|
}
|
|
public void setIsDeleted(final Integer isDeleted) {
|
this.isDeleted = isDeleted;
|
}
|
|
public boolean equals(final Object o) {
|
if (o == this) {
|
return true;
|
}
|
if (o instanceof BaseVO) {
|
BaseVO other = (BaseVO) o;
|
if (other.canEqual(this)) {
|
Object this$id = getId();
|
Object other$id = other.getId();
|
if (this$id == null) {
|
if (other$id != null) {
|
return false;
|
}
|
} else if (!this$id.equals(other$id)) {
|
return false;
|
}
|
Object this$createUser = getCreateUser();
|
Object other$createUser = other.getCreateUser();
|
if (this$createUser == null) {
|
if (other$createUser != null) {
|
return false;
|
}
|
} else if (!this$createUser.equals(other$createUser)) {
|
return false;
|
}
|
Object this$createDept = getCreateDept();
|
Object other$createDept = other.getCreateDept();
|
if (this$createDept == null) {
|
if (other$createDept != null) {
|
return false;
|
}
|
} else if (!this$createDept.equals(other$createDept)) {
|
return false;
|
}
|
Object this$updateUser = getUpdateUser();
|
Object other$updateUser = other.getUpdateUser();
|
if (this$updateUser == null) {
|
if (other$updateUser != null) {
|
return false;
|
}
|
} else if (!this$updateUser.equals(other$updateUser)) {
|
return false;
|
}
|
Object this$status = getStatus();
|
Object other$status = other.getStatus();
|
if (this$status == null) {
|
if (other$status != null) {
|
return false;
|
}
|
} else if (!this$status.equals(other$status)) {
|
return false;
|
}
|
Object this$isDeleted = getIsDeleted();
|
Object other$isDeleted = other.getIsDeleted();
|
if (this$isDeleted == null) {
|
if (other$isDeleted != null) {
|
return false;
|
}
|
} else if (!this$isDeleted.equals(other$isDeleted)) {
|
return false;
|
}
|
Object this$createTime = getCreateTime();
|
Object other$createTime = other.getCreateTime();
|
if (this$createTime == null) {
|
if (other$createTime != null) {
|
return false;
|
}
|
} else if (!this$createTime.equals(other$createTime)) {
|
return false;
|
}
|
Object this$updateTime = getUpdateTime();
|
Object other$updateTime = other.getUpdateTime();
|
return this$updateTime == null ? other$updateTime == null : this$updateTime.equals(other$updateTime);
|
}
|
return false;
|
}
|
return false;
|
}
|
|
protected boolean canEqual(final Object other) {
|
return other instanceof BaseVO;
|
}
|
|
public int hashCode() {
|
Object $id = getId();
|
int result = (1 * 59) + ($id == null ? 43 : $id.hashCode());
|
Object $createUser = getCreateUser();
|
int result2 = (result * 59) + ($createUser == null ? 43 : $createUser.hashCode());
|
Object $createDept = getCreateDept();
|
int result3 = (result2 * 59) + ($createDept == null ? 43 : $createDept.hashCode());
|
Object $updateUser = getUpdateUser();
|
int result4 = (result3 * 59) + ($updateUser == null ? 43 : $updateUser.hashCode());
|
Object $status = getStatus();
|
int result5 = (result4 * 59) + ($status == null ? 43 : $status.hashCode());
|
Object $isDeleted = getIsDeleted();
|
int result6 = (result5 * 59) + ($isDeleted == null ? 43 : $isDeleted.hashCode());
|
Object $createTime = getCreateTime();
|
int result7 = (result6 * 59) + ($createTime == null ? 43 : $createTime.hashCode());
|
Object $updateTime = getUpdateTime();
|
return (result7 * 59) + ($updateTime == null ? 43 : $updateTime.hashCode());
|
}
|
|
public String toString() {
|
return "BaseVO(id=" + getId() + ", createUser=" + getCreateUser() + ", createDept=" + getCreateDept() + ", createTime=" + getCreateTime() + ", updateUser=" + getUpdateUser() + ", updateTime=" + getUpdateTime() + ", status=" + getStatus() + ", isDeleted=" + getIsDeleted() + ")";
|
}
|
|
public Long getId() {
|
return this.id;
|
}
|
|
public Long getCreateUser() {
|
return this.createUser;
|
}
|
|
public Long getCreateDept() {
|
return this.createDept;
|
}
|
|
public Date getCreateTime() {
|
return this.createTime;
|
}
|
|
public Long getUpdateUser() {
|
return this.updateUser;
|
}
|
|
public Date getUpdateTime() {
|
return this.updateTime;
|
}
|
|
public Integer getStatus() {
|
return this.status;
|
}
|
|
public Integer getIsDeleted() {
|
return this.isDeleted;
|
}
|
}
|