|
@@ -1,190 +1,102 @@
|
|
|
package com.jzg.commons.entity.account.po;
|
|
package com.jzg.commons.entity.account.po;
|
|
|
|
|
|
|
|
import java.io.Serializable;
|
|
import java.io.Serializable;
|
|
|
|
|
+import java.time.LocalDate;
|
|
|
import java.util.Date;
|
|
import java.util.Date;
|
|
|
|
|
+
|
|
|
|
|
+import com.fasterxml.jackson.annotation.JsonFormat;
|
|
|
|
|
+import com.jzg.commons.core.base.BaseModel;
|
|
|
|
|
+import io.swagger.v3.oas.annotations.media.Schema;
|
|
|
import lombok.Data;
|
|
import lombok.Data;
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* 来往企业表
|
|
* 来往企业表
|
|
|
* @TableName inv_account
|
|
* @TableName inv_account
|
|
|
*/
|
|
*/
|
|
|
|
|
+@Schema(description = "来往企业表")
|
|
|
@Data
|
|
@Data
|
|
|
-public class InvAccount implements Serializable {
|
|
|
|
|
|
|
+public class InvAccount extends BaseModel {
|
|
|
/**
|
|
/**
|
|
|
* 账户id
|
|
* 账户id
|
|
|
*/
|
|
*/
|
|
|
- private Long accountId;
|
|
|
|
|
|
|
+ @Schema(description = "主键")
|
|
|
|
|
+ private Long id;
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* 户名
|
|
* 户名
|
|
|
*/
|
|
*/
|
|
|
|
|
+ @Schema(description = "户名")
|
|
|
private String accountName;
|
|
private String accountName;
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* 企业类型(0内部企业 1外部企业)
|
|
* 企业类型(0内部企业 1外部企业)
|
|
|
*/
|
|
*/
|
|
|
- private String outerFlag;
|
|
|
|
|
|
|
+ @Schema(description = "企业类型(0内部企业 1外部企业)")
|
|
|
|
|
+ private Integer outerFlag;
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* 营业性质(3一般纳税 2小规模 1个体户)
|
|
* 营业性质(3一般纳税 2小规模 1个体户)
|
|
|
*/
|
|
*/
|
|
|
- private String businessQuality;
|
|
|
|
|
|
|
+ @Schema(description = "营业性质(3一般纳税 2小规模 1个体户)")
|
|
|
|
|
+ private Integer businessQuality;
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* 所属地
|
|
* 所属地
|
|
|
*/
|
|
*/
|
|
|
|
|
+ @Schema(description = "所属地")
|
|
|
private String owned;
|
|
private String owned;
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* 法人
|
|
* 法人
|
|
|
*/
|
|
*/
|
|
|
|
|
+ @Schema(description = "法人")
|
|
|
private String juridicalPerson;
|
|
private String juridicalPerson;
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* 成立日期
|
|
* 成立日期
|
|
|
*/
|
|
*/
|
|
|
- private Date establishTime;
|
|
|
|
|
|
|
+ @Schema(description = "成立日期")
|
|
|
|
|
+ @JsonFormat(pattern = "yyyy-MM-dd")
|
|
|
|
|
+ private LocalDate establishTime;
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* 开票员
|
|
* 开票员
|
|
|
*/
|
|
*/
|
|
|
|
|
+ @Schema(description = "开票员")
|
|
|
private String biller;
|
|
private String biller;
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* 开票额度
|
|
* 开票额度
|
|
|
*/
|
|
*/
|
|
|
|
|
+ @Schema(description = "开票额度")
|
|
|
private String invoicingAmount;
|
|
private String invoicingAmount;
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* 剩余开票额度
|
|
* 剩余开票额度
|
|
|
*/
|
|
*/
|
|
|
|
|
+ @Schema(description = "剩余开票额度")
|
|
|
private String invoicingAmountExcess;
|
|
private String invoicingAmountExcess;
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* 季度开票额度
|
|
* 季度开票额度
|
|
|
*/
|
|
*/
|
|
|
|
|
+ @Schema(description = "季度开票额度")
|
|
|
private String quarterInvoicingAmount;
|
|
private String quarterInvoicingAmount;
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* 总开票额度
|
|
* 总开票额度
|
|
|
*/
|
|
*/
|
|
|
|
|
+ @Schema(description = "总开票额度")
|
|
|
private String sumInvoicingAmount;
|
|
private String sumInvoicingAmount;
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* 暂估
|
|
* 暂估
|
|
|
*/
|
|
*/
|
|
|
|
|
+ @Schema(description = "暂估")
|
|
|
private String tentativeEstimates;
|
|
private String tentativeEstimates;
|
|
|
|
|
|
|
|
- /**
|
|
|
|
|
- * 创建人
|
|
|
|
|
- */
|
|
|
|
|
- private String createBy;
|
|
|
|
|
-
|
|
|
|
|
- /**
|
|
|
|
|
- * 创建时间
|
|
|
|
|
- */
|
|
|
|
|
- private Date createTime;
|
|
|
|
|
-
|
|
|
|
|
- /**
|
|
|
|
|
- * 更新人
|
|
|
|
|
- */
|
|
|
|
|
- private String updateBy;
|
|
|
|
|
|
|
+ /** 系统code */
|
|
|
|
|
+ @Schema(description = "系统code")
|
|
|
|
|
+ private String systemCode;
|
|
|
|
|
|
|
|
- /**
|
|
|
|
|
- * 更新时间
|
|
|
|
|
- */
|
|
|
|
|
- private Date updateTime;
|
|
|
|
|
-
|
|
|
|
|
- /**
|
|
|
|
|
- * 是否删除
|
|
|
|
|
- */
|
|
|
|
|
- private Integer isDelete;
|
|
|
|
|
-
|
|
|
|
|
- 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;
|
|
|
|
|
- }
|
|
|
|
|
- InvAccount other = (InvAccount) that;
|
|
|
|
|
- return (this.getAccountId() == null ? other.getAccountId() == null : this.getAccountId().equals(other.getAccountId()))
|
|
|
|
|
- && (this.getAccountName() == null ? other.getAccountName() == null : this.getAccountName().equals(other.getAccountName()))
|
|
|
|
|
- && (this.getOuterFlag() == null ? other.getOuterFlag() == null : this.getOuterFlag().equals(other.getOuterFlag()))
|
|
|
|
|
- && (this.getBusinessQuality() == null ? other.getBusinessQuality() == null : this.getBusinessQuality().equals(other.getBusinessQuality()))
|
|
|
|
|
- && (this.getOwned() == null ? other.getOwned() == null : this.getOwned().equals(other.getOwned()))
|
|
|
|
|
- && (this.getJuridicalPerson() == null ? other.getJuridicalPerson() == null : this.getJuridicalPerson().equals(other.getJuridicalPerson()))
|
|
|
|
|
- && (this.getEstablishTime() == null ? other.getEstablishTime() == null : this.getEstablishTime().equals(other.getEstablishTime()))
|
|
|
|
|
- && (this.getBiller() == null ? other.getBiller() == null : this.getBiller().equals(other.getBiller()))
|
|
|
|
|
- && (this.getInvoicingAmount() == null ? other.getInvoicingAmount() == null : this.getInvoicingAmount().equals(other.getInvoicingAmount()))
|
|
|
|
|
- && (this.getInvoicingAmountExcess() == null ? other.getInvoicingAmountExcess() == null : this.getInvoicingAmountExcess().equals(other.getInvoicingAmountExcess()))
|
|
|
|
|
- && (this.getQuarterInvoicingAmount() == null ? other.getQuarterInvoicingAmount() == null : this.getQuarterInvoicingAmount().equals(other.getQuarterInvoicingAmount()))
|
|
|
|
|
- && (this.getSumInvoicingAmount() == null ? other.getSumInvoicingAmount() == null : this.getSumInvoicingAmount().equals(other.getSumInvoicingAmount()))
|
|
|
|
|
- && (this.getTentativeEstimates() == null ? other.getTentativeEstimates() == null : this.getTentativeEstimates().equals(other.getTentativeEstimates()))
|
|
|
|
|
- && (this.getCreateBy() == null ? other.getCreateBy() == null : this.getCreateBy().equals(other.getCreateBy()))
|
|
|
|
|
- && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
|
|
|
|
|
- && (this.getUpdateBy() == null ? other.getUpdateBy() == null : this.getUpdateBy().equals(other.getUpdateBy()))
|
|
|
|
|
- && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()))
|
|
|
|
|
- && (this.getIsDelete() == null ? other.getIsDelete() == null : this.getIsDelete().equals(other.getIsDelete()));
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- @Override
|
|
|
|
|
- public int hashCode() {
|
|
|
|
|
- final int prime = 31;
|
|
|
|
|
- int result = 1;
|
|
|
|
|
- result = prime * result + ((getAccountId() == null) ? 0 : getAccountId().hashCode());
|
|
|
|
|
- result = prime * result + ((getAccountName() == null) ? 0 : getAccountName().hashCode());
|
|
|
|
|
- result = prime * result + ((getOuterFlag() == null) ? 0 : getOuterFlag().hashCode());
|
|
|
|
|
- result = prime * result + ((getBusinessQuality() == null) ? 0 : getBusinessQuality().hashCode());
|
|
|
|
|
- result = prime * result + ((getOwned() == null) ? 0 : getOwned().hashCode());
|
|
|
|
|
- result = prime * result + ((getJuridicalPerson() == null) ? 0 : getJuridicalPerson().hashCode());
|
|
|
|
|
- result = prime * result + ((getEstablishTime() == null) ? 0 : getEstablishTime().hashCode());
|
|
|
|
|
- result = prime * result + ((getBiller() == null) ? 0 : getBiller().hashCode());
|
|
|
|
|
- result = prime * result + ((getInvoicingAmount() == null) ? 0 : getInvoicingAmount().hashCode());
|
|
|
|
|
- result = prime * result + ((getInvoicingAmountExcess() == null) ? 0 : getInvoicingAmountExcess().hashCode());
|
|
|
|
|
- result = prime * result + ((getQuarterInvoicingAmount() == null) ? 0 : getQuarterInvoicingAmount().hashCode());
|
|
|
|
|
- result = prime * result + ((getSumInvoicingAmount() == null) ? 0 : getSumInvoicingAmount().hashCode());
|
|
|
|
|
- result = prime * result + ((getTentativeEstimates() == null) ? 0 : getTentativeEstimates().hashCode());
|
|
|
|
|
- result = prime * result + ((getCreateBy() == null) ? 0 : getCreateBy().hashCode());
|
|
|
|
|
- result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
|
|
|
|
|
- result = prime * result + ((getUpdateBy() == null) ? 0 : getUpdateBy().hashCode());
|
|
|
|
|
- result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
|
|
|
|
|
- result = prime * result + ((getIsDelete() == null) ? 0 : getIsDelete().hashCode());
|
|
|
|
|
- return result;
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- @Override
|
|
|
|
|
- public String toString() {
|
|
|
|
|
- StringBuilder sb = new StringBuilder();
|
|
|
|
|
- sb.append(getClass().getSimpleName());
|
|
|
|
|
- sb.append(" [");
|
|
|
|
|
- sb.append("Hash = ").append(hashCode());
|
|
|
|
|
- sb.append(", accountId=").append(accountId);
|
|
|
|
|
- sb.append(", accountName=").append(accountName);
|
|
|
|
|
- sb.append(", outerFlag=").append(outerFlag);
|
|
|
|
|
- sb.append(", businessQuality=").append(businessQuality);
|
|
|
|
|
- sb.append(", owned=").append(owned);
|
|
|
|
|
- sb.append(", juridicalPerson=").append(juridicalPerson);
|
|
|
|
|
- sb.append(", establishTime=").append(establishTime);
|
|
|
|
|
- sb.append(", biller=").append(biller);
|
|
|
|
|
- sb.append(", invoicingAmount=").append(invoicingAmount);
|
|
|
|
|
- sb.append(", invoicingAmountExcess=").append(invoicingAmountExcess);
|
|
|
|
|
- sb.append(", quarterInvoicingAmount=").append(quarterInvoicingAmount);
|
|
|
|
|
- sb.append(", sumInvoicingAmount=").append(sumInvoicingAmount);
|
|
|
|
|
- sb.append(", tentativeEstimates=").append(tentativeEstimates);
|
|
|
|
|
- sb.append(", createBy=").append(createBy);
|
|
|
|
|
- sb.append(", createTime=").append(createTime);
|
|
|
|
|
- sb.append(", updateBy=").append(updateBy);
|
|
|
|
|
- sb.append(", updateTime=").append(updateTime);
|
|
|
|
|
- sb.append(", isDelete=").append(isDelete);
|
|
|
|
|
- sb.append(", serialVersionUID=").append(serialVersionUID);
|
|
|
|
|
- sb.append("]");
|
|
|
|
|
- return sb.toString();
|
|
|
|
|
- }
|
|
|
|
|
}
|
|
}
|