將後臺彈窗公告從一條傳爲list形式(全部彈出未讀的消息)/彈出公告七天/十五天時間控制方法的編寫)
public ModelAndView toNoticePopPage(HttpServletRequest request) {
ModelAndView mv = new ModelAndView();
GhUser user = this.getLoginUser(request);less
//new一個查詢對象
Query query = new Query();this
//彈出公告七天/十五天時間控制方法
query.put("START_TIME", DateUtil.getCurrentDateTime()).lessEqual();;
query.put("END_TIME", DateUtil.getCurrentDateTime()).moreEqual();;對象
//後臺傳值將一條傳爲list組合形式
List<DNotice> noticeList = noticeService.findList(query);
mv.addObject("noticeList", noticeList);
mv.setViewName("notice/notice_list_popup");
return mv;
}get