/**
* 逛苏宁上移下移
* @throws UnsupportedEncodingException
*/
@RequestMapping("/guang_move")
public String guangMove(@ModelAttribute("guang") GuangEntity guang,
@ModelAttribute Pager<Map<String, Object>> pager,
String type,Model model,RedirectAttributes redirectAttributes) throws UnsupportedEncodingException {
// 参数不符合,返回列表页面
if (StringUtils.isEmpty(type)) {
return "tvShop3/guang_list.htm";
}
// 当前移动数据所在环境的检索条件
String keyWord="";
Map<String, Object> commentMap = new HashMap<String, Object>();
if(null != pager.getKeyword()){// 搜索条件中文转码
keyWord = java.net.URLDecoder.decode(pager.getKeyword(),"UTF-8");
pager.setKeyword(keyWord);
}
commentMap.put(pager.getProperty(), keyWord);
pager.setQueryParam(commentMap);
// 回写搜索条件
redirectAttributes.addFlashAttribute("pager", pager);
// 整个数据移动
this.shopService.guangMove(pager, type,guang);
return "redirect:/tvShop3/guang_list.htm";
}