package com.ydtech.modules.esm.model; import com.baomidou.mybatisplus.annotation.TableField; import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.TableName; import java.io.Serializable; import java.math.BigDecimal; import java.time.LocalDate; import lombok.Data; /** * 永诚保单信息 * * @TableName esm_yc_policy_information */ @TableName(value = "esm_yc_policy_information") @Data public class EsmYcPolicyInformation implements Serializable { /** * 主键 */ @TableId(value = "id") private Long id; /** * 车牌 */ @TableField(value = "license_plate") private String licensePlate; /** * 交强险单号 */ @TableField(value = "contract_no1") private String contractNo1; /** * 商业险单号 */ @TableField(value = "contract_no2") private String contractNo2; /** * 交强费用 */ @TableField(value = "premiums1") private BigDecimal premiums1; /** * 商业费用 */ @TableField(value = "premiums2") private BigDecimal premiums2; /** * 合计 */ @TableField(value = "tax") private BigDecimal tax; /** * */ @TableField(value = "issue_date") private LocalDate issueDate; @TableField(exist = false) private static final long serialVersionUID = 1L; @Override public boolean equals(Object that) { if (this == that) { return true; } if (that == null) { return false; } if (getClass() != that.getClass()) { return false; } EsmYcPolicyInformation other = (EsmYcPolicyInformation) that; return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId())) && (this.getLicensePlate() == null ? other.getLicensePlate() == null : this.getLicensePlate().equals(other.getLicensePlate())) && (this.getContractNo1() == null ? other.getContractNo1() == null : this.getContractNo1().equals(other.getContractNo1())) && (this.getContractNo2() == null ? other.getContractNo2() == null : this.getContractNo2().equals(other.getContractNo2())) && (this.getPremiums1() == null ? other.getPremiums1() == null : this.getPremiums1().equals(other.getPremiums1())) && (this.getPremiums2() == null ? other.getPremiums2() == null : this.getPremiums2().equals(other.getPremiums2())) && (this.getTax() == null ? other.getTax() == null : this.getTax().equals(other.getTax())) && (this.getIssueDate() == null ? other.getIssueDate() == null : this.getIssueDate().equals(other.getIssueDate())); } @Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + ((getId() == null) ? 0 : getId().hashCode()); result = prime * result + ((getLicensePlate() == null) ? 0 : getLicensePlate().hashCode()); result = prime * result + ((getContractNo1() == null) ? 0 : getContractNo1().hashCode()); result = prime * result + ((getContractNo2() == null) ? 0 : getContractNo2().hashCode()); result = prime * result + ((getPremiums1() == null) ? 0 : getPremiums1().hashCode()); result = prime * result + ((getPremiums2() == null) ? 0 : getPremiums2().hashCode()); result = prime * result + ((getTax() == null) ? 0 : getTax().hashCode()); result = prime * result + ((getIssueDate() == null) ? 0 : getIssueDate().hashCode()); return result; } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append(getClass().getSimpleName()); sb.append(" ["); sb.append("Hash = ").append(hashCode()); sb.append(", id=").append(id); sb.append(", licensePlate=").append(licensePlate); sb.append(", contractNo1=").append(contractNo1); sb.append(", contractNo2=").append(contractNo2); sb.append(", premiums1=").append(premiums1); sb.append(", premiums2=").append(premiums2); sb.append(", tax=").append(tax); sb.append(", issueDate=").append(issueDate); sb.append(", serialVersionUID=").append(serialVersionUID); sb.append("]"); return sb.toString(); } }