BaseEntity.java 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214
  1. //
  2. // Source code recreated from a .class file by IntelliJ IDEA
  3. // (powered by FernFlower decompiler)
  4. //
  5. package org.zhongzheng.common.doentity;
  6. import com.baomidou.mybatisplus.annotation.TableLogic;
  7. import com.fasterxml.jackson.annotation.JsonFormat;
  8. import com.fasterxml.jackson.databind.annotation.JsonSerialize;
  9. import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
  10. import io.swagger.annotations.ApiModelProperty;
  11. import java.io.Serializable;
  12. import java.util.Date;
  13. import org.springframework.format.annotation.DateTimeFormat;
  14. public class BaseEntity implements Serializable {
  15. @JsonSerialize(
  16. using = ToStringSerializer.class
  17. )
  18. @ApiModelProperty("创建人")
  19. private Long createUser;
  20. @DateTimeFormat(
  21. pattern = "yyyy-MM-dd HH:mm:ss"
  22. )
  23. @JsonFormat(
  24. pattern = "yyyy-MM-dd HH:mm:ss"
  25. )
  26. @ApiModelProperty("创建时间")
  27. private Date createTime;
  28. @JsonSerialize(
  29. using = ToStringSerializer.class
  30. )
  31. @ApiModelProperty("更新人")
  32. private Long updateUser;
  33. @DateTimeFormat(
  34. pattern = "yyyy-MM-dd HH:mm:ss"
  35. )
  36. @JsonFormat(
  37. pattern = "yyyy-MM-dd HH:mm:ss"
  38. )
  39. @ApiModelProperty("更新时间")
  40. private Date updateTime;
  41. @ApiModelProperty("业务状态")
  42. private Integer status;
  43. @TableLogic
  44. @ApiModelProperty("是否已删除")
  45. private Integer isDeleted;
  46. public BaseEntity() {
  47. }
  48. public Long getCreateUser() {
  49. return this.createUser;
  50. }
  51. public Date getCreateTime() {
  52. return this.createTime;
  53. }
  54. public Long getUpdateUser() {
  55. return this.updateUser;
  56. }
  57. public Date getUpdateTime() {
  58. return this.updateTime;
  59. }
  60. public Integer getStatus() {
  61. return this.status;
  62. }
  63. public Integer getIsDeleted() {
  64. return this.isDeleted;
  65. }
  66. public void setCreateUser(final Long createUser) {
  67. this.createUser = createUser;
  68. }
  69. @JsonFormat(
  70. pattern = "yyyy-MM-dd HH:mm:ss"
  71. )
  72. public void setCreateTime(final Date createTime) {
  73. this.createTime = createTime;
  74. }
  75. public void setUpdateUser(final Long updateUser) {
  76. this.updateUser = updateUser;
  77. }
  78. @JsonFormat(
  79. pattern = "yyyy-MM-dd HH:mm:ss"
  80. )
  81. public void setUpdateTime(final Date updateTime) {
  82. this.updateTime = updateTime;
  83. }
  84. public void setStatus(final Integer status) {
  85. this.status = status;
  86. }
  87. public void setIsDeleted(final Integer isDeleted) {
  88. this.isDeleted = isDeleted;
  89. }
  90. public boolean equals(final Object o) {
  91. if (o == this) {
  92. return true;
  93. } else if (!(o instanceof org.zhongzheng.common.doentity.BaseEntity)) {
  94. return false;
  95. } else {
  96. org.zhongzheng.common.doentity.BaseEntity other = (org.zhongzheng.common.doentity.BaseEntity)o;
  97. if (!other.canEqual(this)) {
  98. return false;
  99. } else {
  100. Object this$createUser = this.getCreateUser();
  101. Object other$createUser = other.getCreateUser();
  102. if (this$createUser == null) {
  103. if (other$createUser != null) {
  104. return false;
  105. }
  106. } else if (!this$createUser.equals(other$createUser)) {
  107. return false;
  108. }
  109. Object this$updateUser = this.getUpdateUser();
  110. Object other$updateUser = other.getUpdateUser();
  111. if (this$updateUser == null) {
  112. if (other$updateUser != null) {
  113. return false;
  114. }
  115. } else if (!this$updateUser.equals(other$updateUser)) {
  116. return false;
  117. }
  118. Object this$status = this.getStatus();
  119. Object other$status = other.getStatus();
  120. if (this$status == null) {
  121. if (other$status != null) {
  122. return false;
  123. }
  124. } else if (!this$status.equals(other$status)) {
  125. return false;
  126. }
  127. label62: {
  128. Object this$isDeleted = this.getIsDeleted();
  129. Object other$isDeleted = other.getIsDeleted();
  130. if (this$isDeleted == null) {
  131. if (other$isDeleted == null) {
  132. break label62;
  133. }
  134. } else if (this$isDeleted.equals(other$isDeleted)) {
  135. break label62;
  136. }
  137. return false;
  138. }
  139. label55: {
  140. Object this$createTime = this.getCreateTime();
  141. Object other$createTime = other.getCreateTime();
  142. if (this$createTime == null) {
  143. if (other$createTime == null) {
  144. break label55;
  145. }
  146. } else if (this$createTime.equals(other$createTime)) {
  147. break label55;
  148. }
  149. return false;
  150. }
  151. Object this$updateTime = this.getUpdateTime();
  152. Object other$updateTime = other.getUpdateTime();
  153. if (this$updateTime == null) {
  154. if (other$updateTime != null) {
  155. return false;
  156. }
  157. } else if (!this$updateTime.equals(other$updateTime)) {
  158. return false;
  159. }
  160. return true;
  161. }
  162. }
  163. }
  164. protected boolean canEqual(final Object other) {
  165. return other instanceof org.zhongzheng.common.doentity.BaseEntity;
  166. }
  167. public int hashCode() {
  168. int result = 1;
  169. Object $createUser = this.getCreateUser();
  170. result = result * 59 + ($createUser == null ? 43 : $createUser.hashCode());
  171. Object $updateUser = this.getUpdateUser();
  172. result = result * 59 + ($updateUser == null ? 43 : $updateUser.hashCode());
  173. Object $status = this.getStatus();
  174. result = result * 59 + ($status == null ? 43 : $status.hashCode());
  175. Object $isDeleted = this.getIsDeleted();
  176. result = result * 59 + ($isDeleted == null ? 43 : $isDeleted.hashCode());
  177. Object $createTime = this.getCreateTime();
  178. result = result * 59 + ($createTime == null ? 43 : $createTime.hashCode());
  179. Object $updateTime = this.getUpdateTime();
  180. result = result * 59 + ($updateTime == null ? 43 : $updateTime.hashCode());
  181. return result;
  182. }
  183. public String toString() {
  184. return "BaseEntity(createUser=" + this.getCreateUser() + ", createTime=" + this.getCreateTime() + ", updateUser=" + this.getUpdateUser() + ", updateTime=" + this.getUpdateTime() + ", status=" + this.getStatus() + ", isDeleted=" + this.getIsDeleted() + ")";
  185. }
  186. }