SysUserLinkZzbUserId.java 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. package com.ydtech.modules.admin.model.po;
  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 lombok.Data;
  7. import java.io.Serializable;
  8. import java.util.Date;
  9. /**
  10. * 掌柜用户关联客户管理掌中宝用户关联表
  11. * @TableName sys_user_link_zgb_user_id
  12. */
  13. @TableName(value ="sys_user_link_zzb_user_id")
  14. @Data
  15. public class SysUserLinkZzbUserId implements Serializable {
  16. /**
  17. * 主键
  18. */
  19. @TableId(value = "id", type = IdType.AUTO)
  20. private Long id;
  21. /**
  22. * 掌柜系统id
  23. */
  24. private String userId;
  25. /**
  26. * 掌中保系统用户id
  27. */
  28. private String zzbUserId;
  29. /**
  30. * 创建时间
  31. */
  32. private Date createTime;
  33. /**
  34. * 创建人
  35. */
  36. private String createUserId;
  37. @TableField(exist = false)
  38. private static final long serialVersionUID = 1L;
  39. @Override
  40. public boolean equals(Object that) {
  41. if (this == that) {
  42. return true;
  43. }
  44. if (that == null) {
  45. return false;
  46. }
  47. if (getClass() != that.getClass()) {
  48. return false;
  49. }
  50. SysUserLinkZzbUserId other = (SysUserLinkZzbUserId) that;
  51. return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
  52. && (this.getUserId() == null ? other.getUserId() == null : this.getUserId().equals(other.getUserId()))
  53. && (this.getZzbUserId() == null ? other.getZzbUserId() == null : this.getZzbUserId().equals(other.getZzbUserId()))
  54. && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
  55. && (this.getCreateUserId() == null ? other.getCreateUserId() == null : this.getCreateUserId().equals(other.getCreateUserId()));
  56. }
  57. @Override
  58. public int hashCode() {
  59. final int prime = 31;
  60. int result = 1;
  61. result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
  62. result = prime * result + ((getUserId() == null) ? 0 : getUserId().hashCode());
  63. result = prime * result + ((getZzbUserId() == null) ? 0 : getZzbUserId().hashCode());
  64. result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
  65. result = prime * result + ((getCreateUserId() == null) ? 0 : getCreateUserId().hashCode());
  66. return result;
  67. }
  68. @Override
  69. public String toString() {
  70. StringBuilder sb = new StringBuilder();
  71. sb.append(getClass().getSimpleName());
  72. sb.append(" [");
  73. sb.append("Hash = ").append(hashCode());
  74. sb.append(", id=").append(id);
  75. sb.append(", userId=").append(userId);
  76. sb.append(", zgbUserId=").append(zzbUserId);
  77. sb.append(", createTime=").append(createTime);
  78. sb.append(", createUserId=").append(createUserId);
  79. sb.append(", serialVersionUID=").append(serialVersionUID);
  80. sb.append("]");
  81. return sb.toString();
  82. }
  83. public SysUserLinkZzbUserId() {
  84. }
  85. public SysUserLinkZzbUserId(Long id, String userId, String zzbUserId, Date createTime, String createUserId) {
  86. this.id = id;
  87. this.userId = userId;
  88. this.zzbUserId = zzbUserId;
  89. this.createTime = createTime;
  90. this.createUserId = createUserId;
  91. }
  92. }