/** 根据recordId得到一个ProductType */ @Override public ProductType getProductType(String recordId) { PProductType pProductType = productTypeDao.getProductType(recordId); ProductType productType = new ProductType(); copyProperties(pProductType, productType); return productType; }
@Override public List<PProductType> productTypeTreeList() { return productTypeDao.productTypeTreeList(); }
/** 综合查询页面 */ @Override public List<PProductType> queryProductType(QueryProductType queryProductType) { return productTypeDao.queryProductType(queryProductType); }
@Override public void deleteProductTypes(String[] recordIds) { productTypeDao.deleteProductTypes(recordIds); }
/** 根据对象ProductType更新数据库 */ @Override public void updateProductType(ProductType productType) { PProductType pProductType = new PProductType(); copyProperties(productType, pProductType); productTypeDao.updateProductType(pProductType); }
/** 根据recordId删除数据库一条记录 */ @Override public void deleteProductType(String recordId) { productTypeDao.deleteProductType(recordId); }
/** 根据recordId得到其所有的直接子类 */ @Override public List<PProductType> getChildProductTypes(long recordId) { return productTypeDao.getChildProductTypes(recordId); }
/** 得到所有的产品类型 */ @Override public List<PProductType> getAllProductTypes() { return productTypeDao.getAllProductTypes(); }
/** 向数据库保存一个对象ProductType */ @Override public void saveProductType(ProductType productType) { PProductType pProductType = new PProductType(); copyProperties(productType, pProductType); // po和vo的转换 productTypeDao.saveProductType(pProductType); }