猿问

服务页面无法获取到相应的数据

@Controller

@RequestMapping(value = "mst/feedback")

public class FeedbackController extends BaseController{

@Autowired

private FeedbackService feedbackService;

@RequestMapping(value = { "init", "" })

public String init(Demo demo, HttpServletRequest request,

HttpServletResponse response, Model model) {

model.addAttribute("gridModel", getGridConfig("feedback"));

return "modules/mst/feedback/feedback";

}

@RequestMapping(value = { "getList" }, method = RequestMethod.POST)

@ResponseBody

public String getList(FeedbackModel feedbackModel,

HttpServletRequest request, HttpServletResponse response)

throws ValidationException {

// ActivityInfo activityInfo = (ActivityInfo) JsonUtils.getBean(request, ActivityInfo.class);

FeedbackInfo feedbackInfo = new FeedbackInfo();

List<FeedbackModel> feedbackList = feedbackService.getList(feedbackModel);

JQResultModel resultModel = new JQResultModel(feedbackList, feedbackInfo.getPage());

return JsonUtils.toString(resultModel);

}

}


Oxygen_5
浏览 1240回答 0
0回答
随时随地看视频慕课网APP

相关分类

Java
我要回答