|
|
@@ -9,7 +9,7 @@ import java.util.Date;
|
|
|
|
|
|
@Table(name = "purc$orderitems")
|
|
|
@Entity
|
|
|
-public class PurchaseOrderReceivedItem {
|
|
|
+public class PurchaseOrderReceivedItem extends AbstractOrderProduct {
|
|
|
|
|
|
@Id
|
|
|
@Column(name = "pd_id")
|
|
|
@@ -34,13 +34,6 @@ public class PurchaseOrderReceivedItem {
|
|
|
@Column(name = "pd_prid")
|
|
|
private Long productId;
|
|
|
|
|
|
- /**
|
|
|
- * 产品
|
|
|
- */
|
|
|
- @OneToOne(cascade = { CascadeType.REFRESH })
|
|
|
- @JoinColumn(name = "pd_prid", insertable = false, updatable = false)
|
|
|
- private Product product;
|
|
|
-
|
|
|
/**
|
|
|
* 数量
|
|
|
*/
|
|
|
@@ -179,22 +172,16 @@ public class PurchaseOrderReceivedItem {
|
|
|
this.number = number;
|
|
|
}
|
|
|
|
|
|
+ @Override
|
|
|
public Long getProductId() {
|
|
|
return productId;
|
|
|
}
|
|
|
|
|
|
+ @Override
|
|
|
public void setProductId(Long productId) {
|
|
|
this.productId = productId;
|
|
|
}
|
|
|
|
|
|
- public Product getProduct() {
|
|
|
- return product;
|
|
|
- }
|
|
|
-
|
|
|
- public void setProduct(Product product) {
|
|
|
- this.product = product;
|
|
|
- }
|
|
|
-
|
|
|
@JsonIgnore
|
|
|
@JSONField(serialize = false)
|
|
|
public PurchaseOrderReceived getOrder() {
|