Commit 5a9a162c by 丁伟

1、迁移初始提交

parent 1953c00d
......@@ -11,5 +11,4 @@ mvn install:install-file -Dfile=C:\workspace_git\sfzx_website\src\main\webapp\WE
</dependency>
3、刷新maven即可
部署说明
\ No newline at end of file
......@@ -76,6 +76,10 @@ public class NoticeService {
return flag;
}
public void update(Notice notice){
noticeDao.update(notice);
}
public List<Notice> queryNoticeList(int noticeType){
List<Notice> noticeList = noticeDao.query("from Notice where noticeType ="+noticeType + "order by createTime desc", null);
return noticeList;
......
......@@ -150,6 +150,8 @@ public class IndexController extends BaseController {
mv.addObject("content", notice);
mv.addObject("noticeType", notice.getNoticeType());
mv.setViewName("/front/noticeContent");
notice.setClickVolume(notice.getClickVolume() +1);
noticeService.update(notice);
return mv;
}
......
......@@ -58,7 +58,14 @@ function initInputWidth(){
onLoadSuccess : function() {
$("#infotatusId").combobox("select", "普通");
$("#infotatusId").combobox("setValue", 0);
}
},
onChange:function(newValue,oldValue){
if("1"==newValue){
$(".infotatusClass").css("display","");
}else{
$(".infotatusClass").css("display","none");
}
}
});
}
//js时间戳格式化成日期格式
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment