PtlAgreementSchedulingConfig.java 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. package com.ydtech.modules.protocol.entity.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 java.io.Serializable;
  7. import io.swagger.annotations.ApiModel;
  8. import io.swagger.annotations.ApiModelProperty;
  9. import lombok.Data;
  10. import org.apache.commons.lang3.ObjectUtils;
  11. /**
  12. * 协议调度配置(过滤保险公司)
  13. *
  14. * @TableName ptl_agreement_scheduling_config
  15. */
  16. @TableName(value = "ptl_agreement_scheduling_config")
  17. @Data
  18. @ApiModel("协议调度配置")
  19. public class PtlAgreementSchedulingConfig implements Serializable {
  20. /**
  21. * 主键 id
  22. */
  23. @TableId(value = "id", type = IdType.AUTO)
  24. private Integer id;
  25. /**
  26. * 保险公司id
  27. */
  28. @TableField(value = "company_id")
  29. private String companyId;
  30. /**
  31. * 保险公司名称
  32. */
  33. @TableField(value = "company_name")
  34. private String companyName;
  35. /**
  36. * APP是否启动(0不启动 1启动)
  37. */
  38. @TableField(value = "app_start")
  39. private Integer appStart;
  40. /**
  41. * PC是否启动(0不启动 1启动)
  42. */
  43. @TableField(value = "pc_start")
  44. private Integer pcStart;
  45. /**
  46. * 单交0330、单商034001、单三034002、交三0330034002、交商0330034001
  47. */
  48. @TableField(value = "products_code")
  49. private String productsCode;
  50. @TableField(exist = false)
  51. private static final long serialVersionUID = 1L;
  52. public Integer getAppStart() {
  53. return appStart == null ? 0 : appStart;
  54. }
  55. public Integer getPcStart() {
  56. return pcStart == null ? 0 : pcStart;
  57. }
  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. PtlAgreementSchedulingConfig other = (PtlAgreementSchedulingConfig) that;
  70. return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
  71. && (this.getCompanyId() == null ? other.getCompanyId() == null : this.getCompanyId().equals(other.getCompanyId()))
  72. && (this.getCompanyName() == null ? other.getCompanyName() == null : this.getCompanyName().equals(other.getCompanyName()))
  73. && (this.getAppStart() == null ? other.getAppStart() == null : this.getAppStart().equals(other.getAppStart()))
  74. && (this.getPcStart() == null ? other.getPcStart() == null : this.getPcStart().equals(other.getPcStart()))
  75. && (this.getProductsCode() == null ? other.getProductsCode() == null : this.getProductsCode().equals(other.getProductsCode()));
  76. }
  77. @Override
  78. public int hashCode() {
  79. final int prime = 31;
  80. int result = 1;
  81. result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
  82. result = prime * result + ((getCompanyId() == null) ? 0 : getCompanyId().hashCode());
  83. result = prime * result + ((getCompanyName() == null) ? 0 : getCompanyName().hashCode());
  84. result = prime * result + ((getAppStart() == null) ? 0 : getAppStart().hashCode());
  85. result = prime * result + ((getPcStart() == null) ? 0 : getPcStart().hashCode());
  86. result = prime * result + ((getProductsCode() == null) ? 0 : getProductsCode().hashCode());
  87. return result;
  88. }
  89. @Override
  90. public String toString() {
  91. StringBuilder sb = new StringBuilder();
  92. sb.append(getClass().getSimpleName());
  93. sb.append(" [");
  94. sb.append("Hash = ").append(hashCode());
  95. sb.append(", id=").append(id);
  96. sb.append(", companyId=").append(companyId);
  97. sb.append(", companyName=").append(companyName);
  98. sb.append(", appStart=").append(appStart);
  99. sb.append(", pcStart=").append(pcStart);
  100. sb.append(", productsCode=").append(productsCode);
  101. sb.append(", serialVersionUID=").append(serialVersionUID);
  102. sb.append("]");
  103. return sb.toString();
  104. }
  105. }