|
|
@@ -2,18 +2,23 @@ package com.uas.platform.b2b.model;
|
|
|
|
|
|
import java.io.Serializable;
|
|
|
import java.util.Date;
|
|
|
+import java.util.Set;
|
|
|
|
|
|
import javax.persistence.CascadeType;
|
|
|
import javax.persistence.Column;
|
|
|
import javax.persistence.Entity;
|
|
|
+import javax.persistence.FetchType;
|
|
|
import javax.persistence.GeneratedValue;
|
|
|
import javax.persistence.GenerationType;
|
|
|
import javax.persistence.Id;
|
|
|
import javax.persistence.JoinColumn;
|
|
|
+import javax.persistence.OneToMany;
|
|
|
import javax.persistence.OneToOne;
|
|
|
import javax.persistence.SequenceGenerator;
|
|
|
import javax.persistence.Table;
|
|
|
|
|
|
+import org.hibernate.annotations.Where;
|
|
|
+
|
|
|
/**
|
|
|
* 平台里面,供应商针对客户打样申请的送样单
|
|
|
*
|
|
|
@@ -131,10 +136,11 @@ public class PurchaseProofingApproval implements Serializable {
|
|
|
@Column(name = "psa_remark")
|
|
|
private String remark;
|
|
|
/**
|
|
|
- * 样品附件
|
|
|
+ * 附件
|
|
|
*/
|
|
|
- @Column(name = "psa_attach")
|
|
|
- private String attach;
|
|
|
+ @OneToMany(mappedBy = "relativeKey", cascade = { CascadeType.REFRESH, CascadeType.PERSIST, CascadeType.REMOVE, CascadeType.MERGE }, fetch = FetchType.EAGER)
|
|
|
+ @Where(clause = "rel_table = 'purc$proofingapproval'")
|
|
|
+ private Set<Attach> attachs;
|
|
|
/**
|
|
|
* 收到样品时间 - 研发认定
|
|
|
*/
|
|
|
@@ -163,8 +169,9 @@ public class PurchaseProofingApproval implements Serializable {
|
|
|
/**
|
|
|
* 附件 - 研发认定
|
|
|
*/
|
|
|
- @Column(name = "psa_prdattach")
|
|
|
- private String prdattach;
|
|
|
+ @OneToMany(mappedBy = "relativeKey", cascade = { CascadeType.REFRESH, CascadeType.PERSIST, CascadeType.REMOVE, CascadeType.MERGE }, fetch = FetchType.EAGER)
|
|
|
+ @Where(clause = "rel_table = 'purc$proofingapproval_prd'")
|
|
|
+ private Set<Attach> prdAttachs;
|
|
|
/**
|
|
|
* 收到样品时间 - IQC认定
|
|
|
*/
|
|
|
@@ -193,8 +200,9 @@ public class PurchaseProofingApproval implements Serializable {
|
|
|
/**
|
|
|
* 附件 - IQC认定
|
|
|
*/
|
|
|
- @Column(name = "psa_padattach")
|
|
|
- private String padattach;
|
|
|
+ @OneToMany(mappedBy = "relativeKey", cascade = { CascadeType.REFRESH, CascadeType.PERSIST, CascadeType.REMOVE, CascadeType.MERGE }, fetch = FetchType.EAGER)
|
|
|
+ @Where(clause = "rel_table = 'purc$proofingapproval_pad'")
|
|
|
+ private Set<Attach> padAttachs;
|
|
|
/**
|
|
|
* 收到样品时间 - 工程认定
|
|
|
*/
|
|
|
@@ -223,8 +231,9 @@ public class PurchaseProofingApproval implements Serializable {
|
|
|
/**
|
|
|
* 附件 - 工程认定
|
|
|
*/
|
|
|
- @Column(name = "psa_ppdattach")
|
|
|
- private String ppdattach;
|
|
|
+ @OneToMany(mappedBy = "relativeKey", cascade = { CascadeType.REFRESH, CascadeType.PERSIST, CascadeType.REMOVE, CascadeType.MERGE }, fetch = FetchType.EAGER)
|
|
|
+ @Where(clause = "rel_table = 'purc$proofingapproval_ppd'")
|
|
|
+ private Set<Attach> ppdAttachs;
|
|
|
/**
|
|
|
* 认定结果
|
|
|
*/
|
|
|
@@ -360,12 +369,6 @@ public class PurchaseProofingApproval implements Serializable {
|
|
|
public void setRemark(String remark) {
|
|
|
this.remark = remark;
|
|
|
}
|
|
|
- public String getAttach() {
|
|
|
- return attach;
|
|
|
- }
|
|
|
- public void setAttach(String attach) {
|
|
|
- this.attach = attach;
|
|
|
- }
|
|
|
public Date getPrdtime() {
|
|
|
return prdtime;
|
|
|
}
|
|
|
@@ -396,12 +399,6 @@ public class PurchaseProofingApproval implements Serializable {
|
|
|
public void setPrdremark(String prdremark) {
|
|
|
this.prdremark = prdremark;
|
|
|
}
|
|
|
- public String getPrdattach() {
|
|
|
- return prdattach;
|
|
|
- }
|
|
|
- public void setPrdattach(String prdattach) {
|
|
|
- this.prdattach = prdattach;
|
|
|
- }
|
|
|
public Date getPadtime() {
|
|
|
return padtime;
|
|
|
}
|
|
|
@@ -432,12 +429,6 @@ public class PurchaseProofingApproval implements Serializable {
|
|
|
public void setPadremark(String padremark) {
|
|
|
this.padremark = padremark;
|
|
|
}
|
|
|
- public String getPadattach() {
|
|
|
- return padattach;
|
|
|
- }
|
|
|
- public void setPadattach(String padattach) {
|
|
|
- this.padattach = padattach;
|
|
|
- }
|
|
|
public Date getPpdtime() {
|
|
|
return ppdtime;
|
|
|
}
|
|
|
@@ -468,12 +459,6 @@ public class PurchaseProofingApproval implements Serializable {
|
|
|
public void setPpdremark(String ppdremark) {
|
|
|
this.ppdremark = ppdremark;
|
|
|
}
|
|
|
- public String getPpdattach() {
|
|
|
- return ppdattach;
|
|
|
- }
|
|
|
- public void setPpdattach(String ppdattach) {
|
|
|
- this.ppdattach = ppdattach;
|
|
|
- }
|
|
|
public String getFinalresult() {
|
|
|
return finalresult;
|
|
|
}
|
|
|
@@ -492,6 +477,30 @@ public class PurchaseProofingApproval implements Serializable {
|
|
|
public void setSendStatus(Short sendStatus) {
|
|
|
this.sendStatus = sendStatus;
|
|
|
}
|
|
|
+ public Set<Attach> getAttachs() {
|
|
|
+ return attachs;
|
|
|
+ }
|
|
|
+ public void setAttachs(Set<Attach> attachs) {
|
|
|
+ this.attachs = attachs;
|
|
|
+ }
|
|
|
+ public Set<Attach> getPrdAttachs() {
|
|
|
+ return prdAttachs;
|
|
|
+ }
|
|
|
+ public void setPrdAttachs(Set<Attach> prdAttachs) {
|
|
|
+ this.prdAttachs = prdAttachs;
|
|
|
+ }
|
|
|
+ public Set<Attach> getPadAttachs() {
|
|
|
+ return padAttachs;
|
|
|
+ }
|
|
|
+ public void setPadAttachs(Set<Attach> padAttachs) {
|
|
|
+ this.padAttachs = padAttachs;
|
|
|
+ }
|
|
|
+ public Set<Attach> getPpdAttachs() {
|
|
|
+ return ppdAttachs;
|
|
|
+ }
|
|
|
+ public void setPpdAttachs(Set<Attach> ppdAttachs) {
|
|
|
+ this.ppdAttachs = ppdAttachs;
|
|
|
+ }
|
|
|
|
|
|
|
|
|
}
|