Package com.swinarta.sunflower.server.model

Examples of com.swinarta.sunflower.server.model.DisplayProductWithStock


    ResultList<Product> result = coreManager.searchProductWithStock(supplierId, null, null, null, false, storeId, stockMode, start, end);
    List<DisplayProductWithStock> displayProductList = new ArrayList<DisplayProductWithStock>();
   
    for (Product product : result) {
      DisplayProductWithStock disp = mapper.map(product, DisplayProductWithStock.class);
      if(product.getStock().size() > 0){
        disp.setStock(mapper.map(product.getStock().iterator().next(), DisplayStock.class));
      }
      displayProductList.add(disp);
    }
   
    displayResultList = new ResultList<DisplayProductWithStock>(displayProductList);
View Full Code Here

TOP

Related Classes of com.swinarta.sunflower.server.model.DisplayProductWithStock

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.