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
29170a34
Commit
29170a34
authored
Jun 03, 2017
by
fsn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
登录日志管理权限整理
parent
25a7397d
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
63 additions
and
52 deletions
+63
-52
sql/guns.sql
+58
-51
src/main/java/com/stylefeng/guns/modular/system/controller/LoginLogController.java
+5
-1
No files found.
sql/guns.sql
View file @
29170a34
This diff is collapsed.
Click to expand it.
src/main/java/com/stylefeng/guns/modular/system/controller/LoginLogController.java
View file @
29170a34
...
...
@@ -2,7 +2,9 @@ package com.stylefeng.guns.modular.system.controller;
import
com.baomidou.mybatisplus.mapper.SqlRunner
;
import
com.baomidou.mybatisplus.plugins.Page
;
import
com.stylefeng.guns.common.annotion.Permission
;
import
com.stylefeng.guns.common.annotion.log.BussinessLog
;
import
com.stylefeng.guns.common.constant.Const
;
import
com.stylefeng.guns.common.constant.factory.PageFactory
;
import
com.stylefeng.guns.common.controller.BaseController
;
import
com.stylefeng.guns.modular.system.dao.LogDao
;
...
...
@@ -41,9 +43,10 @@ public class LoginLogController extends BaseController {
}
/**
* 查询
操作
日志列表
* 查询
登录
日志列表
*/
@RequestMapping
(
"/list"
)
@Permission
(
Const
.
ADMIN_NAME
)
@ResponseBody
public
Object
list
(
@RequestParam
(
required
=
false
)
String
beginTime
,
@RequestParam
(
required
=
false
)
String
endTime
,
@RequestParam
(
required
=
false
)
String
logName
)
{
Page
<
OperationLog
>
page
=
new
PageFactory
<
OperationLog
>().
defaultPage
();
...
...
@@ -57,6 +60,7 @@ public class LoginLogController extends BaseController {
*/
@BussinessLog
(
"清空登录日志"
)
@RequestMapping
(
"/delLoginLog"
)
@Permission
(
Const
.
ADMIN_NAME
)
@ResponseBody
public
Object
delLog
()
{
SqlRunner
.
db
().
delete
(
"delete from login_log"
);
...
...
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