|
@@ -13,9 +13,11 @@ import javax.servlet.http.HttpServletRequest;
|
|
|
|
|
|
|
|
import com.goafanti.common.model.*;
|
|
import com.goafanti.common.model.*;
|
|
|
import com.goafanti.news.bo.InputJtNews;
|
|
import com.goafanti.news.bo.InputJtNews;
|
|
|
|
|
+import com.goafanti.news.bo.OutJtNews;
|
|
|
import com.goafanti.news.service.EventPlanningService;
|
|
import com.goafanti.news.service.EventPlanningService;
|
|
|
import org.apache.commons.lang3.time.DateFormatUtils;
|
|
import org.apache.commons.lang3.time.DateFormatUtils;
|
|
|
import org.springframework.stereotype.Controller;
|
|
import org.springframework.stereotype.Controller;
|
|
|
|
|
+import org.springframework.web.bind.annotation.PathVariable;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
import org.springframework.web.bind.annotation.RequestMethod;
|
|
import org.springframework.web.bind.annotation.RequestMethod;
|
|
|
import org.springframework.web.bind.annotation.ResponseBody;
|
|
import org.springframework.web.bind.annotation.ResponseBody;
|
|
@@ -1637,4 +1639,21 @@ public class WebpageController extends BaseController {
|
|
|
return modelAndView;
|
|
return modelAndView;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 新闻详情
|
|
|
|
|
+ * @param request
|
|
|
|
|
+ * @param modelview
|
|
|
|
|
+ * @return
|
|
|
|
|
+ */
|
|
|
|
|
+ @SuppressWarnings("unchecked")
|
|
|
|
|
+ @RequestMapping(value = "/eventPlanning/{id}", method = RequestMethod.GET)
|
|
|
|
|
+ public ModelAndView newsDetails( ModelAndView modelview,@PathVariable Integer id) {
|
|
|
|
|
+ modelview.setViewName("/portal/eventDetails");
|
|
|
|
|
+ InputJtNews in = new InputJtNews();
|
|
|
|
|
+ in.setId(id);
|
|
|
|
|
+ OutJtNews out =eventPlanningService.selectNews(in);
|
|
|
|
|
+ modelview.addObject("news",out);
|
|
|
|
|
+ return modelview;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
}
|
|
}
|