Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
guns-vip
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
chenjunxiong
guns-vip
Commits
aaa6c3d1
Commit
aaa6c3d1
authored
May 09, 2017
by
fsn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
删除通知的业务编写
parent
48b5dd43
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
src/main/java/com/stylefeng/guns/modular/system/controller/NoticeController.java
+8
-2
No files found.
src/main/java/com/stylefeng/guns/modular/system/controller/NoticeController.java
View file @
aaa6c3d1
...
...
@@ -6,9 +6,11 @@ import com.stylefeng.guns.common.exception.BussinessException;
import
com.stylefeng.guns.core.shiro.ShiroKit
;
import
com.stylefeng.guns.core.util.ToolUtil
;
import
com.stylefeng.guns.modular.system.dao.NoticeDao
;
import
com.stylefeng.guns.persistence.dao.NoticeMapper
;
import
com.stylefeng.guns.persistence.model.Notice
;
import
org.springframework.stereotype.Controller
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestParam
;
import
org.springframework.web.bind.annotation.ResponseBody
;
import
org.springframework.ui.Model
;
import
org.springframework.web.bind.annotation.PathVariable
;
...
...
@@ -31,6 +33,9 @@ public class NoticeController extends BaseController {
private
String
PREFIX
=
"/system/notice/"
;
@Resource
private
NoticeMapper
noticeMapper
;
@Resource
private
NoticeDao
noticeDao
;
/**
...
...
@@ -87,7 +92,8 @@ public class NoticeController extends BaseController {
*/
@RequestMapping
(
value
=
"/delete"
)
@ResponseBody
public
Object
delete
()
{
public
Object
delete
(
@RequestParam
Integer
noticeId
)
{
this
.
noticeMapper
.
deleteById
(
noticeId
);
return
SUCCESS_TIP
;
}
...
...
@@ -97,7 +103,7 @@ public class NoticeController extends BaseController {
*/
@RequestMapping
(
value
=
"/update"
)
@ResponseBody
public
Object
update
()
{
public
Object
update
(
Notice
notice
)
{
return
super
.
SUCCESS_TIP
;
}
...
...
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