|
@@ -25,7 +25,7 @@ import org.hibernate.annotations.Where;
|
|
|
@Table(name = "make$orders" , indexes = { @Index(name = "make$orders_date", columnList = "ma_date") })
|
|
@Table(name = "make$orders" , indexes = { @Index(name = "make$orders_date", columnList = "ma_date") })
|
|
|
@Where(clause = "ma_status=200")
|
|
@Where(clause = "ma_status=200")
|
|
|
@Entity
|
|
@Entity
|
|
|
-public class MakeOrderTodo {
|
|
|
|
|
|
|
+public class MakeOrderTodo extends AbstractOrderProduct {
|
|
|
|
|
|
|
|
@Id
|
|
@Id
|
|
|
@GeneratedValue(strategy = GenerationType.AUTO)
|
|
@GeneratedValue(strategy = GenerationType.AUTO)
|
|
@@ -105,13 +105,6 @@ public class MakeOrderTodo {
|
|
|
*/
|
|
*/
|
|
|
@Column(name = "ma_prid")
|
|
@Column(name = "ma_prid")
|
|
|
private Long productId;
|
|
private Long productId;
|
|
|
-
|
|
|
|
|
- /**
|
|
|
|
|
- * 产品
|
|
|
|
|
- */
|
|
|
|
|
- @OneToOne(cascade = { CascadeType.REFRESH })
|
|
|
|
|
- @JoinColumn(name = "ma_prid", insertable = false, updatable = false)
|
|
|
|
|
- private Product product;
|
|
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* 需求日期
|
|
* 需求日期
|
|
@@ -355,22 +348,16 @@ public class MakeOrderTodo {
|
|
|
this.vendUserUU = vendUserUU;
|
|
this.vendUserUU = vendUserUU;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ @Override
|
|
|
public Long getProductId() {
|
|
public Long getProductId() {
|
|
|
return productId;
|
|
return productId;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ @Override
|
|
|
public void setProductId(Long productId) {
|
|
public void setProductId(Long productId) {
|
|
|
this.productId = productId;
|
|
this.productId = productId;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- public Product getProduct() {
|
|
|
|
|
- return product;
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- public void setProduct(Product product) {
|
|
|
|
|
- this.product = product;
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
public Date getDelivery() {
|
|
public Date getDelivery() {
|
|
|
return delivery;
|
|
return delivery;
|
|
|
}
|
|
}
|