Package com.lgx8.common.entities

Examples of com.lgx8.common.entities.GatewayConfig


    String cz_st = request.getParameter("cz_st");
    String cz_ed = request.getParameter("cz_ed");
    String qr_st = request.getParameter("qr_st");
    String qr_ed = request.getParameter("qr_ed");
    StringBuffer sb = new StringBuffer();
    PageArgument pr = getPageInfo(request);
    if(cz_st!=null&&cz_st.length()!=0){
      sb.append(" and t1.CZSJ >= str_to_date('"+cz_st+"','%Y-%m-%d %H:%i:%s')");
    }
    if(cz_ed!=null&&cz_ed.length()!=0){
      sb.append(" and t1.CZSJ <= str_to_date('"+cz_ed+"','%Y-%m-%d %H:%i:%s')");
View Full Code Here


    String cz_ed = request.getParameter("cz_ed");
    String qr_st = request.getParameter("qr_st");
    String qr_ed = request.getParameter("qr_ed");
    String czzt = request.getParameter("czzt");
    StringBuffer sb = new StringBuffer();
    PageArgument pr = getPageInfo(request);
    if(cz_st!=null&&cz_st.length()!=0){
      sb.append(" and czsj >= str_to_date('"+cz_st+"','%Y-%m-%d %H:%i:%s')");
    }
    if(cz_ed!=null&&cz_ed.length()!=0){
      sb.append(" and czsj <= str_to_date('"+cz_ed+"','%Y-%m-%d %H:%i:%s')");
View Full Code Here

    }
   
    ApplicationContext ac = WebApplicationContextUtils.getWebApplicationContext(this.getServletContext());
    IGatewayService gatewayService = (IGatewayService) ac.getBean("gatewayService");
 
    PageList page = null;
    if("all".equals(areacategoryid)&&"all".equals(categoryid)&&"all".equals(brandid)) {
     
    } else if("all".equals(areacategoryid)&&"all".equals(categoryid)) {
      //查商品
      if("1".equals(type)) {
        page = gatewayService.findProduct(keys, pagenum, Constants.SEARCH_RESULT_PAGE_SIZE, orderStr);
      //查品牌
      } else {
        if(brandid!=null&&!"".equals(brandid)&&lbrandid!=-1) {
          page = gatewayService.findProductByBrand(lbrandid, pagenum, Constants.SEARCH_RESULT_PAGE_SIZE, orderStr);
        } else {
          page = gatewayService.findProductByBrand(keys, pagenum, Constants.SEARCH_RESULT_PAGE_SIZE, orderStr);
        }
      }
      //查询指定商品分类下面所有分区商品
    } else if("all".equals(areacategoryid)&&categoryid!=null) {
      page = gatewayService.findProduct(new Long(categoryid), keys, pagenum, Constants.SEARCH_RESULT_PAGE_SIZE, orderStr);
      //查询指定分区下面所有商品分类
    } else if("all".equals(categoryid)&&areacategoryid!=null) {
      page = gatewayService.findProductAllCategory(new Long(areacategoryid), keys, pagenum, Constants.SEARCH_RESULT_PAGE_SIZE, orderStr);
    } else if(categoryid!=null&&areacategoryid!=null) {
      page = gatewayService.findProduct(new Long(areacategoryid), new Long(categoryid), keys, pagenum, Constants.SEARCH_RESULT_PAGE_SIZE, orderStr);
    }
     
   
   
   
    Template temp = null;
   
    //TODO 假数据
    List<Product> lastWeekHotProduct = gatewayService.findLastWeekHotProduct(Constants.LAST_WEEK_HOT_PRODUCT_SIZE);
    if(lastWeekHotProduct!=null) {
      root.put("lastWeekHotProduct", lastWeekHotProduct);
    }
   
    //TODO 猜你喜欢的商品,先做假数据
    List<Product> yourLoveProducts = lastWeekHotProduct;
    if(yourLoveProducts!=null) {
      root.put("yourLoveProducts", yourLoveProducts);
    }
   
   
   
   
    //查询有结果
    if(page!=null&&page.getDataList()!=null&&page.getDataList().size()>0) {
      root.put("page", page);
      temp = getConfiguration().getTemplate("search/result.ftl");
    //查询无相关记录
    } else {
     
View Full Code Here

      }
      hql += ") "+orderStr;
     
    }
    Object[] values = new Object[]{};
    PageList page = findByPage4Report(hql, values, pageno, pagesize);
    return page;
  }
View Full Code Here

      }
      hql += ") "+orderStr;
     
    }
    Object[] values = new Object[]{};
    PageList page = findByPage4Report(hql, values, pageno, pagesize);
    return page;
  }
View Full Code Here

      }
      hql += ") "+orderStr;
     
    }
    Object[] values = new Object[]{areacategoryid};
    PageList page = findByPage4Report(hql, values, pageno, pagesize);
    return page;
  }
View Full Code Here

      }
      hql += ") "+orderStr;
     
    }
    Object[] values = new Object[]{areacategoryid };
    PageList page = findByPage4Report(hql, values, pageno, pagesize);
    return page;
  }
View Full Code Here

  }

  public static void main(String[] args) {
    ApplicationContext ac = new ClassPathXmlApplicationContext("ApplicationContext.xml");
    IProductDao productDao = (IProductDao) ac.getBean("productDao");
    PageList page = productDao.findProduct(new Long(12), new String[]{"商品","4"}, 2, 5, "");
    System.out.println(page.getDataList().size());
    System.out.println();
  }
View Full Code Here

      }
      hql += ") "+orderStr;
     
    }
    Object[] values = new Object[]{};
    PageList page = findByPage4Report(hql, values, pageno, pagesize);
    return page;
  }
View Full Code Here

    if(orderStr==null) {
      orderStr = "";
    }
    hql = "select p from Product p where p.onsale=1 and p.isdelete=0 and p.brand.id=?"+orderStr;
    Object[] values = new Object[]{brandid};
    PageList page = findByPage4Report(hql, values, pageno, pagesize);
    return page;
  }
View Full Code Here

TOP

Related Classes of com.lgx8.common.entities.GatewayConfig

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.