Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
sfzx-website
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
丁伟
sfzx-website
Commits
5a9a162c
Commit
5a9a162c
authored
Sep 22, 2020
by
丁伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1、迁移初始提交
parent
1953c00d
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
3 deletions
+14
-3
README.md
+0
-2
src/main/java/org/ccpit/business/noticeManage/NoticeService.java
+4
-0
src/main/java/org/ccpit/front/IndexController.java
+2
-0
src/main/webapp/resource/business/noticePage.js
+8
-1
No files found.
README.md
View file @
5a9a162c
...
...
@@ -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
src/main/java/org/ccpit/business/noticeManage/NoticeService.java
View file @
5a9a162c
...
...
@@ -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
;
...
...
src/main/java/org/ccpit/front/IndexController.java
View file @
5a9a162c
...
...
@@ -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
;
}
...
...
src/main/webapp/resource/business/noticePage.js
View file @
5a9a162c
...
...
@@ -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时间戳格式化成日期格式
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment