feat: 添加多个实体类实现基础接口和Voable接口
添加公司、项目、合同、供应商、客户等相关实体类,实现IdentityEntity、BasedEntity、CompanyBasedEntity等基础接口和Voable接口 包含公司文件、合同文件、供应商文件、客户文件等实体类 实现equals、hashCode和toVo方法 添加相关字段和JPA注解
This commit is contained in:
@@ -1,6 +1,5 @@
|
|||||||
package com.ecep.contract.model;
|
package com.ecep.contract.model;
|
||||||
|
|
||||||
import java.io.Serializable;
|
|
||||||
import java.time.LocalDate;
|
import java.time.LocalDate;
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
|
|
||||||
@@ -28,8 +27,7 @@ import lombok.ToString;
|
|||||||
@Entity
|
@Entity
|
||||||
@Table(name = "COMPANY")
|
@Table(name = "COMPANY")
|
||||||
@ToString
|
@ToString
|
||||||
public class Company implements IdentityEntity, NamedEntity, BasedEntity, Serializable, Voable<CompanyVo> {
|
public class Company implements IdentityEntity, NamedEntity, BasedEntity, Voable<CompanyVo> {
|
||||||
private static final long serialVersionUID = 1L;
|
|
||||||
|
|
||||||
@Id
|
@Id
|
||||||
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||||
@@ -1,6 +1,5 @@
|
|||||||
package com.ecep.contract.model;
|
package com.ecep.contract.model;
|
||||||
|
|
||||||
import java.io.Serializable;
|
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
|
|
||||||
import com.ecep.contract.util.HibernateProxyUtils;
|
import com.ecep.contract.util.HibernateProxyUtils;
|
||||||
@@ -22,8 +21,7 @@ import lombok.ToString;
|
|||||||
@Setter
|
@Setter
|
||||||
@jakarta.persistence.Entity
|
@jakarta.persistence.Entity
|
||||||
@Table(name = "COMPANY_BANK_ACCOUNT", schema = "supplier_ms")
|
@Table(name = "COMPANY_BANK_ACCOUNT", schema = "supplier_ms")
|
||||||
public class CompanyBankAccount implements IdentityEntity, BasedEntity, CompanyBasedEntity, Serializable, Voable<CompanyBankAccountVo> {
|
public class CompanyBankAccount implements IdentityEntity, BasedEntity, CompanyBasedEntity, Voable<CompanyBankAccountVo> {
|
||||||
private static final long serialVersionUID = 1L;
|
|
||||||
@Id
|
@Id
|
||||||
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||||
@Column(name = "ID", nullable = false)
|
@Column(name = "ID", nullable = false)
|
||||||
@@ -1,6 +1,5 @@
|
|||||||
package com.ecep.contract.model;
|
package com.ecep.contract.model;
|
||||||
|
|
||||||
import java.io.Serializable;
|
|
||||||
import java.time.LocalDate;
|
import java.time.LocalDate;
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
|
|
||||||
@@ -34,8 +33,7 @@ import lombok.Setter;
|
|||||||
})
|
})
|
||||||
// @org.springframework.data.relational.core.mapping.Table("COMPANY_BLACK_REASON")
|
// @org.springframework.data.relational.core.mapping.Table("COMPANY_BLACK_REASON")
|
||||||
@JsonIgnoreProperties(ignoreUnknown = true)
|
@JsonIgnoreProperties(ignoreUnknown = true)
|
||||||
public class CompanyBlackReason implements IdentityEntity, CompanyBasedEntity, Serializable, Voable<CompanyBlackReasonVo> {
|
public class CompanyBlackReason implements IdentityEntity, CompanyBasedEntity, Voable<CompanyBlackReasonVo> {
|
||||||
private static final long serialVersionUID = 1L;
|
|
||||||
@Id
|
@Id
|
||||||
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||||
@Column(name = "ID", nullable = false)
|
@Column(name = "ID", nullable = false)
|
||||||
@@ -1,6 +1,5 @@
|
|||||||
package com.ecep.contract.model;
|
package com.ecep.contract.model;
|
||||||
|
|
||||||
import java.io.Serializable;
|
|
||||||
import java.time.LocalDate;
|
import java.time.LocalDate;
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
|
|
||||||
@@ -31,8 +30,7 @@ import lombok.ToString;
|
|||||||
@Index(name = "CUSTOMER_ID", columnList = "COMPANY_ID")
|
@Index(name = "CUSTOMER_ID", columnList = "COMPANY_ID")
|
||||||
})
|
})
|
||||||
@ToString
|
@ToString
|
||||||
public class CompanyContact implements IdentityEntity, NamedEntity, BasedEntity, CompanyBasedEntity, Serializable, Voable<CompanyContactVo> {
|
public class CompanyContact implements IdentityEntity, NamedEntity, BasedEntity, CompanyBasedEntity, Voable<CompanyContactVo> {
|
||||||
private static final long serialVersionUID = 1L;
|
|
||||||
@Id
|
@Id
|
||||||
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||||
@Column(name = "ID", nullable = false)
|
@Column(name = "ID", nullable = false)
|
||||||
@@ -1,6 +1,5 @@
|
|||||||
package com.ecep.contract.model;
|
package com.ecep.contract.model;
|
||||||
|
|
||||||
import java.io.Serializable;
|
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
|
|
||||||
import org.hibernate.annotations.ColumnDefault;
|
import org.hibernate.annotations.ColumnDefault;
|
||||||
@@ -27,8 +26,8 @@ import lombok.ToString;
|
|||||||
@Entity
|
@Entity
|
||||||
@Table(name = "COMPANY_EXTEND_INFO", schema = "supplier_ms")
|
@Table(name = "COMPANY_EXTEND_INFO", schema = "supplier_ms")
|
||||||
@ToString
|
@ToString
|
||||||
public class CompanyExtendInfo implements IdentityEntity, Serializable, Voable<CompanyExtendInfoVo> {
|
public class CompanyExtendInfo
|
||||||
private static final long serialVersionUID = 1L;
|
implements IdentityEntity, CompanyBasedEntity, Voable<CompanyExtendInfoVo> {
|
||||||
@Id
|
@Id
|
||||||
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||||
@Column(name = "ID", nullable = false)
|
@Column(name = "ID", nullable = false)
|
||||||
@@ -1,6 +1,5 @@
|
|||||||
package com.ecep.contract.model;
|
package com.ecep.contract.model;
|
||||||
|
|
||||||
import java.io.Serializable;
|
|
||||||
import java.time.LocalDate;
|
import java.time.LocalDate;
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
|
|
||||||
@@ -31,8 +30,7 @@ import lombok.ToString;
|
|||||||
@Entity
|
@Entity
|
||||||
@Table(name = "COMPANY_FILE")
|
@Table(name = "COMPANY_FILE")
|
||||||
@ToString
|
@ToString
|
||||||
public class CompanyFile implements IdentityEntity, CompanyBasedEntity, Serializable, Voable<CompanyFileVo> {
|
public class CompanyFile implements IdentityEntity, CompanyBasedEntity, Voable<CompanyFileVo> {
|
||||||
private static final long serialVersionUID = 1L;
|
|
||||||
|
|
||||||
@Id
|
@Id
|
||||||
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||||
@@ -1,6 +1,5 @@
|
|||||||
package com.ecep.contract.model;
|
package com.ecep.contract.model;
|
||||||
|
|
||||||
import java.io.Serializable;
|
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
|
|
||||||
import com.ecep.contract.util.HibernateProxyUtils;
|
import com.ecep.contract.util.HibernateProxyUtils;
|
||||||
@@ -27,8 +26,7 @@ import lombok.ToString;
|
|||||||
@Entity
|
@Entity
|
||||||
@Table(name = "COMPANY_INVOICE_INFO", schema = "supplier_ms")
|
@Table(name = "COMPANY_INVOICE_INFO", schema = "supplier_ms")
|
||||||
@ToString
|
@ToString
|
||||||
public class CompanyInvoiceInfo implements IdentityEntity, NamedEntity, BasedEntity, CompanyBasedEntity, Serializable, Voable<CompanyInvoiceInfoVo> {
|
public class CompanyInvoiceInfo implements IdentityEntity, NamedEntity, BasedEntity, CompanyBasedEntity, Voable<CompanyInvoiceInfoVo> {
|
||||||
private static final long serialVersionUID = 1L;
|
|
||||||
|
|
||||||
@Id
|
@Id
|
||||||
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||||
@@ -1,6 +1,5 @@
|
|||||||
package com.ecep.contract.model;
|
package com.ecep.contract.model;
|
||||||
|
|
||||||
import java.io.Serializable;
|
|
||||||
import java.time.LocalDate;
|
import java.time.LocalDate;
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
|
|
||||||
@@ -25,8 +24,7 @@ import lombok.ToString;
|
|||||||
@Entity
|
@Entity
|
||||||
@Table(name = "COMPANY_OLDNAME")
|
@Table(name = "COMPANY_OLDNAME")
|
||||||
@ToString
|
@ToString
|
||||||
public class CompanyOldName implements IdentityEntity, NamedEntity, Serializable, Voable<CompanyOldNameVo> {
|
public class CompanyOldName implements IdentityEntity, NamedEntity, Voable<CompanyOldNameVo> {
|
||||||
private static final long serialVersionUID = 1L;
|
|
||||||
@Id
|
@Id
|
||||||
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||||
@Column(name = "ID", nullable = false)
|
@Column(name = "ID", nullable = false)
|
||||||
@@ -1,6 +1,5 @@
|
|||||||
package com.ecep.contract.model;
|
package com.ecep.contract.model;
|
||||||
|
|
||||||
import java.io.Serializable;
|
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
|
|
||||||
@@ -32,8 +31,7 @@ import lombok.ToString;
|
|||||||
|
|
||||||
})
|
})
|
||||||
@ToString(exclude = { "company", "contract" })
|
@ToString(exclude = { "company", "contract" })
|
||||||
public class CompanyContract implements IdentityEntity, CompanyBasedEntity, Serializable, Voable<CompanyContractVo> {
|
public class CompanyContract implements IdentityEntity, CompanyBasedEntity, Voable<CompanyContractVo> {
|
||||||
private static final long serialVersionUID = 1L;
|
|
||||||
@Id
|
@Id
|
||||||
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||||
@Column(name = "ID", nullable = false)
|
@Column(name = "ID", nullable = false)
|
||||||
@@ -1,6 +1,5 @@
|
|||||||
package com.ecep.contract.model;
|
package com.ecep.contract.model;
|
||||||
|
|
||||||
import java.io.Serializable;
|
|
||||||
import java.time.LocalDate;
|
import java.time.LocalDate;
|
||||||
import java.time.LocalDateTime;
|
import java.time.LocalDateTime;
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
@@ -37,8 +36,7 @@ import lombok.ToString;
|
|||||||
@Table(name = "CONTRACT", schema = "supplier_ms")
|
@Table(name = "CONTRACT", schema = "supplier_ms")
|
||||||
@ToString
|
@ToString
|
||||||
public class Contract
|
public class Contract
|
||||||
implements IdentityEntity, NamedEntity, BasedEntity, CompanyBasedEntity, Serializable, Voable<ContractVo> {
|
implements IdentityEntity, NamedEntity, BasedEntity, CompanyBasedEntity, Voable<ContractVo> {
|
||||||
private static final long serialVersionUID = 1L;
|
|
||||||
/**
|
/**
|
||||||
* 主键
|
* 主键
|
||||||
*/
|
*/
|
||||||
@@ -1,6 +1,5 @@
|
|||||||
package com.ecep.contract.model;
|
package com.ecep.contract.model;
|
||||||
|
|
||||||
import java.io.Serializable;
|
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
|
|
||||||
import com.ecep.contract.util.HibernateProxyUtils;
|
import com.ecep.contract.util.HibernateProxyUtils;
|
||||||
@@ -29,8 +28,7 @@ import lombok.ToString;
|
|||||||
|
|
||||||
})
|
})
|
||||||
@ToString
|
@ToString
|
||||||
public class ContractBidVendor implements IdentityEntity, ContractBasedEntity, Serializable, Voable<ContractBidVendorVo> {
|
public class ContractBidVendor implements IdentityEntity, ContractBasedEntity, Voable<ContractBidVendorVo> {
|
||||||
private static final long serialVersionUID = 1L;
|
|
||||||
@Id
|
@Id
|
||||||
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||||
@Column(name = "ID", nullable = false)
|
@Column(name = "ID", nullable = false)
|
||||||
@@ -1,6 +1,5 @@
|
|||||||
package com.ecep.contract.model;
|
package com.ecep.contract.model;
|
||||||
|
|
||||||
import java.io.Serializable;
|
|
||||||
import java.time.LocalDate;
|
import java.time.LocalDate;
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
|
|
||||||
@@ -32,8 +31,7 @@ import lombok.ToString;
|
|||||||
@Entity
|
@Entity
|
||||||
@Table(name = "CONTRACT_FILE")
|
@Table(name = "CONTRACT_FILE")
|
||||||
@ToString
|
@ToString
|
||||||
public class ContractFile implements IdentityEntity, ContractBasedEntity, Serializable, Voable<ContractFileVo> {
|
public class ContractFile implements IdentityEntity, ContractBasedEntity, Voable<ContractFileVo> {
|
||||||
private static final long serialVersionUID = 1L;
|
|
||||||
@Id
|
@Id
|
||||||
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||||
@Column(name = "ID", nullable = false)
|
@Column(name = "ID", nullable = false)
|
||||||
@@ -1,6 +1,5 @@
|
|||||||
package com.ecep.contract.model;
|
package com.ecep.contract.model;
|
||||||
|
|
||||||
import java.io.Serializable;
|
|
||||||
import java.time.LocalDate;
|
import java.time.LocalDate;
|
||||||
import java.time.LocalDateTime;
|
import java.time.LocalDateTime;
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
@@ -30,8 +29,7 @@ import lombok.ToString;
|
|||||||
@Table(name = "CONTRACT_ITEM")
|
@Table(name = "CONTRACT_ITEM")
|
||||||
@ToString
|
@ToString
|
||||||
public class ContractItem
|
public class ContractItem
|
||||||
implements IdentityEntity, ContractBasedEntity, BasedEntity, Serializable, Voable<ContractItemVo> {
|
implements IdentityEntity, ContractBasedEntity, BasedEntity, Voable<ContractItemVo> {
|
||||||
private static final long serialVersionUID = 1L;
|
|
||||||
@Id
|
@Id
|
||||||
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||||
@Column(name = "ID", nullable = false)
|
@Column(name = "ID", nullable = false)
|
||||||
@@ -1,6 +1,5 @@
|
|||||||
package com.ecep.contract.model;
|
package com.ecep.contract.model;
|
||||||
|
|
||||||
import java.io.Serializable;
|
|
||||||
import java.time.LocalDate;
|
import java.time.LocalDate;
|
||||||
import java.time.LocalDateTime;
|
import java.time.LocalDateTime;
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
@@ -28,8 +27,7 @@ import lombok.Setter;
|
|||||||
@Entity
|
@Entity
|
||||||
@Table(name = "CONTRACT_PAY_PLAN", schema = "supplier_ms", indexes = {
|
@Table(name = "CONTRACT_PAY_PLAN", schema = "supplier_ms", indexes = {
|
||||||
})
|
})
|
||||||
public class ContractPayPlan implements IdentityEntity, ContractBasedEntity, Serializable, Voable<ContractPayPlanVo> {
|
public class ContractPayPlan implements IdentityEntity, ContractBasedEntity, Voable<ContractPayPlanVo> {
|
||||||
private static final long serialVersionUID = 1L;
|
|
||||||
@Id
|
@Id
|
||||||
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||||
@Column(name = "ID", nullable = false)
|
@Column(name = "ID", nullable = false)
|
||||||
@@ -1,6 +1,5 @@
|
|||||||
package com.ecep.contract.model;
|
package com.ecep.contract.model;
|
||||||
|
|
||||||
import java.io.Serializable;
|
|
||||||
import java.time.LocalDate;
|
import java.time.LocalDate;
|
||||||
import java.time.LocalDateTime;
|
import java.time.LocalDateTime;
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
@@ -29,8 +28,7 @@ import lombok.ToString;
|
|||||||
|
|
||||||
})
|
})
|
||||||
@ToString
|
@ToString
|
||||||
public class CompanyCustomer implements IdentityEntity, CompanyBasedEntity, Serializable, Voable<CompanyCustomerVo> {
|
public class CompanyCustomer implements IdentityEntity, CompanyBasedEntity, Voable<CompanyCustomerVo> {
|
||||||
private static final long serialVersionUID = 1L;
|
|
||||||
@Id
|
@Id
|
||||||
@Column(name = "ID", nullable = false)
|
@Column(name = "ID", nullable = false)
|
||||||
private Integer id;
|
private Integer id;
|
||||||
@@ -1,6 +1,5 @@
|
|||||||
package com.ecep.contract.model;
|
package com.ecep.contract.model;
|
||||||
|
|
||||||
import java.io.Serializable;
|
|
||||||
import java.time.LocalDate;
|
import java.time.LocalDate;
|
||||||
import java.time.LocalDateTime;
|
import java.time.LocalDateTime;
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
@@ -28,8 +27,7 @@ import lombok.ToString;
|
|||||||
|
|
||||||
})
|
})
|
||||||
@ToString
|
@ToString
|
||||||
public class CompanyCustomerEntity implements IdentityEntity, Serializable, Voable<CompanyCustomerEntityVo> {
|
public class CompanyCustomerEntity implements IdentityEntity, Voable<CompanyCustomerEntityVo> {
|
||||||
private static final long serialVersionUID = 1L;
|
|
||||||
@Id
|
@Id
|
||||||
@Column(name = "ID", nullable = false)
|
@Column(name = "ID", nullable = false)
|
||||||
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||||
@@ -1,6 +1,5 @@
|
|||||||
package com.ecep.contract.model;
|
package com.ecep.contract.model;
|
||||||
|
|
||||||
import java.io.Serializable;
|
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
|
|
||||||
import com.ecep.contract.util.HibernateProxyUtils;
|
import com.ecep.contract.util.HibernateProxyUtils;
|
||||||
@@ -30,8 +29,7 @@ import lombok.ToString;
|
|||||||
@Setter
|
@Setter
|
||||||
@ToString
|
@ToString
|
||||||
@Table(name = "COMPANY_CUSTOMER_EVALUATION_FORM_FILE")
|
@Table(name = "COMPANY_CUSTOMER_EVALUATION_FORM_FILE")
|
||||||
public class CompanyCustomerEvaluationFormFile implements IdentityEntity, BasedEntity, Serializable, Voable<CompanyCustomerEvaluationFormFileVo> {
|
public class CompanyCustomerEvaluationFormFile implements IdentityEntity, BasedEntity, Voable<CompanyCustomerEvaluationFormFileVo> {
|
||||||
private static final long serialVersionUID = 1L;
|
|
||||||
@Id
|
@Id
|
||||||
@Column(name = "ID", nullable = false)
|
@Column(name = "ID", nullable = false)
|
||||||
private Integer id;
|
private Integer id;
|
||||||
@@ -1,6 +1,5 @@
|
|||||||
package com.ecep.contract.model;
|
package com.ecep.contract.model;
|
||||||
|
|
||||||
import java.io.Serializable;
|
|
||||||
import java.time.LocalDate;
|
import java.time.LocalDate;
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
|
|
||||||
@@ -28,8 +27,7 @@ import lombok.ToString;
|
|||||||
@Entity
|
@Entity
|
||||||
@Table(name = "COMPANY_CUSTOMER_FILE")
|
@Table(name = "COMPANY_CUSTOMER_FILE")
|
||||||
@ToString
|
@ToString
|
||||||
public class CompanyCustomerFile implements CompanyBasicFile<CustomerFileType>, Serializable, Voable<CompanyCustomerFileVo> {
|
public class CompanyCustomerFile implements CompanyBasicFile<CustomerFileType>, Voable<CompanyCustomerFileVo> {
|
||||||
private static final long serialVersionUID = 1L;
|
|
||||||
@Id
|
@Id
|
||||||
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||||
@Column(name = "ID", nullable = false)
|
@Column(name = "ID", nullable = false)
|
||||||
@@ -1,6 +1,5 @@
|
|||||||
package com.ecep.contract.model;
|
package com.ecep.contract.model;
|
||||||
|
|
||||||
import java.io.Serializable;
|
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
|
|
||||||
import com.ecep.contract.CustomerFileType;
|
import com.ecep.contract.CustomerFileType;
|
||||||
@@ -18,26 +17,8 @@ import lombok.ToString;
|
|||||||
@Entity
|
@Entity
|
||||||
@Table(name = "COMPANY_CUSTOMER_FILE_TYPE_LOCAL")
|
@Table(name = "COMPANY_CUSTOMER_FILE_TYPE_LOCAL")
|
||||||
@ToString(callSuper = true)
|
@ToString(callSuper = true)
|
||||||
public class CompanyCustomerFileTypeLocal extends BaseEnumEntity<CustomerFileType> implements Serializable, Voable<CompanyCustomerFileTypeLocalVo> {
|
public class CompanyCustomerFileTypeLocal extends BaseEnumEntity<CustomerFileType> implements Voable<CompanyCustomerFileTypeLocalVo> {
|
||||||
private static final long serialVersionUID = 1L;
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public final boolean equals(Object object) {
|
|
||||||
if (this == object)
|
|
||||||
return true;
|
|
||||||
if (object == null)
|
|
||||||
return false;
|
|
||||||
if (HibernateProxyUtils.isNotEffectiveClassEquals(object, this)) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
CompanyCustomerFileTypeLocal that = (CompanyCustomerFileTypeLocal) object;
|
|
||||||
return getId() != null && Objects.equals(getId(), that.getId());
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public final int hashCode() {
|
|
||||||
return HibernateProxyUtils.hashCode(this);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public CompanyCustomerFileTypeLocalVo toVo() {
|
public CompanyCustomerFileTypeLocalVo toVo() {
|
||||||
@@ -1,6 +1,5 @@
|
|||||||
package com.ecep.contract.model;
|
package com.ecep.contract.model;
|
||||||
|
|
||||||
import java.io.Serializable;
|
|
||||||
import java.time.LocalDate;
|
import java.time.LocalDate;
|
||||||
import java.time.LocalDateTime;
|
import java.time.LocalDateTime;
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
@@ -29,8 +28,7 @@ import lombok.ToString;
|
|||||||
@Entity
|
@Entity
|
||||||
@Table(name = "PROJECT_CUSTOMER_SATISFACTION_SURVEY", schema = "supplier_ms")
|
@Table(name = "PROJECT_CUSTOMER_SATISFACTION_SURVEY", schema = "supplier_ms")
|
||||||
@ToString
|
@ToString
|
||||||
public class CustomerSatisfactionSurvey implements IdentityEntity, ProjectBasedEntity, Serializable, Voable<CustomerSatisfactionSurveyVo> {
|
public class CustomerSatisfactionSurvey implements IdentityEntity, ProjectBasedEntity, Voable<CustomerSatisfactionSurveyVo> {
|
||||||
private static final long serialVersionUID = 1L;
|
|
||||||
@Id
|
@Id
|
||||||
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||||
@Column(name = "ID", nullable = false)
|
@Column(name = "ID", nullable = false)
|
||||||
@@ -28,8 +28,7 @@ import lombok.ToString;
|
|||||||
@Entity
|
@Entity
|
||||||
@Table(name = "SALES_BILL_VOUCHER", schema = "supplier_ms")
|
@Table(name = "SALES_BILL_VOUCHER", schema = "supplier_ms")
|
||||||
@ToString
|
@ToString
|
||||||
public class SalesBillVoucher implements IdentityEntity, BasedEntity, java.io.Serializable, Voable<SalesBillVoucherVo> {
|
public class SalesBillVoucher implements IdentityEntity, BasedEntity, Voable<SalesBillVoucherVo> {
|
||||||
private static final long serialVersionUID = 1L;
|
|
||||||
@Id
|
@Id
|
||||||
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||||
@Column(name = "ID", nullable = false)
|
@Column(name = "ID", nullable = false)
|
||||||
@@ -27,8 +27,7 @@ import lombok.ToString;
|
|||||||
@Entity
|
@Entity
|
||||||
@Table(name = "SALES_BILL_VOUCHER_ITEM", schema = "supplier_ms")
|
@Table(name = "SALES_BILL_VOUCHER_ITEM", schema = "supplier_ms")
|
||||||
@ToString
|
@ToString
|
||||||
public class SalesBillVoucherItem implements IdentityEntity, BasedEntity, java.io.Serializable, Voable<SalesBillVoucherItemVo> {
|
public class SalesBillVoucherItem implements IdentityEntity, BasedEntity, Voable<SalesBillVoucherItemVo> {
|
||||||
private static final long serialVersionUID = 1L;
|
|
||||||
@Id
|
@Id
|
||||||
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||||
@Column(name = "ID", nullable = false)
|
@Column(name = "ID", nullable = false)
|
||||||
@@ -1,6 +1,5 @@
|
|||||||
package com.ecep.contract.model;
|
package com.ecep.contract.model;
|
||||||
|
|
||||||
import java.io.Serializable;
|
|
||||||
import java.time.LocalDate;
|
import java.time.LocalDate;
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
|
|
||||||
@@ -29,9 +28,7 @@ import lombok.ToString;
|
|||||||
@Entity
|
@Entity
|
||||||
@Table(name = "CONTRACT_SALES_ORDER", schema = "supplier_ms")
|
@Table(name = "CONTRACT_SALES_ORDER", schema = "supplier_ms")
|
||||||
@ToString
|
@ToString
|
||||||
public class SalesOrder
|
public class SalesOrder implements IdentityEntity, BasedEntity, ContractBasedEntity, Voable<SalesOrderVo> {
|
||||||
implements IdentityEntity, BasedEntity, ContractBasedEntity, Serializable, Voable<SalesOrderVo> {
|
|
||||||
private static final long serialVersionUID = 1L;
|
|
||||||
@Id
|
@Id
|
||||||
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||||
@Column(name = "ID", nullable = false)
|
@Column(name = "ID", nullable = false)
|
||||||
@@ -5,7 +5,6 @@ import jakarta.persistence.*;
|
|||||||
import lombok.*;
|
import lombok.*;
|
||||||
import org.hibernate.proxy.HibernateProxy;
|
import org.hibernate.proxy.HibernateProxy;
|
||||||
|
|
||||||
import java.io.Serializable;
|
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -17,8 +16,7 @@ import java.util.Objects;
|
|||||||
@Entity
|
@Entity
|
||||||
@Table(name = "SALES_ORDER_INVOICE", schema = "supplier_ms")
|
@Table(name = "SALES_ORDER_INVOICE", schema = "supplier_ms")
|
||||||
@ToString
|
@ToString
|
||||||
public class SalesOrderInvoice implements IdentityEntity, Serializable {
|
public class SalesOrderInvoice implements IdentityEntity {
|
||||||
private static final long serialVersionUID = 1L;
|
|
||||||
@Id
|
@Id
|
||||||
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||||
@Column(name = "ID", nullable = false)
|
@Column(name = "ID", nullable = false)
|
||||||
@@ -1,6 +1,5 @@
|
|||||||
package com.ecep.contract.model;
|
package com.ecep.contract.model;
|
||||||
|
|
||||||
import java.io.Serializable;
|
|
||||||
import java.time.LocalDate;
|
import java.time.LocalDate;
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
|
|
||||||
@@ -29,8 +28,7 @@ import lombok.ToString;
|
|||||||
@Entity
|
@Entity
|
||||||
@Table(name = "CONTRACT_SALES_ORDER_ITEM", schema = "supplier_ms")
|
@Table(name = "CONTRACT_SALES_ORDER_ITEM", schema = "supplier_ms")
|
||||||
@ToString
|
@ToString
|
||||||
public class SalesOrderItem implements IdentityEntity, BasedEntity, Serializable, Voable<SalesOrderItemVo> {
|
public class SalesOrderItem implements IdentityEntity, BasedEntity, Voable<SalesOrderItemVo> {
|
||||||
private static final long serialVersionUID = 1L;
|
|
||||||
@Id
|
@Id
|
||||||
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||||
@Column(name = "ID", nullable = false)
|
@Column(name = "ID", nullable = false)
|
||||||
@@ -1,6 +1,5 @@
|
|||||||
package com.ecep.contract.model;
|
package com.ecep.contract.model;
|
||||||
|
|
||||||
import java.io.Serializable;
|
|
||||||
import java.time.LocalDateTime;
|
import java.time.LocalDateTime;
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
|
|
||||||
@@ -26,8 +25,7 @@ import lombok.ToString;
|
|||||||
@Setter
|
@Setter
|
||||||
@Entity
|
@Entity
|
||||||
@Table(name = "CLOUD_RK", schema = "supplier_ms")
|
@Table(name = "CLOUD_RK", schema = "supplier_ms")
|
||||||
public class CloudRk implements IdentityEntity, Serializable, Voable<CloudRkVo> {
|
public class CloudRk implements IdentityEntity, Voable<CloudRkVo> {
|
||||||
private static final long serialVersionUID = 1L;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 主键
|
* 主键
|
||||||
@@ -1,7 +1,5 @@
|
|||||||
package com.ecep.contract.model;
|
package com.ecep.contract.model;
|
||||||
|
|
||||||
import java.io.Serializable;
|
|
||||||
import java.time.Instant;
|
|
||||||
import java.time.LocalDateTime;
|
import java.time.LocalDateTime;
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
|
|
||||||
@@ -28,8 +26,7 @@ import lombok.ToString;
|
|||||||
@Setter
|
@Setter
|
||||||
@Entity
|
@Entity
|
||||||
@Table(name = "CLOUD_TYC", schema = "supplier_ms")
|
@Table(name = "CLOUD_TYC", schema = "supplier_ms")
|
||||||
public class CloudTyc implements IdentityEntity, Serializable, Voable<CloudTycVo> {
|
public class CloudTyc implements IdentityEntity, Voable<CloudTycVo> {
|
||||||
private static final long serialVersionUID = 1L;
|
|
||||||
/**
|
/**
|
||||||
* 主键
|
* 主键
|
||||||
*/
|
*/
|
||||||
@@ -1,6 +1,5 @@
|
|||||||
package com.ecep.contract.model;
|
package com.ecep.contract.model;
|
||||||
|
|
||||||
import java.io.Serializable;
|
|
||||||
import java.time.LocalDate;
|
import java.time.LocalDate;
|
||||||
import java.time.LocalDateTime;
|
import java.time.LocalDateTime;
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
@@ -28,8 +27,7 @@ import lombok.ToString;
|
|||||||
@Entity
|
@Entity
|
||||||
@Table(name = "CLOUD_YU", schema = "supplier_ms")
|
@Table(name = "CLOUD_YU", schema = "supplier_ms")
|
||||||
@ToString
|
@ToString
|
||||||
public class CloudYu implements IdentityEntity, Serializable, Voable<CloudYuVo> {
|
public class CloudYu implements IdentityEntity, Voable<CloudYuVo> {
|
||||||
private static final long serialVersionUID = 1L;
|
|
||||||
/**
|
/**
|
||||||
* 主键
|
* 主键
|
||||||
*/
|
*/
|
||||||
@@ -1,6 +1,5 @@
|
|||||||
package com.ecep.contract.model;
|
package com.ecep.contract.model;
|
||||||
|
|
||||||
import java.io.Serializable;
|
|
||||||
import java.time.LocalDate;
|
import java.time.LocalDate;
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
|
|
||||||
@@ -30,8 +29,7 @@ import lombok.ToString;
|
|||||||
@Entity
|
@Entity
|
||||||
@Table(name = "INVOICE", schema = "supplier_ms")
|
@Table(name = "INVOICE", schema = "supplier_ms")
|
||||||
@ToString
|
@ToString
|
||||||
public class Invoice implements IdentityEntity, BasedEntity, Serializable, Voable<InvoiceVo> {
|
public class Invoice implements IdentityEntity, BasedEntity, Voable<InvoiceVo> {
|
||||||
private static final long serialVersionUID = 1L;
|
|
||||||
|
|
||||||
@Id
|
@Id
|
||||||
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||||
@@ -1,6 +1,5 @@
|
|||||||
package com.ecep.contract.model;
|
package com.ecep.contract.model;
|
||||||
|
|
||||||
import java.io.Serializable;
|
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
|
|
||||||
import com.ecep.contract.util.HibernateProxyUtils;
|
import com.ecep.contract.util.HibernateProxyUtils;
|
||||||
@@ -22,8 +21,7 @@ import lombok.Setter;
|
|||||||
@Setter
|
@Setter
|
||||||
@Entity
|
@Entity
|
||||||
@Table(name = "PRODUCT_TYPE")
|
@Table(name = "PRODUCT_TYPE")
|
||||||
public class ProductType implements BasedEntity, IdentityEntity, Serializable, Voable<ProductTypeVo> {
|
public class ProductType implements BasedEntity, IdentityEntity, Voable<ProductTypeVo> {
|
||||||
private static final long serialVersionUID = 1L;
|
|
||||||
@Id
|
@Id
|
||||||
@Column(name = "ID", nullable = false)
|
@Column(name = "ID", nullable = false)
|
||||||
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||||
@@ -22,8 +22,7 @@ import lombok.Setter;
|
|||||||
@Setter
|
@Setter
|
||||||
@Entity
|
@Entity
|
||||||
@Table(name = "PRODUCT_USAGE", schema = "supplier_ms")
|
@Table(name = "PRODUCT_USAGE", schema = "supplier_ms")
|
||||||
public class ProductUsage implements BasedEntity, IdentityEntity, Serializable, Voable<ProductUsageVo> {
|
public class ProductUsage implements BasedEntity, IdentityEntity, Voable<ProductUsageVo> {
|
||||||
private static final long serialVersionUID = 1L;
|
|
||||||
@Id
|
@Id
|
||||||
@Column(name = "ID", nullable = false)
|
@Column(name = "ID", nullable = false)
|
||||||
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||||
@@ -1,9 +1,9 @@
|
|||||||
package com.ecep.contract.model;
|
package com.ecep.contract.ds.project.model;
|
||||||
|
|
||||||
import java.io.Serializable;
|
|
||||||
import java.time.LocalDate;
|
import java.time.LocalDate;
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
|
|
||||||
|
import com.ecep.contract.model.*;
|
||||||
import org.hibernate.annotations.ColumnDefault;
|
import org.hibernate.annotations.ColumnDefault;
|
||||||
|
|
||||||
import com.ecep.contract.util.HibernateProxyUtils;
|
import com.ecep.contract.util.HibernateProxyUtils;
|
||||||
@@ -31,8 +31,7 @@ import lombok.ToString;
|
|||||||
@Entity
|
@Entity
|
||||||
@Table(name = "PROJECT", schema = "supplier_ms")
|
@Table(name = "PROJECT", schema = "supplier_ms")
|
||||||
@ToString
|
@ToString
|
||||||
public class Project implements IdentityEntity, NamedEntity, BasedEntity, Serializable, Voable<ProjectVo> {
|
public class Project implements IdentityEntity, NamedEntity, BasedEntity, Voable<ProjectVo> {
|
||||||
private static final long serialVersionUID = 1L;
|
|
||||||
|
|
||||||
@Id
|
@Id
|
||||||
@Column(name = "ID", nullable = false)
|
@Column(name = "ID", nullable = false)
|
||||||
@@ -1,6 +1,5 @@
|
|||||||
package com.ecep.contract.model;
|
package com.ecep.contract.model;
|
||||||
|
|
||||||
import java.io.Serializable;
|
|
||||||
import java.time.LocalDateTime;
|
import java.time.LocalDateTime;
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
|
|
||||||
@@ -32,8 +31,7 @@ import lombok.ToString;
|
|||||||
@Entity
|
@Entity
|
||||||
@Table(name = "PROJECT_BID")
|
@Table(name = "PROJECT_BID")
|
||||||
@ToString
|
@ToString
|
||||||
public class ProjectBid implements IdentityEntity, ProjectBasedEntity, Serializable, Voable<ProjectBidVo> {
|
public class ProjectBid implements IdentityEntity, ProjectBasedEntity, Voable<ProjectBidVo> {
|
||||||
private static final long serialVersionUID = 1L;
|
|
||||||
@Id
|
@Id
|
||||||
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||||
@Column(name = "ID", nullable = false)
|
@Column(name = "ID", nullable = false)
|
||||||
@@ -1,6 +1,5 @@
|
|||||||
package com.ecep.contract.model;
|
package com.ecep.contract.model;
|
||||||
|
|
||||||
import java.io.Serializable;
|
|
||||||
import java.time.LocalDateTime;
|
import java.time.LocalDateTime;
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
|
|
||||||
@@ -27,8 +26,7 @@ import lombok.ToString;
|
|||||||
@Entity
|
@Entity
|
||||||
@Table(name = "PROJECT_COST")
|
@Table(name = "PROJECT_COST")
|
||||||
@ToString
|
@ToString
|
||||||
public class ProjectCost implements IdentityEntity, ProjectBasedEntity, Serializable, Voable<ProjectCostVo> {
|
public class ProjectCost implements IdentityEntity, ProjectBasedEntity, Voable<ProjectCostVo> {
|
||||||
private static final long serialVersionUID = 1L;
|
|
||||||
@Id
|
@Id
|
||||||
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||||
@Column(name = "ID", nullable = false)
|
@Column(name = "ID", nullable = false)
|
||||||
@@ -1,6 +1,5 @@
|
|||||||
package com.ecep.contract.model;
|
package com.ecep.contract.model;
|
||||||
|
|
||||||
import java.io.Serializable;
|
|
||||||
import java.time.LocalDateTime;
|
import java.time.LocalDateTime;
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
|
|
||||||
@@ -25,8 +24,7 @@ import lombok.ToString;
|
|||||||
@Entity
|
@Entity
|
||||||
@Table(name = "PROJECT_COST_ITEM")
|
@Table(name = "PROJECT_COST_ITEM")
|
||||||
@ToString
|
@ToString
|
||||||
public class ProjectCostItem implements IdentityEntity, BasedEntity, Serializable, Voable<ProjectCostItemVo> {
|
public class ProjectCostItem implements IdentityEntity, BasedEntity, Voable<ProjectCostItemVo> {
|
||||||
private static final long serialVersionUID = 1L;
|
|
||||||
@Id
|
@Id
|
||||||
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||||
@Column(name = "ID", nullable = false)
|
@Column(name = "ID", nullable = false)
|
||||||
@@ -1,6 +1,5 @@
|
|||||||
package com.ecep.contract.model;
|
package com.ecep.contract.model;
|
||||||
|
|
||||||
import java.io.Serializable;
|
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
|
|
||||||
import com.ecep.contract.ProjectFileType;
|
import com.ecep.contract.ProjectFileType;
|
||||||
@@ -30,8 +29,7 @@ import lombok.ToString;
|
|||||||
@Entity
|
@Entity
|
||||||
@Table(name = "PROJECT_FILE")
|
@Table(name = "PROJECT_FILE")
|
||||||
@ToString
|
@ToString
|
||||||
public class ProjectFile implements IdentityEntity, ProjectBasedEntity, java.io.Serializable, Voable<ProjectFileVo> {
|
public class ProjectFile implements IdentityEntity, ProjectBasedEntity, Voable<ProjectFileVo> {
|
||||||
private static final long serialVersionUID = 1L;
|
|
||||||
|
|
||||||
@Id
|
@Id
|
||||||
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||||
@@ -34,8 +34,7 @@ import lombok.ToString;
|
|||||||
@Table(name = "PROJECT_FUND_PLAN")
|
@Table(name = "PROJECT_FUND_PLAN")
|
||||||
@ToString
|
@ToString
|
||||||
public class ProjectFundPlan
|
public class ProjectFundPlan
|
||||||
implements IdentityEntity, ProjectBasedEntity, java.io.Serializable, Voable<ProjectFundPlanVo> {
|
implements IdentityEntity, ProjectBasedEntity, Voable<ProjectFundPlanVo> {
|
||||||
private static final long serialVersionUID = 1L;
|
|
||||||
@Id
|
@Id
|
||||||
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||||
@Column(name = "ID", nullable = false)
|
@Column(name = "ID", nullable = false)
|
||||||
@@ -26,8 +26,7 @@ import lombok.ToString;
|
|||||||
|
|
||||||
})
|
})
|
||||||
@ToString
|
@ToString
|
||||||
public class ProjectIndustry implements BasedEntity, IdentityEntity, NamedEntity, Serializable, Voable<ProjectIndustryVo> {
|
public class ProjectIndustry implements BasedEntity, IdentityEntity, NamedEntity, Voable<ProjectIndustryVo> {
|
||||||
private static final long serialVersionUID = 1L;
|
|
||||||
@Id
|
@Id
|
||||||
@Column(name = "ID", nullable = false)
|
@Column(name = "ID", nullable = false)
|
||||||
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||||
@@ -31,9 +31,7 @@ import lombok.ToString;
|
|||||||
@Entity
|
@Entity
|
||||||
@Table(name = "PROJECT_QUOTATION")
|
@Table(name = "PROJECT_QUOTATION")
|
||||||
@ToString
|
@ToString
|
||||||
public class ProjectQuotation
|
public class ProjectQuotation implements IdentityEntity, ProjectBasedEntity, Voable<ProjectQuotationVo> {
|
||||||
implements IdentityEntity, ProjectBasedEntity, java.io.Serializable, Voable<ProjectQuotationVo> {
|
|
||||||
private static final long serialVersionUID = 1L;
|
|
||||||
@Id
|
@Id
|
||||||
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||||
@Column(name = "ID", nullable = false)
|
@Column(name = "ID", nullable = false)
|
||||||
@@ -2,13 +2,11 @@ package com.ecep.contract.model;
|
|||||||
|
|
||||||
import com.ecep.contract.util.HibernateProxyUtils;
|
import com.ecep.contract.util.HibernateProxyUtils;
|
||||||
import com.ecep.contract.vo.ExtendVendorInfoVo;
|
import com.ecep.contract.vo.ExtendVendorInfoVo;
|
||||||
import com.ecep.contract.model.Voable;
|
|
||||||
import jakarta.persistence.*;
|
import jakarta.persistence.*;
|
||||||
import lombok.Getter;
|
import lombok.Getter;
|
||||||
import lombok.Setter;
|
import lombok.Setter;
|
||||||
import lombok.ToString;
|
import lombok.ToString;
|
||||||
|
|
||||||
import java.io.Serializable;
|
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
|
|
||||||
@Getter
|
@Getter
|
||||||
@@ -16,8 +14,7 @@ import java.util.Objects;
|
|||||||
@Entity
|
@Entity
|
||||||
@Table(name = "CONTRACT_EXTEND_VENDOR_INFO", schema = "supplier_ms")
|
@Table(name = "CONTRACT_EXTEND_VENDOR_INFO", schema = "supplier_ms")
|
||||||
@ToString
|
@ToString
|
||||||
public class ExtendVendorInfo implements IdentityEntity, Serializable, Voable<ExtendVendorInfoVo> {
|
public class ExtendVendorInfo implements IdentityEntity, Voable<ExtendVendorInfoVo> {
|
||||||
private static final long serialVersionUID = 1L;
|
|
||||||
@Id
|
@Id
|
||||||
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||||
@Column(name = "ID", nullable = false)
|
@Column(name = "ID", nullable = false)
|
||||||
@@ -29,8 +29,7 @@ import lombok.ToString;
|
|||||||
@Table(name = "PURCHASE_BILL_VOUCHER", schema = "supplier_ms")
|
@Table(name = "PURCHASE_BILL_VOUCHER", schema = "supplier_ms")
|
||||||
@ToString
|
@ToString
|
||||||
public class PurchaseBillVoucher
|
public class PurchaseBillVoucher
|
||||||
implements IdentityEntity, BasedEntity, java.io.Serializable, Voable<PurchaseBillVoucherVo> {
|
implements IdentityEntity, BasedEntity, Voable<PurchaseBillVoucherVo> {
|
||||||
private static final long serialVersionUID = 1L;
|
|
||||||
@Id
|
@Id
|
||||||
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||||
@Column(name = "ID", nullable = false)
|
@Column(name = "ID", nullable = false)
|
||||||
@@ -28,8 +28,7 @@ import lombok.ToString;
|
|||||||
@Table(name = "PURCHASE_BILL_VOUCHER_ITEM", schema = "supplier_ms")
|
@Table(name = "PURCHASE_BILL_VOUCHER_ITEM", schema = "supplier_ms")
|
||||||
@ToString
|
@ToString
|
||||||
public class PurchaseBillVoucherItem
|
public class PurchaseBillVoucherItem
|
||||||
implements IdentityEntity, BasedEntity, java.io.Serializable, Voable<PurchaseBillVoucherItemVo> {
|
implements IdentityEntity, BasedEntity, Voable<PurchaseBillVoucherItemVo> {
|
||||||
private static final long serialVersionUID = 1L;
|
|
||||||
@Id
|
@Id
|
||||||
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||||
@Column(name = "ID", nullable = false)
|
@Column(name = "ID", nullable = false)
|
||||||
@@ -29,8 +29,7 @@ import lombok.ToString;
|
|||||||
@Table(name = "PURCHASE_ORDER", schema = "supplier_ms")
|
@Table(name = "PURCHASE_ORDER", schema = "supplier_ms")
|
||||||
@ToString
|
@ToString
|
||||||
public class PurchaseOrder
|
public class PurchaseOrder
|
||||||
implements IdentityEntity, BasedEntity, ContractBasedEntity, java.io.Serializable, Voable<PurchaseOrderVo> {
|
implements IdentityEntity, BasedEntity, ContractBasedEntity, Voable<PurchaseOrderVo> {
|
||||||
private static final long serialVersionUID = 1L;
|
|
||||||
@Id
|
@Id
|
||||||
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||||
@Column(name = "ID", nullable = false)
|
@Column(name = "ID", nullable = false)
|
||||||
@@ -28,9 +28,7 @@ import lombok.ToString;
|
|||||||
@Entity
|
@Entity
|
||||||
@Table(name = "PURCHASE_ORDER_ITEM", schema = "supplier_ms")
|
@Table(name = "PURCHASE_ORDER_ITEM", schema = "supplier_ms")
|
||||||
@ToString
|
@ToString
|
||||||
public class PurchaseOrderItem
|
public class PurchaseOrderItem implements IdentityEntity, BasedEntity, Voable<PurchaseOrderItemVo> {
|
||||||
implements IdentityEntity, BasedEntity, java.io.Serializable, Voable<PurchaseOrderItemVo> {
|
|
||||||
private static final long serialVersionUID = 1L;
|
|
||||||
@Id
|
@Id
|
||||||
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||||
@Column(name = "ID", nullable = false)
|
@Column(name = "ID", nullable = false)
|
||||||
@@ -27,8 +27,7 @@ import lombok.ToString;
|
|||||||
@Entity
|
@Entity
|
||||||
@Table(name = "PURCHASE_RECEIPT", schema = "supplier_ms")
|
@Table(name = "PURCHASE_RECEIPT", schema = "supplier_ms")
|
||||||
@ToString
|
@ToString
|
||||||
public class PurchaseReceipt implements IdentityEntity, BasedEntity, java.io.Serializable {
|
public class PurchaseReceipt implements IdentityEntity, BasedEntity {
|
||||||
private static final long serialVersionUID = 1L;
|
|
||||||
@Id
|
@Id
|
||||||
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||||
@Column(name = "ID", nullable = false)
|
@Column(name = "ID", nullable = false)
|
||||||
@@ -27,8 +27,7 @@ import lombok.ToString;
|
|||||||
@Entity
|
@Entity
|
||||||
@Table(name = "PURCHASE_SETTLE_VOUCHER", schema = "supplier_ms")
|
@Table(name = "PURCHASE_SETTLE_VOUCHER", schema = "supplier_ms")
|
||||||
@ToString
|
@ToString
|
||||||
public class PurchaseSettlementVoucher implements IdentityEntity, BasedEntity, java.io.Serializable {
|
public class PurchaseSettlementVoucher implements IdentityEntity, BasedEntity {
|
||||||
private static final long serialVersionUID = 1L;
|
|
||||||
@Id
|
@Id
|
||||||
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||||
@Column(name = "ID", nullable = false)
|
@Column(name = "ID", nullable = false)
|
||||||
@@ -27,8 +27,7 @@ import lombok.ToString;
|
|||||||
@Entity
|
@Entity
|
||||||
@Table(name = "PURCHASE_SETTLE_VOUCHER_ITEM", schema = "supplier_ms")
|
@Table(name = "PURCHASE_SETTLE_VOUCHER_ITEM", schema = "supplier_ms")
|
||||||
@ToString
|
@ToString
|
||||||
public class PurchaseSettlementVoucherItem implements IdentityEntity, BasedEntity, java.io.Serializable, Voable<PurchaseSettlementVoucherItemVo> {
|
public class PurchaseSettlementVoucherItem implements IdentityEntity, BasedEntity, Voable<PurchaseSettlementVoucherItemVo> {
|
||||||
private static final long serialVersionUID = 1L;
|
|
||||||
@Id
|
@Id
|
||||||
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||||
@Column(name = "ID", nullable = false)
|
@Column(name = "ID", nullable = false)
|
||||||
@@ -1,6 +1,5 @@
|
|||||||
package com.ecep.contract.model;
|
package com.ecep.contract.model;
|
||||||
|
|
||||||
import java.io.Serializable;
|
|
||||||
import java.time.LocalDate;
|
import java.time.LocalDate;
|
||||||
import java.time.LocalDateTime;
|
import java.time.LocalDateTime;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
@@ -34,8 +33,7 @@ import lombok.ToString;
|
|||||||
@Entity
|
@Entity
|
||||||
@Table(name = "COMPANY_VENDOR", schema = "supplier_ms")
|
@Table(name = "COMPANY_VENDOR", schema = "supplier_ms")
|
||||||
@ToString
|
@ToString
|
||||||
public class Vendor implements IdentityEntity, CompanyBasedEntity, Serializable, Voable<VendorVo> {
|
public class Vendor implements IdentityEntity, CompanyBasedEntity, Voable<VendorVo> {
|
||||||
private static final long serialVersionUID = 1L;
|
|
||||||
@Id
|
@Id
|
||||||
@Column(name = "ID", nullable = false)
|
@Column(name = "ID", nullable = false)
|
||||||
private Integer id;
|
private Integer id;
|
||||||
@@ -1,6 +1,5 @@
|
|||||||
package com.ecep.contract.model;
|
package com.ecep.contract.model;
|
||||||
|
|
||||||
import java.io.Serializable;
|
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
|
|
||||||
import com.ecep.contract.VendorType;
|
import com.ecep.contract.VendorType;
|
||||||
@@ -22,42 +21,45 @@ import lombok.ToString;
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* 供方名录里的供应商
|
* 供方名录里的供应商
|
||||||
|
*
|
||||||
|
* @see VendorApproved
|
||||||
|
* @see VendorApprovedFile
|
||||||
*/
|
*/
|
||||||
@Getter
|
@Getter
|
||||||
@Setter
|
@Setter
|
||||||
@Entity
|
@Entity
|
||||||
@Table(name = "COMPANY_VENDOR_APPROVED_ITEM")
|
@Table(name = "COMPANY_VENDOR_APPROVED_ITEM")
|
||||||
@ToString
|
@ToString
|
||||||
public class VendorApprovedItem implements IdentityEntity, Serializable, Voable<VendorApprovedItemVo> {
|
public class VendorApprovedItem implements IdentityEntity, Voable<VendorApprovedItemVo> {
|
||||||
private static final long serialVersionUID = 1L;
|
|
||||||
|
|
||||||
@Id
|
@Id
|
||||||
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||||
@Column(name = "ID", nullable = false)
|
@Column(name = "ID", nullable = false)
|
||||||
private Integer id;
|
private Integer id;
|
||||||
|
/**
|
||||||
|
* 所属名录ID
|
||||||
|
*/
|
||||||
@ManyToOne(fetch = FetchType.LAZY)
|
@ManyToOne(fetch = FetchType.LAZY)
|
||||||
@JoinColumn(name = "LIST_ID", nullable = false)
|
@JoinColumn(name = "LIST_ID", nullable = false)
|
||||||
@ToString.Exclude
|
@ToString.Exclude
|
||||||
private VendorApproved list;
|
private VendorApproved list;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 供应商名称,有可能改名了,所以存历史名称
|
* 供应商名称,有可能改名了,所以存历史名称
|
||||||
*/
|
*/
|
||||||
@Column(name = "VENDOR_NAME")
|
@Column(name = "VENDOR_NAME")
|
||||||
private String vendorName;
|
private String vendorName;
|
||||||
|
/**
|
||||||
|
* 供应商
|
||||||
|
*/
|
||||||
@ManyToOne(fetch = FetchType.LAZY)
|
@ManyToOne(fetch = FetchType.LAZY)
|
||||||
@JoinColumn(name = "VENDOR_ID", nullable = false)
|
@JoinColumn(name = "VENDOR_ID", nullable = false)
|
||||||
@ToString.Exclude
|
@ToString.Exclude
|
||||||
private Vendor vendor;
|
private Vendor vendor;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 类型,历史的,可能会变更的,所以这样也要存
|
* 类型,历史的,可能会变更的,所以这样也要存
|
||||||
*/
|
*/
|
||||||
@Column(name = "TYPE")
|
@Column(name = "TYPE")
|
||||||
private VendorType type;
|
private VendorType type;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 备注
|
* 备注
|
||||||
*/
|
*/
|
||||||
@@ -1,6 +1,5 @@
|
|||||||
package com.ecep.contract.model;
|
package com.ecep.contract.model;
|
||||||
|
|
||||||
import java.io.Serializable;
|
|
||||||
import java.time.LocalDate;
|
import java.time.LocalDate;
|
||||||
import java.time.LocalDateTime;
|
import java.time.LocalDateTime;
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
@@ -31,8 +30,10 @@ import lombok.ToString;
|
|||||||
|
|
||||||
})
|
})
|
||||||
@ToString
|
@ToString
|
||||||
public class VendorEntity implements IdentityEntity, Serializable, Voable<VendorEntityVo> {
|
public class VendorEntity implements IdentityEntity, Voable<VendorEntityVo> {
|
||||||
private static final long serialVersionUID = 1L;
|
/**
|
||||||
|
* 主键ID
|
||||||
|
*/
|
||||||
@Id
|
@Id
|
||||||
@Column(name = "ID", nullable = false)
|
@Column(name = "ID", nullable = false)
|
||||||
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||||
@@ -42,10 +43,14 @@ public class VendorEntity implements IdentityEntity, Serializable, Voable<Vendor
|
|||||||
@JoinColumn(name = "COMPANY_VENDOR_ID")
|
@JoinColumn(name = "COMPANY_VENDOR_ID")
|
||||||
@ToString.Exclude
|
@ToString.Exclude
|
||||||
private Vendor vendor;
|
private Vendor vendor;
|
||||||
|
/**
|
||||||
|
* 供应商名称
|
||||||
|
*/
|
||||||
@Column(name = "NAME")
|
@Column(name = "NAME")
|
||||||
private String name;
|
private String name;
|
||||||
|
/**
|
||||||
|
* 供应商简称
|
||||||
|
*/
|
||||||
@Column(name = "ABB_NAME")
|
@Column(name = "ABB_NAME")
|
||||||
private String abbName;
|
private String abbName;
|
||||||
/**
|
/**
|
||||||
@@ -53,7 +58,9 @@ public class VendorEntity implements IdentityEntity, Serializable, Voable<Vendor
|
|||||||
*/
|
*/
|
||||||
@Column(name = "VEN_CODE")
|
@Column(name = "VEN_CODE")
|
||||||
private String code;
|
private String code;
|
||||||
|
/**
|
||||||
|
* 供应商分类ID, @see VendorCatalog
|
||||||
|
*/
|
||||||
@ManyToOne(fetch = FetchType.LAZY)
|
@ManyToOne(fetch = FetchType.LAZY)
|
||||||
@JoinColumn(name = "VEN_CLS")
|
@JoinColumn(name = "VEN_CLS")
|
||||||
@ToString.Exclude
|
@ToString.Exclude
|
||||||
@@ -84,7 +91,6 @@ public class VendorEntity implements IdentityEntity, Serializable, Voable<Vendor
|
|||||||
*/
|
*/
|
||||||
@Column(name = "DEV_DATE")
|
@Column(name = "DEV_DATE")
|
||||||
private LocalDate developDate;
|
private LocalDate developDate;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 更新日期,有数据更新时的日期
|
* 更新日期,有数据更新时的日期
|
||||||
*/
|
*/
|
||||||
@@ -1,6 +1,5 @@
|
|||||||
package com.ecep.contract.model;
|
package com.ecep.contract.model;
|
||||||
|
|
||||||
import java.io.Serializable;
|
|
||||||
import java.time.LocalDate;
|
import java.time.LocalDate;
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
|
|
||||||
@@ -31,8 +30,7 @@ import lombok.ToString;
|
|||||||
@Entity
|
@Entity
|
||||||
@Table(name = "COMPANY_VENDOR_FILE")
|
@Table(name = "COMPANY_VENDOR_FILE")
|
||||||
@ToString
|
@ToString
|
||||||
public class VendorFile implements CompanyBasicFile<VendorFileType>, Serializable, Voable<VendorFileVo> {
|
public class VendorFile implements CompanyBasicFile<VendorFileType>, Voable<VendorFileVo> {
|
||||||
private static final long serialVersionUID = 1L;
|
|
||||||
@Id
|
@Id
|
||||||
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||||
@Column(name = "ID", nullable = false)
|
@Column(name = "ID", nullable = false)
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
package com.ecep.contract.service.tasker;
|
||||||
|
|
||||||
|
public class CompanyRkUpdateTasker {
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user