yun-zuoyi
陈思洁 6 years ago
commit 14f509b97a

@ -155,4 +155,24 @@ public class Material extends BaseCode {
public List<BaseOrder> getOrders() {
return BeanRelation.list(this, EMaterial.Orders);
}
@JsonBackReference
public List<SalesOrder> getSalesOrder() {
return BeanRelation.listByClass(this, SalesOrder.class, EMaterial.Orders);
}
@JsonBackReference
public List<PurchaseOrder> getPurchaseOrders() {
return BeanRelation.listByClass(this, PurchaseOrder.class, EMaterial.Orders);
}
@JsonBackReference
public List<Inventory> getInventories() {
return BeanRelation.listByClass(this, Inventory.class, EMaterial.Orders);
}
@JsonBackReference
public List<ProductOrder> getProductOrders() {
return BeanRelation.listByClass(this, ProductOrder.class, EMaterial.Orders);
}
}

Loading…
Cancel
Save