PtlAgreementGroupLinkDept.java 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. package com.ydtech.modules.protocol.entity.po;
  2. import com.baomidou.mybatisplus.annotation.TableField;
  3. import com.baomidou.mybatisplus.annotation.TableId;
  4. import com.baomidou.mybatisplus.annotation.TableName;
  5. import lombok.Data;
  6. import java.io.Serializable;
  7. import java.util.Date;
  8. /**
  9. * 协议组关联部门
  10. * @TableName ptl_agreement_group_link_dept
  11. */
  12. @TableName(value ="ptl_agreement_group_link_dept")
  13. @Data
  14. public class PtlAgreementGroupLinkDept implements Serializable {
  15. /**
  16. * 主键
  17. */
  18. @TableId
  19. private Long id;
  20. /**
  21. * 用户组id
  22. */
  23. private Long ptlAgreementGroupId;
  24. /**
  25. * 六级机构id
  26. */
  27. private String deptId;
  28. /**
  29. * 创建时间
  30. */
  31. private Date createTime;
  32. /**
  33. * 创建人
  34. */
  35. private String createUser;
  36. @TableField(exist = false)
  37. private static final long serialVersionUID = 1L;
  38. @Override
  39. public boolean equals(Object that) {
  40. if (this == that) {
  41. return true;
  42. }
  43. if (that == null) {
  44. return false;
  45. }
  46. if (getClass() != that.getClass()) {
  47. return false;
  48. }
  49. PtlAgreementGroupLinkDept other = (PtlAgreementGroupLinkDept) that;
  50. return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
  51. && (this.getPtlAgreementGroupId() == null ? other.getPtlAgreementGroupId() == null : this.getPtlAgreementGroupId().equals(other.getPtlAgreementGroupId()))
  52. && (this.getDeptId() == null ? other.getDeptId() == null : this.getDeptId().equals(other.getDeptId()))
  53. && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
  54. && (this.getCreateUser() == null ? other.getCreateUser() == null : this.getCreateUser().equals(other.getCreateUser()));
  55. }
  56. @Override
  57. public int hashCode() {
  58. final int prime = 31;
  59. int result = 1;
  60. result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
  61. result = prime * result + ((getPtlAgreementGroupId() == null) ? 0 : getPtlAgreementGroupId().hashCode());
  62. result = prime * result + ((getDeptId() == null) ? 0 : getDeptId().hashCode());
  63. result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
  64. result = prime * result + ((getCreateUser() == null) ? 0 : getCreateUser().hashCode());
  65. return result;
  66. }
  67. @Override
  68. public String toString() {
  69. StringBuilder sb = new StringBuilder();
  70. sb.append(getClass().getSimpleName());
  71. sb.append(" [");
  72. sb.append("Hash = ").append(hashCode());
  73. sb.append(", id=").append(id);
  74. sb.append(", ptlAgreementGroupId=").append(ptlAgreementGroupId);
  75. sb.append(", deptId=").append(deptId);
  76. sb.append(", createTime=").append(createTime);
  77. sb.append(", createUser=").append(createUser);
  78. sb.append(", serialVersionUID=").append(serialVersionUID);
  79. sb.append("]");
  80. return sb.toString();
  81. }
  82. public PtlAgreementGroupLinkDept() {
  83. }
  84. public PtlAgreementGroupLinkDept(Long id, Long ptlAgreementGroupId, String deptId, Date createTime, String createUser) {
  85. this.id = id;
  86. this.ptlAgreementGroupId = ptlAgreementGroupId;
  87. this.deptId = deptId;
  88. this.createTime = createTime;
  89. this.createUser = createUser;
  90. }
  91. }