String point = "0";
List<Product> products = null;
PageList pageList = null;
IPObject iPObject = (IPObject) request.getSession().getAttribute("iPObject");
if("0".equals(type)||"".equals(type)||"null".equals(type)||type == null)
{
pageList = gatewayService.findProductByConditions(5l, 0l, null, null,iPObject==null?null:iPObject.getAreaNode(),pagenum+"",orderStr);
point = "0";
}else if("1".equals(type))
{
pageList = gatewayService.findProductByConditions(5l, 0l, "0", "50",iPObject==null?null:iPObject.getAreaNode(),pagenum+"",orderStr);
point = "1";
}else if("2".equals(type))
{
pageList = gatewayService.findProductByConditions(5l, 0l, "50", "100",iPObject==null?null:iPObject.getAreaNode(),pagenum+"",orderStr);
point = "2";
}else if("3".equals(type))
{
pageList = gatewayService.findProductByConditions(5l, 0l, "100", "200",iPObject==null?null:iPObject.getAreaNode(),pagenum+"",orderStr);
point = "3";
}else if("4".equals(type))
{
pageList = gatewayService.findProductByConditions(5l, 0l, "200", "500",iPObject==null?null:iPObject.getAreaNode(),pagenum+"",orderStr);
point = "4";
}else if("5".equals(type))
{
pageList = gatewayService.findProductByConditions(5l, 0l, "500", "1000",iPObject==null?null:iPObject.getAreaNode(),pagenum+"",orderStr);
point = "5";
}else if("6".equals(type))
{
pageList = gatewayService.findProductByConditions(5l, 0l, "1000", null,iPObject==null?null:iPObject.getAreaNode(),pagenum+"",orderStr);
point = "6";
}
root.put("point", point);
root.put("order", order);
if(pageList!=null&&pageList.getDataList()!=null)
{
root.put("pageList", pageList);
}
root.put("products", products);