Package com.lgx8.gateway.service

Examples of com.lgx8.gateway.service.IGatewayService.findProductById()


      lid = Long.parseLong(id);
    } catch (Exception e1) {
      lid = -1;
    }
   
    Product product = gatewayService.findProductById(lid);
    if(product!=null) {
      root.put("product", product);
      root.put("Product_List_Url", Constants.PRODUCT_LIST_URL);
     
      List<Brand> brands = gatewayService.findBrand();
View Full Code Here


        lid = -1;
      }
      ApplicationContext ac = WebApplicationContextUtils.getWebApplicationContext(this.getServletContext());
      IGatewayService gatewayService = (IGatewayService) ac.getBean("gatewayService");
     
      Product product = gatewayService.findProductById(lid);
      if(product==null) {
        out.print("({'result':'0','msg':'修改的商品信息不存在!'})");
        out.flush();
        return;
      }
View Full Code Here

    root.putAll(base);
   
    root.put("searchURL", Constants.SEARCH_URL);
   
    if(productId!=0) {
      product = gatewayService.findProductById(productId);
    }
    if(product!=null) {
      root.put("product", product);
      if(product.getColor()!=null&&!"".equals(product.getColor())) {
        List<ProductProperty> colors = gatewayService.findProductPropertyByIds(product.getColor().split(";"));
View Full Code Here

   
    Map<Object, Object> root = new HashMap<Object, Object>();
    root.putAll(base);
   
    if(productId!=0) {
      product = gatewayService.findProductById(productId);
    }
    if(product!=null) {
      root.put("product", product);
    }
   
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.