EsmYcPolicyInformation.java 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  1. package com.ydtech.modules.esm.model;
  2. import com.baomidou.mybatisplus.annotation.TableField;
  3. import com.baomidou.mybatisplus.annotation.TableId;
  4. import com.baomidou.mybatisplus.annotation.TableName;
  5. import java.io.Serializable;
  6. import java.math.BigDecimal;
  7. import java.time.LocalDate;
  8. import lombok.Data;
  9. /**
  10. * 永诚保单信息
  11. * @TableName esm_yc_policy_information
  12. */
  13. @TableName(value ="esm_yc_policy_information")
  14. @Data
  15. public class EsmYcPolicyInformation implements Serializable {
  16. /**
  17. * 主键
  18. */
  19. @TableId(value = "id")
  20. private Long id;
  21. /**
  22. * 车牌
  23. */
  24. @TableField(value = "license_plate")
  25. private String licensePlate;
  26. /**
  27. * 交强险单号
  28. */
  29. @TableField(value = "contract_no1")
  30. private String contractNo1;
  31. /**
  32. * 商业险单号
  33. */
  34. @TableField(value = "contract_no2")
  35. private String contractNo2;
  36. /**
  37. * 交强费用
  38. */
  39. @TableField(value = "premiums1")
  40. private BigDecimal premiums1;
  41. /**
  42. * 商业费用
  43. */
  44. @TableField(value = "premiums2")
  45. private BigDecimal premiums2;
  46. /**
  47. * 合计
  48. */
  49. @TableField(value = "tax")
  50. private BigDecimal tax;
  51. /**
  52. *
  53. */
  54. @TableField(value = "issue_date")
  55. private LocalDate issueDate;
  56. @TableField(exist = false)
  57. private static final long serialVersionUID = 1L;
  58. @Override
  59. public boolean equals(Object that) {
  60. if (this == that) {
  61. return true;
  62. }
  63. if (that == null) {
  64. return false;
  65. }
  66. if (getClass() != that.getClass()) {
  67. return false;
  68. }
  69. EsmYcPolicyInformation other = (EsmYcPolicyInformation) that;
  70. return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
  71. && (this.getLicensePlate() == null ? other.getLicensePlate() == null : this.getLicensePlate().equals(other.getLicensePlate()))
  72. && (this.getContractNo1() == null ? other.getContractNo1() == null : this.getContractNo1().equals(other.getContractNo1()))
  73. && (this.getContractNo2() == null ? other.getContractNo2() == null : this.getContractNo2().equals(other.getContractNo2()))
  74. && (this.getPremiums1() == null ? other.getPremiums1() == null : this.getPremiums1().equals(other.getPremiums1()))
  75. && (this.getPremiums2() == null ? other.getPremiums2() == null : this.getPremiums2().equals(other.getPremiums2()))
  76. && (this.getTax() == null ? other.getTax() == null : this.getTax().equals(other.getTax()))
  77. && (this.getIssueDate() == null ? other.getIssueDate() == null : this.getIssueDate().equals(other.getIssueDate()));
  78. }
  79. @Override
  80. public int hashCode() {
  81. final int prime = 31;
  82. int result = 1;
  83. result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
  84. result = prime * result + ((getLicensePlate() == null) ? 0 : getLicensePlate().hashCode());
  85. result = prime * result + ((getContractNo1() == null) ? 0 : getContractNo1().hashCode());
  86. result = prime * result + ((getContractNo2() == null) ? 0 : getContractNo2().hashCode());
  87. result = prime * result + ((getPremiums1() == null) ? 0 : getPremiums1().hashCode());
  88. result = prime * result + ((getPremiums2() == null) ? 0 : getPremiums2().hashCode());
  89. result = prime * result + ((getTax() == null) ? 0 : getTax().hashCode());
  90. result = prime * result + ((getIssueDate() == null) ? 0 : getIssueDate().hashCode());
  91. return result;
  92. }
  93. @Override
  94. public String toString() {
  95. StringBuilder sb = new StringBuilder();
  96. sb.append(getClass().getSimpleName());
  97. sb.append(" [");
  98. sb.append("Hash = ").append(hashCode());
  99. sb.append(", id=").append(id);
  100. sb.append(", licensePlate=").append(licensePlate);
  101. sb.append(", contractNo1=").append(contractNo1);
  102. sb.append(", contractNo2=").append(contractNo2);
  103. sb.append(", premiums1=").append(premiums1);
  104. sb.append(", premiums2=").append(premiums2);
  105. sb.append(", tax=").append(tax);
  106. sb.append(", issueDate=").append(issueDate);
  107. sb.append(", serialVersionUID=").append(serialVersionUID);
  108. sb.append("]");
  109. return sb.toString();
  110. }
  111. }