@Transactional(
propagation = Propagation.REQUIRED,
isolation = Isolation.DEFAULT
)
@Override
public void addProduct(InventoryForm invForm) {
Catalog catalog = new Catalog();
catalog.setName(invForm.getName());
catalog.setDescription(invForm.getDescription());
catalog.setCostPrice(invForm.getCostPrice());
catalog.setRetailPrice(invForm.getRetailPrice());
catalog.setWholesalePrice(invForm.getWholeSalePrice());
catalog.setStock(invForm.getStock());
catalog.setTags(invForm.getTags());
catalog.setSupplierId(invForm.getVendor());
Uom uom = new Uom();
uom.setId(invForm.getUomId());
MaterialType type = new MaterialType();
type.setId(invForm.getTypeId());
catalog.setUom(uom);
catalog.setMaterialType(type);
inventoryDao.setProduct(catalog);
}
InvoiceAddProductImpl.java 文件源码
java
阅读 27
收藏 0
点赞 0
评论 0
项目:Spring-MVC-Blueprints
作者:
评论列表
文章目录