// 投诉意见 @RequestMapping("/userRecommendationDeal") public String userRecommendationDeal(HttpServletRequest request, HttpServletResponse response) { int id = Integer.parseInt(request.getParameter("id")); Feedback feedback = feedbackService.find(id).get(0); feedback.setReplied(true); feedbackService.updateFeedback(feedback); return userRecommendation(request, response); }
// 转到已处理的详细投诉界面 @RequestMapping("/userComplaintInforDo") public String userComplaintInforDo(HttpServletRequest request, HttpServletResponse response) { int id = Integer.parseInt(request.getParameter("id")); Feedback feedback = feedbackService.find(id).get(0); if (feedback.getUserPhone() == null) { feedback.setUserPhone("匿名"); } else { feedback.setUserPhone(userService.findByPhone(feedback.getUserPhone()).get(0).getUsername()); } request.setAttribute("feedback", feedback); return "userComplaintInforDo"; }