CompanyVendor 改为 Vendor

This commit is contained in:
2025-09-23 22:50:30 +08:00
parent 5919636c04
commit 71d3ecab52
37 changed files with 166 additions and 186 deletions

View File

@@ -50,7 +50,7 @@ public class CompanyVendorApprovedItem implements IdentityEntity, Serializable,
@ManyToOne(fetch = FetchType.LAZY)
@JoinColumn(name = "VENDOR_ID", nullable = false)
@ToString.Exclude
private CompanyVendor vendor;
private Vendor vendor;
/**
* 类型,历史的,可能会变更的,所以这样也要存

View File

@@ -41,7 +41,7 @@ public class CompanyVendorEntity implements IdentityEntity, Serializable, Voable
@ManyToOne(fetch = FetchType.LAZY)
@JoinColumn(name = "COMPANY_VENDOR_ID")
@ToString.Exclude
private CompanyVendor vendor;
private Vendor vendor;
@Column(name = "NAME")
private String name;

View File

@@ -41,7 +41,7 @@ public class CompanyVendorFile implements CompanyBasicFile<VendorFileType>, Seri
@ManyToOne(fetch = FetchType.LAZY)
@JoinColumn(name = "VENDOR_ID")
@ToString.Exclude
private CompanyVendor vendor;
private Vendor vendor;
@Column(name = "TYPE")
@Enumerated(EnumType.STRING)

View File

@@ -34,7 +34,7 @@ import lombok.ToString;
@Entity
@Table(name = "COMPANY_VENDOR", schema = "supplier_ms")
@ToString
public class CompanyVendor implements IdentityEntity, CompanyBasedEntity, Serializable, Voable<CompanyVendorVo> {
public class Vendor implements IdentityEntity, CompanyBasedEntity, Serializable, Voable<CompanyVendorVo> {
private static final long serialVersionUID = 1L;
@Id
@Column(name = "ID", nullable = false)
@@ -114,7 +114,7 @@ public class CompanyVendor implements IdentityEntity, CompanyBasedEntity, Serial
if (HibernateProxyUtils.isNotEffectiveClassEquals(object, this)) {
return false;
}
CompanyVendor that = (CompanyVendor) object;
Vendor that = (Vendor) object;
return getId() != null && Objects.equals(getId(), that.getId());
}

View File

@@ -3,8 +3,10 @@ package com.ecep.contract.vo;
import java.time.LocalDateTime;
import lombok.Data;
import lombok.EqualsAndHashCode;
@Data
@EqualsAndHashCode(callSuper = true)
public class CloudRkVo extends CloudBasedVo implements CompanyBasedVo {
private String cloudId;
private Integer companyId;

View File

@@ -3,8 +3,10 @@ package com.ecep.contract.vo;
import java.time.LocalDateTime;
import lombok.Data;
import lombok.EqualsAndHashCode;
@Data
@EqualsAndHashCode(callSuper = true)
public class CloudTycVo extends CloudBasedVo implements CompanyBasedVo {
private Integer score;
private LocalDateTime cloudLatest;

View File

@@ -4,8 +4,10 @@ import java.time.LocalDate;
import java.time.LocalDateTime;
import lombok.Data;
import lombok.EqualsAndHashCode;
@Data
@EqualsAndHashCode(callSuper = true)
public class CloudYuVo extends CloudBasedVo implements CompanyBasedVo {
private Integer companyId;

View File

@@ -5,8 +5,10 @@ import com.ecep.contract.model.BaseEnumEntity;
import com.ecep.contract.model.IdentityEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
@Data
@EqualsAndHashCode(callSuper = true)
public class CompanyCustomerFileTypeLocalVo extends BaseEnumEntity<CustomerFileType> implements IdentityEntity {
}

View File

@@ -5,8 +5,10 @@ import com.ecep.contract.model.BaseEnumEntity;
import com.ecep.contract.model.IdentityEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
@Data
@EqualsAndHashCode(callSuper = true)
public class CompanyFileTypeLocalVo extends BaseEnumEntity<CompanyFileType> implements IdentityEntity {
private boolean active = false;
}

View File

@@ -4,8 +4,10 @@ import com.ecep.contract.model.BaseEnumEntity;
import com.ecep.contract.model.IdentityEntity;
import com.ecep.contract.ContractFileType;
import lombok.Data;
import lombok.EqualsAndHashCode;
@Data
@EqualsAndHashCode(callSuper = true)
public class ContractFileTypeLocalVo extends BaseEnumEntity<ContractFileType> implements IdentityEntity {
private String description;
private String suggestFileName;

View File

@@ -5,8 +5,10 @@ import com.ecep.contract.model.BaseEnumEntity;
import com.ecep.contract.model.IdentityEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
@Data
@EqualsAndHashCode(callSuper = true)
public class ProjectFileTypeLocalVo extends BaseEnumEntity<ProjectFileType> implements IdentityEntity {
private boolean active = false;
}