MyResource.java 9.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257
  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 my_resource
  11. */
  12. @TableName(value ="my_resource")
  13. @Data
  14. public class MyResource {
  15. /**
  16. *
  17. */
  18. @TableId(type = IdType.AUTO)
  19. private Integer resourceId;
  20. /**
  21. * 用户id
  22. */
  23. private Integer userId;
  24. /**
  25. * 审核状态(0:待审核,1:审核通过,2:审核失败)
  26. */
  27. private Integer status;
  28. /**
  29. * 审核失败原因
  30. */
  31. private String rejectReason;
  32. /**
  33. * 奖励积分(用于后台开发人员计算红娘积分)
  34. */
  35. private Integer rewardPoints;
  36. /**
  37. * 红娘id
  38. */
  39. private Integer matchmakerId;
  40. /**
  41. * 名称
  42. */
  43. private String name;
  44. /**
  45. * 年龄
  46. */
  47. private Integer age;
  48. /**
  49. * 性别(1:男,2:女)
  50. */
  51. private Integer gender;
  52. /**
  53. * 星座
  54. */
  55. private String constellation;
  56. /**
  57. * 身高
  58. */
  59. private Integer height;
  60. /**
  61. * 体重
  62. */
  63. private Integer weight;
  64. /**
  65. * 婚姻状况(0未婚,1离异,2丧偶)
  66. */
  67. private Integer marrStatus;
  68. /**
  69. * 学历('高中', '专科', '本科', '硕士', '博士', '无')
  70. */
  71. private String diploma;
  72. /**
  73. * 收入('1-5k', '5-10k', '10-20k', '20-50k', '50k+')
  74. */
  75. private String income;
  76. /**
  77. * 住址
  78. */
  79. private String address;
  80. /**
  81. * 户籍所在地
  82. */
  83. private String domicile;
  84. /**
  85. * 职业
  86. */
  87. private String occupation;
  88. /**
  89. * 购房(0:无,1:有)
  90. */
  91. private Integer house;
  92. /**
  93. * 择偶要求
  94. */
  95. private String mateSelectionCriteria;
  96. /**
  97. * 手机号
  98. */
  99. private String phone;
  100. /**
  101. * 备用手机号
  102. */
  103. private String backupPhone;
  104. /**
  105. * 购车(0:无,1:有)
  106. */
  107. private Integer car;
  108. /**
  109. *
  110. */
  111. private Date createTime;
  112. /**
  113. *
  114. */
  115. private Date updateTime;
  116. /**
  117. * 该资源是否已注册用户 0未注册 1已注册 默认0 未注册标签为待审核 已注册标签为已审核 2审核失败
  118. */
  119. private Integer isUser;
  120. @Override
  121. public boolean equals(Object that) {
  122. if (this == that) {
  123. return true;
  124. }
  125. if (that == null) {
  126. return false;
  127. }
  128. if (getClass() != that.getClass()) {
  129. return false;
  130. }
  131. MyResource other = (MyResource) that;
  132. return (this.getResourceId() == null ? other.getResourceId() == null : this.getResourceId().equals(other.getResourceId()))
  133. && (this.getUserId() == null ? other.getUserId() == null : this.getUserId().equals(other.getUserId()))
  134. && (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus()))
  135. && (this.getRejectReason() == null ? other.getRejectReason() == null : this.getRejectReason().equals(other.getRejectReason()))
  136. && (this.getRewardPoints() == null ? other.getRewardPoints() == null : this.getRewardPoints().equals(other.getRewardPoints()))
  137. && (this.getMatchmakerId() == null ? other.getMatchmakerId() == null : this.getMatchmakerId().equals(other.getMatchmakerId()))
  138. && (this.getName() == null ? other.getName() == null : this.getName().equals(other.getName()))
  139. && (this.getAge() == null ? other.getAge() == null : this.getAge().equals(other.getAge()))
  140. && (this.getGender() == null ? other.getGender() == null : this.getGender().equals(other.getGender()))
  141. && (this.getConstellation() == null ? other.getConstellation() == null : this.getConstellation().equals(other.getConstellation()))
  142. && (this.getHeight() == null ? other.getHeight() == null : this.getHeight().equals(other.getHeight()))
  143. && (this.getWeight() == null ? other.getWeight() == null : this.getWeight().equals(other.getWeight()))
  144. && (this.getMarrStatus() == null ? other.getMarrStatus() == null : this.getMarrStatus().equals(other.getMarrStatus()))
  145. && (this.getDiploma() == null ? other.getDiploma() == null : this.getDiploma().equals(other.getDiploma()))
  146. && (this.getIncome() == null ? other.getIncome() == null : this.getIncome().equals(other.getIncome()))
  147. && (this.getAddress() == null ? other.getAddress() == null : this.getAddress().equals(other.getAddress()))
  148. && (this.getDomicile() == null ? other.getDomicile() == null : this.getDomicile().equals(other.getDomicile()))
  149. && (this.getOccupation() == null ? other.getOccupation() == null : this.getOccupation().equals(other.getOccupation()))
  150. && (this.getHouse() == null ? other.getHouse() == null : this.getHouse().equals(other.getHouse()))
  151. && (this.getMateSelectionCriteria() == null ? other.getMateSelectionCriteria() == null : this.getMateSelectionCriteria().equals(other.getMateSelectionCriteria()))
  152. && (this.getPhone() == null ? other.getPhone() == null : this.getPhone().equals(other.getPhone()))
  153. && (this.getBackupPhone() == null ? other.getBackupPhone() == null : this.getBackupPhone().equals(other.getBackupPhone()))
  154. && (this.getCar() == null ? other.getCar() == null : this.getCar().equals(other.getCar()))
  155. && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
  156. && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()))
  157. && (this.getIsUser() == null ? other.getIsUser() == null : this.getIsUser().equals(other.getIsUser()));
  158. }
  159. @Override
  160. public int hashCode() {
  161. final int prime = 31;
  162. int result = 1;
  163. result = prime * result + ((getResourceId() == null) ? 0 : getResourceId().hashCode());
  164. result = prime * result + ((getUserId() == null) ? 0 : getUserId().hashCode());
  165. result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode());
  166. result = prime * result + ((getRejectReason() == null) ? 0 : getRejectReason().hashCode());
  167. result = prime * result + ((getRewardPoints() == null) ? 0 : getRewardPoints().hashCode());
  168. result = prime * result + ((getMatchmakerId() == null) ? 0 : getMatchmakerId().hashCode());
  169. result = prime * result + ((getName() == null) ? 0 : getName().hashCode());
  170. result = prime * result + ((getAge() == null) ? 0 : getAge().hashCode());
  171. result = prime * result + ((getGender() == null) ? 0 : getGender().hashCode());
  172. result = prime * result + ((getConstellation() == null) ? 0 : getConstellation().hashCode());
  173. result = prime * result + ((getHeight() == null) ? 0 : getHeight().hashCode());
  174. result = prime * result + ((getWeight() == null) ? 0 : getWeight().hashCode());
  175. result = prime * result + ((getMarrStatus() == null) ? 0 : getMarrStatus().hashCode());
  176. result = prime * result + ((getDiploma() == null) ? 0 : getDiploma().hashCode());
  177. result = prime * result + ((getIncome() == null) ? 0 : getIncome().hashCode());
  178. result = prime * result + ((getAddress() == null) ? 0 : getAddress().hashCode());
  179. result = prime * result + ((getDomicile() == null) ? 0 : getDomicile().hashCode());
  180. result = prime * result + ((getOccupation() == null) ? 0 : getOccupation().hashCode());
  181. result = prime * result + ((getHouse() == null) ? 0 : getHouse().hashCode());
  182. result = prime * result + ((getMateSelectionCriteria() == null) ? 0 : getMateSelectionCriteria().hashCode());
  183. result = prime * result + ((getPhone() == null) ? 0 : getPhone().hashCode());
  184. result = prime * result + ((getBackupPhone() == null) ? 0 : getBackupPhone().hashCode());
  185. result = prime * result + ((getCar() == null) ? 0 : getCar().hashCode());
  186. result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
  187. result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
  188. result = prime * result + ((getIsUser() == null) ? 0 : getIsUser().hashCode());
  189. return result;
  190. }
  191. @Override
  192. public String toString() {
  193. StringBuilder sb = new StringBuilder();
  194. sb.append(getClass().getSimpleName());
  195. sb.append(" [");
  196. sb.append("Hash = ").append(hashCode());
  197. sb.append(", resourceId=").append(resourceId);
  198. sb.append(", userId=").append(userId);
  199. sb.append(", status=").append(status);
  200. sb.append(", rejectReason=").append(rejectReason);
  201. sb.append(", rewardPoints=").append(rewardPoints);
  202. sb.append(", matchmakerId=").append(matchmakerId);
  203. sb.append(", name=").append(name);
  204. sb.append(", age=").append(age);
  205. sb.append(", gender=").append(gender);
  206. sb.append(", constellation=").append(constellation);
  207. sb.append(", height=").append(height);
  208. sb.append(", weight=").append(weight);
  209. sb.append(", marrStatus=").append(marrStatus);
  210. sb.append(", diploma=").append(diploma);
  211. sb.append(", income=").append(income);
  212. sb.append(", address=").append(address);
  213. sb.append(", domicile=").append(domicile);
  214. sb.append(", occupation=").append(occupation);
  215. sb.append(", house=").append(house);
  216. sb.append(", mateSelectionCriteria=").append(mateSelectionCriteria);
  217. sb.append(", phone=").append(phone);
  218. sb.append(", backupPhone=").append(backupPhone);
  219. sb.append(", car=").append(car);
  220. sb.append(", createTime=").append(createTime);
  221. sb.append(", updateTime=").append(updateTime);
  222. sb.append(", isUser=").append(isUser);
  223. sb.append("]");
  224. return sb.toString();
  225. }
  226. }