MarrApply.java 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180
  1. package com.zhentao.entity;
  2. import com.baomidou.mybatisplus.annotation.IdType;
  3. import com.baomidou.mybatisplus.annotation.TableField;
  4. import com.baomidou.mybatisplus.annotation.TableId;
  5. import com.baomidou.mybatisplus.annotation.TableName;
  6. import java.util.Date;
  7. import lombok.Data;
  8. /**
  9. * 红娘申请表
  10. * @TableName marr_apply
  11. */
  12. @TableName(value ="marr_apply")
  13. @Data
  14. public class MarrApply {
  15. /**
  16. * 红娘申请id
  17. */
  18. @TableId
  19. private Long applyId;
  20. /**
  21. * 用户id
  22. */
  23. private Integer userId;
  24. /**
  25. * 姓名
  26. */
  27. private String name;
  28. /**
  29. * 手机号
  30. */
  31. private String phone;
  32. /**
  33. * 电子邮箱
  34. */
  35. private String email;
  36. /**
  37. * 年龄
  38. */
  39. private Integer age;
  40. /**
  41. * 0-未知,1-男,2-女
  42. */
  43. private Integer gender;
  44. /**
  45. * 所在地区
  46. */
  47. private String area;
  48. /**
  49. * 婚姻介绍经验
  50. */
  51. private String experience;
  52. /**
  53. * 可服务时间
  54. */
  55. private String serverTime;
  56. /**
  57. * 个人简介
  58. */
  59. private String introduction;
  60. /**
  61. * 创建时间
  62. */
  63. private Date createTime;
  64. /**
  65. * 创建人
  66. */
  67. private String createMan;
  68. /**
  69. * 更新时间
  70. */
  71. private Date updateTime;
  72. /**
  73. * 更新人
  74. */
  75. private String updateMan;
  76. /**
  77. * 状态0-正常,1-禁止
  78. */
  79. private Integer status;
  80. /**
  81. * 删除状态0-正常,1-禁止 默认为0
  82. * */
  83. private String idStatus;
  84. @Override
  85. public boolean equals(Object that) {
  86. if (this == that) {
  87. return true;
  88. }
  89. if (that == null) {
  90. return false;
  91. }
  92. if (getClass() != that.getClass()) {
  93. return false;
  94. }
  95. MarrApply other = (MarrApply) that;
  96. return (this.getApplyId() == null ? other.getApplyId() == null : this.getApplyId().equals(other.getApplyId()))
  97. && (this.getUserId() == null ? other.getUserId() == null : this.getUserId().equals(other.getUserId()))
  98. && (this.getName() == null ? other.getName() == null : this.getName().equals(other.getName()))
  99. && (this.getPhone() == null ? other.getPhone() == null : this.getPhone().equals(other.getPhone()))
  100. && (this.getEmail() == null ? other.getEmail() == null : this.getEmail().equals(other.getEmail()))
  101. && (this.getAge() == null ? other.getAge() == null : this.getAge().equals(other.getAge()))
  102. && (this.getGender() == null ? other.getGender() == null : this.getGender().equals(other.getGender()))
  103. && (this.getArea() == null ? other.getArea() == null : this.getArea().equals(other.getArea()))
  104. && (this.getExperience() == null ? other.getExperience() == null : this.getExperience().equals(other.getExperience()))
  105. && (this.getServerTime() == null ? other.getServerTime() == null : this.getServerTime().equals(other.getServerTime()))
  106. && (this.getIntroduction() == null ? other.getIntroduction() == null : this.getIntroduction().equals(other.getIntroduction()))
  107. && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
  108. && (this.getCreateMan() == null ? other.getCreateMan() == null : this.getCreateMan().equals(other.getCreateMan()))
  109. && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()))
  110. && (this.getUpdateMan() == null ? other.getUpdateMan() == null : this.getUpdateMan().equals(other.getUpdateMan()))
  111. && (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus()));
  112. }
  113. @Override
  114. public int hashCode() {
  115. final int prime = 31;
  116. int result = 1;
  117. result = prime * result + ((getApplyId() == null) ? 0 : getApplyId().hashCode());
  118. result = prime * result + ((getUserId() == null) ? 0 : getUserId().hashCode());
  119. result = prime * result + ((getName() == null) ? 0 : getName().hashCode());
  120. result = prime * result + ((getPhone() == null) ? 0 : getPhone().hashCode());
  121. result = prime * result + ((getEmail() == null) ? 0 : getEmail().hashCode());
  122. result = prime * result + ((getAge() == null) ? 0 : getAge().hashCode());
  123. result = prime * result + ((getGender() == null) ? 0 : getGender().hashCode());
  124. result = prime * result + ((getArea() == null) ? 0 : getArea().hashCode());
  125. result = prime * result + ((getExperience() == null) ? 0 : getExperience().hashCode());
  126. result = prime * result + ((getServerTime() == null) ? 0 : getServerTime().hashCode());
  127. result = prime * result + ((getIntroduction() == null) ? 0 : getIntroduction().hashCode());
  128. result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
  129. result = prime * result + ((getCreateMan() == null) ? 0 : getCreateMan().hashCode());
  130. result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
  131. result = prime * result + ((getUpdateMan() == null) ? 0 : getUpdateMan().hashCode());
  132. result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode());
  133. return result;
  134. }
  135. @Override
  136. public String toString() {
  137. StringBuilder sb = new StringBuilder();
  138. sb.append(getClass().getSimpleName());
  139. sb.append(" [");
  140. sb.append("Hash = ").append(hashCode());
  141. sb.append(", applyId=").append(applyId);
  142. sb.append(", userId=").append(userId);
  143. sb.append(", name=").append(name);
  144. sb.append(", phone=").append(phone);
  145. sb.append(", email=").append(email);
  146. sb.append(", age=").append(age);
  147. sb.append(", gender=").append(gender);
  148. sb.append(", area=").append(area);
  149. sb.append(", experience=").append(experience);
  150. sb.append(", serverTime=").append(serverTime);
  151. sb.append(", introduction=").append(introduction);
  152. sb.append(", createTime=").append(createTime);
  153. sb.append(", createMan=").append(createMan);
  154. sb.append(", updateTime=").append(updateTime);
  155. sb.append(", updateMan=").append(updateMan);
  156. sb.append(", status=").append(status);
  157. sb.append("]");
  158. return sb.toString();
  159. }
  160. }