Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
jfV5portal
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
管理员
jfV5portal
Commits
5d3b4a3c
Commit
5d3b4a3c
authored
Aug 09, 2018
by
周添尉
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改登出日志
parent
9464e257
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
4 deletions
+13
-4
LogoutAction.java
src_system/com/gaowj/system/login/LogoutAction.java
+13
-4
No files found.
src_system/com/gaowj/system/login/LogoutAction.java
View file @
5d3b4a3c
...
...
@@ -4,8 +4,13 @@ package com.gaowj.system.login;
//import java.util.Map;
import
java.io.IOException
;
import
java.util.Date
;
import
java.util.HashMap
;
import
java.util.Map
;
import
com.gaowj.business.SystemOpeBusiness
;
import
com.gaowj.business.action.BasicAction
;
import
com.gaowj.business.comp.BusinessManager
;
import
com.gaowj.business.exception.BusinessException
;
//import com.gaowj.business.listener.myHttpSessionAttributeListener;
import
com.gaowj.business.util.SessionUtil
;
...
...
@@ -19,10 +24,14 @@ public class LogoutAction extends BasicAction {
private
static
final
long
serialVersionUID
=
-
6074460857486096013L
;
public
String
execute
()
throws
BusinessException
{
// request.getSession().removeAttribute("userInfo");
// List<Map<String,Object>> user = myHttpSessionAttributeListener.getSessionUser(request);
// System.out.println("在线用户");
// System.out.println(user);
//增加登陆日志
SystemOpeBusiness
systemOpeBusiness
=
BusinessManager
.
getBusiness
(
SystemOpeBusiness
.
class
);
Map
<
String
,
Object
>
log
=
new
HashMap
<
String
,
Object
>();
log
.
put
(
"CODE"
,
SessionUtil
.
getEmid
());
log
.
put
(
"EMNAME"
,
SessionUtil
.
getEmname
());
log
.
put
(
"EMIP"
,
SessionUtil
.
getClientIp
());
log
.
put
(
"OPENAME"
,
"退出"
);
log
.
put
(
"OPETIME"
,
new
Date
());
log
.
put
(
"TYPE"
,
SessionUtil
.
getSessionUser
().
get
(
"TYPE"
));
log
.
put
(
"OPETYPE"
,
"B/S退出"
);
systemOpeBusiness
.
insert_log
(
log
);
SessionUtil
.
removeSession
(
request
);
request
.
getSession
().
invalidate
();
try
{
...
...
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