...
|
...
|
@@ -17,7 +17,7 @@ import java.util.HashMap; |
|
|
* Created by zhaoqi on 2016/8/29 0029.
|
|
|
*/
|
|
|
@Controller
|
|
|
@RequestMapping("degrade")
|
|
|
@RequestMapping(" ")
|
|
|
public class DegradeInfoCtrl {
|
|
|
|
|
|
@Autowired
|
...
|
...
|
@@ -26,9 +26,11 @@ public class DegradeInfoCtrl { |
|
|
@RequestMapping("/info")
|
|
|
public ModelAndView toDegradeList(Model model) {
|
|
|
BaseResponse degradeFunction = httpClient.defaultPost(HttpUriContants.GET_DEGRADE_FUNCTION,null,BaseResponse.class);
|
|
|
model.addAttribute("functionPoints",((HashMap)degradeFunction.getData()).get("function"));
|
|
|
model.addAttribute("level1Pages",((HashMap)degradeFunction.getData()).get("level1"));
|
|
|
model.addAttribute("level2Pages",((HashMap)degradeFunction.getData()).get("level2"));
|
|
|
if (degradeFunction.getData() != null){
|
|
|
model.addAttribute("functionPoints",((HashMap)degradeFunction.getData()).get("function"));
|
|
|
model.addAttribute("level1Pages",((HashMap)degradeFunction.getData()).get("level1"));
|
|
|
model.addAttribute("level2Pages",((HashMap)degradeFunction.getData()).get("level2"));
|
|
|
}
|
|
|
return new ModelAndView("degrade/degradeList");
|
|
|
}
|
|
|
|
...
|
...
|
|