Commit 5a9a162c by 丁伟

1、迁移初始提交

parent 1953c00d
...@@ -11,5 +11,4 @@ mvn install:install-file -Dfile=C:\workspace_git\sfzx_website\src\main\webapp\WE ...@@ -11,5 +11,4 @@ mvn install:install-file -Dfile=C:\workspace_git\sfzx_website\src\main\webapp\WE
</dependency> </dependency>
3、刷新maven即可 3、刷新maven即可
部署说明 部署说明
\ No newline at end of file
...@@ -76,6 +76,10 @@ public class NoticeService { ...@@ -76,6 +76,10 @@ public class NoticeService {
return flag; return flag;
} }
public void update(Notice notice){
noticeDao.update(notice);
}
public List<Notice> queryNoticeList(int noticeType){ public List<Notice> queryNoticeList(int noticeType){
List<Notice> noticeList = noticeDao.query("from Notice where noticeType ="+noticeType + "order by createTime desc", null); List<Notice> noticeList = noticeDao.query("from Notice where noticeType ="+noticeType + "order by createTime desc", null);
return noticeList; return noticeList;
......
...@@ -150,6 +150,8 @@ public class IndexController extends BaseController { ...@@ -150,6 +150,8 @@ public class IndexController extends BaseController {
mv.addObject("content", notice); mv.addObject("content", notice);
mv.addObject("noticeType", notice.getNoticeType()); mv.addObject("noticeType", notice.getNoticeType());
mv.setViewName("/front/noticeContent"); mv.setViewName("/front/noticeContent");
notice.setClickVolume(notice.getClickVolume() +1);
noticeService.update(notice);
return mv; return mv;
} }
......
...@@ -58,6 +58,13 @@ function initInputWidth(){ ...@@ -58,6 +58,13 @@ function initInputWidth(){
onLoadSuccess : function() { onLoadSuccess : function() {
$("#infotatusId").combobox("select", "普通"); $("#infotatusId").combobox("select", "普通");
$("#infotatusId").combobox("setValue", 0); $("#infotatusId").combobox("setValue", 0);
},
onChange:function(newValue,oldValue){
if("1"==newValue){
$(".infotatusClass").css("display","");
}else{
$(".infotatusClass").css("display","none");
}
} }
}); });
} }
......
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