|
@@ -19,6 +19,7 @@ import org.springframework.web.bind.annotation.ResponseBody;
|
|
|
import org.springframework.web.servlet.ModelAndView;
|
|
|
|
|
|
import java.util.List;
|
|
|
+import java.util.Map;
|
|
|
|
|
|
/**
|
|
|
* 路演管理
|
|
@@ -29,8 +30,9 @@ public class RoadShowMgrController {
|
|
|
|
|
|
@Autowired
|
|
|
private IRoadShowMgrService roadShowMgrService;
|
|
|
+
|
|
|
@RequestMapping(value = "index.htm")
|
|
|
- public ModelAndView index(){
|
|
|
+ public ModelAndView index() {
|
|
|
ModelAndView modelAndView = new ModelAndView("admin/roadshow_mgr/index");
|
|
|
modelAndView.addObject("dicRoadShowStage", DicRoadShowStage.getInstacne().getDicMap());
|
|
|
modelAndView.addObject("dicRoadShowState", DicRoadShowState.getInstacne().getDicMap());
|
|
@@ -40,7 +42,7 @@ public class RoadShowMgrController {
|
|
|
|
|
|
|
|
|
@RequestMapping(value = "list.action")
|
|
|
- public ModelAndView list(RoadShowSearchModel inputModel, @RequestParam(defaultValue = "1") int pageNo){
|
|
|
+ public ModelAndView list(RoadShowSearchModel inputModel, @RequestParam(defaultValue = "1") int pageNo) {
|
|
|
ModelAndView modelAndView = new ModelAndView("admin/roadshow_mgr/list");
|
|
|
BaseExample.Page pager = new BaseExample.Page();
|
|
|
pager.setPageNo(pageNo);
|
|
@@ -53,15 +55,17 @@ public class RoadShowMgrController {
|
|
|
|
|
|
@RequestMapping(value = "delete.action/{id}")
|
|
|
@ResponseBody
|
|
|
- public ResultState delete(@PathVariable long id){
|
|
|
+ public ResultState delete(@PathVariable long id) {
|
|
|
ResultState<Long> resultState = roadShowMgrService.delete(id);
|
|
|
return resultState;
|
|
|
}
|
|
|
|
|
|
- @RequestMapping(value = "detail.htm/{id}")
|
|
|
- public ModelAndView detail(@PathVariable long id){
|
|
|
- ModelAndView modelAndView = new ModelAndView("admin/roadshow_mgr/detail");
|
|
|
- modelAndView.addObject("busiModel", roadShowMgrService.queryOne(id));
|
|
|
- return modelAndView;
|
|
|
+ @RequestMapping(value = "detail.htm")
|
|
|
+ public ModelAndView detail(@RequestParam("id") long id) {
|
|
|
+ ModelAndView modelAndView = new ModelAndView("admin/roadshow_mgr/detail");
|
|
|
+ Map<String, Object> map = roadShowMgrService.queryOne(id);
|
|
|
+ modelAndView.addObject("busiModel", map.get("roadshowWithBLOBs"));
|
|
|
+ modelAndView.addObject("auditor", map.get("auditor"));
|
|
|
+ return modelAndView;
|
|
|
}
|
|
|
}
|