Beispiel #1
0
 @RequestMapping("product.html")
 public String product(ModelMap modelMap, HttpServletRequest request) {
   modelMap = indexService.getIndexMainPro(modelMap);
   request.setAttribute("toWhat", 0);
   modelMap = indexService.getIndexProduct(modelMap, request);
   return "product";
 }
Beispiel #2
0
 @ResponseBody
 @RequestMapping(value = "tuanP.json", method = RequestMethod.POST)
 public JsonVo tuanP(ModelMap modelMap, HttpServletRequest request) {
   JsonVo<String> json = new JsonVo<String>();
   request.setAttribute("toWhat", 1);
   modelMap = indexService.getIndexProduct(modelMap, request);
   List list = ((PageVo) modelMap.get("pageVo")).getList();
   for (int oo = 0; oo < list.size(); oo++) {
     DBObject dbObject = (DBObject) list.get(oo);
     list.set(oo, dbObject.toString());
   }
   json.setObject(list);
   json.setResult(true);
   return json;
 }
Beispiel #3
0
 @RequestMapping("tao.html")
 public String tao(ModelMap modelMap, HttpServletRequest request) {
   request.setAttribute("toWhat", 2);
   modelMap = indexService.getIndexProduct(modelMap, request);
   return "tao";
 }
Beispiel #4
0
 @RequestMapping("school.html")
 public String brand(ModelMap modelMap) {
   modelMap = indexService.getIndexBrand(modelMap);
   return "school";
 }
Beispiel #5
0
 @RequestMapping("sort.html")
 public String sort(ModelMap modelMap) {
   modelMap = indexService.getIndexMainPro(modelMap);
   return "sort";
 }
Beispiel #6
0
 @RequestMapping("main.html")
 public String index(ModelMap modelMap) {
   modelMap = indexService.getIndexMainPro(modelMap);
   return "index";
 }
Beispiel #7
0
 @RequestMapping("join.html")
 public String join(ModelMap modelMap, HttpServletRequest request) {
   modelMap = indexService.getIndexAction(modelMap);
   return "join";
 }