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