* 修复物料Bom
*@Author fancq
*@date 2013-11-14
*/
private void repairMatterBom() {
JeecgMatterBom entity = new JeecgMatterBom();
entity.setCode("001");
entity.setName("电脑");
entity.setUnit("台");
entity.setWeight("100");
entity.setPrice(new BigDecimal(5000));
entity.setStock(10);
entity.setAddress("广东深圳");
entity.setProductionDate(new Date());
entity.setQuantity(5);
commonDao.save(entity);
JeecgMatterBom entity2 = new JeecgMatterBom();
entity2.setCode("001001");
entity2.setName("主板");
entity2.setUnit("个");
entity2.setWeight("60");
entity2.setPrice(new BigDecimal(800));
entity2.setStock(18);
entity2.setAddress("上海");
entity2.setProductionDate(new Date());
entity2.setQuantity(6);
entity2.setParent(entity);
commonDao.save(entity2);
}