@RequestMapping( value = "/shop/search/-{searchKeyword}-", method = {RequestMethod.GET}) public String toSearch(HttpServletRequest request, @PathVariable String searchKeyword) { ShopQueryModel command = new ShopQueryModel(); command.setTargetPage(PageUtil.BEGIN_PAGE); command.setPageSize(PageUtil.DEFAULT_PAGE_SIZE); command.setSearchKeyword(searchKeyword); List<ShopModel> list = shopService.strictList(command); for (ShopModel shop : list) { shop.setPreViewUrl( aossService.addImgParams( shop.getPreViewUrl(), Constants.ALIYUN_OSS_IMAGE_PARAMS_TYPE_NORMAL_PRE_IMG)); } int total = shopService.strictCount(command); request.setAttribute("results", list); request.setAttribute("total", total); return "ui/shop/search"; }