| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121 |
- package com.ydtech.modules.protocol.entity.po;
- import com.baomidou.mybatisplus.annotation.IdType;
- import com.baomidou.mybatisplus.annotation.TableField;
- import com.baomidou.mybatisplus.annotation.TableId;
- import com.baomidou.mybatisplus.annotation.TableName;
- import java.io.Serializable;
- import io.swagger.annotations.ApiModel;
- import io.swagger.annotations.ApiModelProperty;
- import lombok.Data;
- import org.apache.commons.lang3.ObjectUtils;
- /**
- * 协议调度配置(过滤保险公司)
- *
- * @TableName ptl_agreement_scheduling_config
- */
- @TableName(value = "ptl_agreement_scheduling_config")
- @Data
- @ApiModel("协议调度配置")
- public class PtlAgreementSchedulingConfig implements Serializable {
- /**
- * 主键 id
- */
- @TableId(value = "id", type = IdType.AUTO)
- private Integer id;
- /**
- * 保险公司id
- */
- @TableField(value = "company_id")
- private String companyId;
- /**
- * 保险公司名称
- */
- @TableField(value = "company_name")
- private String companyName;
- /**
- * APP是否启动(0不启动 1启动)
- */
- @TableField(value = "app_start")
- private Integer appStart;
- /**
- * PC是否启动(0不启动 1启动)
- */
- @TableField(value = "pc_start")
- private Integer pcStart;
- /**
- * 单交0330、单商034001、单三034002、交三0330034002、交商0330034001
- */
- @TableField(value = "products_code")
- private String productsCode;
- @TableField(exist = false)
- private static final long serialVersionUID = 1L;
- public Integer getAppStart() {
- return appStart == null ? 0 : appStart;
- }
- public Integer getPcStart() {
- return pcStart == null ? 0 : pcStart;
- }
- @Override
- public boolean equals(Object that) {
- if (this == that) {
- return true;
- }
- if (that == null) {
- return false;
- }
- if (getClass() != that.getClass()) {
- return false;
- }
- PtlAgreementSchedulingConfig other = (PtlAgreementSchedulingConfig) that;
- return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
- && (this.getCompanyId() == null ? other.getCompanyId() == null : this.getCompanyId().equals(other.getCompanyId()))
- && (this.getCompanyName() == null ? other.getCompanyName() == null : this.getCompanyName().equals(other.getCompanyName()))
- && (this.getAppStart() == null ? other.getAppStart() == null : this.getAppStart().equals(other.getAppStart()))
- && (this.getPcStart() == null ? other.getPcStart() == null : this.getPcStart().equals(other.getPcStart()))
- && (this.getProductsCode() == null ? other.getProductsCode() == null : this.getProductsCode().equals(other.getProductsCode()));
- }
- @Override
- public int hashCode() {
- final int prime = 31;
- int result = 1;
- result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
- result = prime * result + ((getCompanyId() == null) ? 0 : getCompanyId().hashCode());
- result = prime * result + ((getCompanyName() == null) ? 0 : getCompanyName().hashCode());
- result = prime * result + ((getAppStart() == null) ? 0 : getAppStart().hashCode());
- result = prime * result + ((getPcStart() == null) ? 0 : getPcStart().hashCode());
- result = prime * result + ((getProductsCode() == null) ? 0 : getProductsCode().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(", companyId=").append(companyId);
- sb.append(", companyName=").append(companyName);
- sb.append(", appStart=").append(appStart);
- sb.append(", pcStart=").append(pcStart);
- sb.append(", productsCode=").append(productsCode);
- sb.append(", serialVersionUID=").append(serialVersionUID);
- sb.append("]");
- return sb.toString();
- }
- }
|