| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214 |
- //
- // Source code recreated from a .class file by IntelliJ IDEA
- // (powered by FernFlower decompiler)
- //
- package org.zhongzheng.common.doentity;
- import com.baomidou.mybatisplus.annotation.TableLogic;
- import com.fasterxml.jackson.annotation.JsonFormat;
- import com.fasterxml.jackson.databind.annotation.JsonSerialize;
- import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
- import io.swagger.annotations.ApiModelProperty;
- import java.io.Serializable;
- import java.util.Date;
- import org.springframework.format.annotation.DateTimeFormat;
- public class BaseEntity implements Serializable {
- @JsonSerialize(
- using = ToStringSerializer.class
- )
- @ApiModelProperty("创建人")
- private Long createUser;
- @DateTimeFormat(
- pattern = "yyyy-MM-dd HH:mm:ss"
- )
- @JsonFormat(
- pattern = "yyyy-MM-dd HH:mm:ss"
- )
- @ApiModelProperty("创建时间")
- private Date createTime;
- @JsonSerialize(
- using = ToStringSerializer.class
- )
- @ApiModelProperty("更新人")
- private Long updateUser;
- @DateTimeFormat(
- pattern = "yyyy-MM-dd HH:mm:ss"
- )
- @JsonFormat(
- pattern = "yyyy-MM-dd HH:mm:ss"
- )
- @ApiModelProperty("更新时间")
- private Date updateTime;
- @ApiModelProperty("业务状态")
- private Integer status;
- @TableLogic
- @ApiModelProperty("是否已删除")
- private Integer isDeleted;
- public BaseEntity() {
- }
- public Long getCreateUser() {
- return this.createUser;
- }
- 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;
- }
- public void setCreateUser(final Long createUser) {
- this.createUser = createUser;
- }
- @JsonFormat(
- pattern = "yyyy-MM-dd HH:mm:ss"
- )
- public void setCreateTime(final Date createTime) {
- this.createTime = createTime;
- }
- public void setUpdateUser(final Long updateUser) {
- this.updateUser = updateUser;
- }
- @JsonFormat(
- pattern = "yyyy-MM-dd HH:mm:ss"
- )
- 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;
- } else if (!(o instanceof org.zhongzheng.common.doentity.BaseEntity)) {
- return false;
- } else {
- org.zhongzheng.common.doentity.BaseEntity other = (org.zhongzheng.common.doentity.BaseEntity)o;
- if (!other.canEqual(this)) {
- return false;
- } else {
- Object this$createUser = this.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$updateUser = this.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 = this.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;
- }
- label62: {
- Object this$isDeleted = this.getIsDeleted();
- Object other$isDeleted = other.getIsDeleted();
- if (this$isDeleted == null) {
- if (other$isDeleted == null) {
- break label62;
- }
- } else if (this$isDeleted.equals(other$isDeleted)) {
- break label62;
- }
- return false;
- }
- label55: {
- Object this$createTime = this.getCreateTime();
- Object other$createTime = other.getCreateTime();
- if (this$createTime == null) {
- if (other$createTime == null) {
- break label55;
- }
- } else if (this$createTime.equals(other$createTime)) {
- break label55;
- }
- return false;
- }
- Object this$updateTime = this.getUpdateTime();
- Object other$updateTime = other.getUpdateTime();
- if (this$updateTime == null) {
- if (other$updateTime != null) {
- return false;
- }
- } else if (!this$updateTime.equals(other$updateTime)) {
- return false;
- }
- return true;
- }
- }
- }
- protected boolean canEqual(final Object other) {
- return other instanceof org.zhongzheng.common.doentity.BaseEntity;
- }
- public int hashCode() {
- int result = 1;
- Object $createUser = this.getCreateUser();
- result = result * 59 + ($createUser == null ? 43 : $createUser.hashCode());
- Object $updateUser = this.getUpdateUser();
- result = result * 59 + ($updateUser == null ? 43 : $updateUser.hashCode());
- Object $status = this.getStatus();
- result = result * 59 + ($status == null ? 43 : $status.hashCode());
- Object $isDeleted = this.getIsDeleted();
- result = result * 59 + ($isDeleted == null ? 43 : $isDeleted.hashCode());
- Object $createTime = this.getCreateTime();
- result = result * 59 + ($createTime == null ? 43 : $createTime.hashCode());
- Object $updateTime = this.getUpdateTime();
- result = result * 59 + ($updateTime == null ? 43 : $updateTime.hashCode());
- return result;
- }
- public String toString() {
- return "BaseEntity(createUser=" + this.getCreateUser() + ", createTime=" + this.getCreateTime() + ", updateUser=" + this.getUpdateUser() + ", updateTime=" + this.getUpdateTime() + ", status=" + this.getStatus() + ", isDeleted=" + this.getIsDeleted() + ")";
- }
- }
|