Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gic-enterprise-base
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
base_platform_enterprise
gic-enterprise-base
Commits
ea9186ae
Commit
ea9186ae
authored
Mar 26, 2020
by
guojuxing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
日志操作对象修改
parent
5184b06f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
8 deletions
+10
-8
LogUtils.java
...ad/src/main/java/com/gic/download/utils/log/LogUtils.java
+10
-8
No files found.
gic-enterprise-download/src/main/java/com/gic/download/utils/log/LogUtils.java
View file @
ea9186ae
...
@@ -44,9 +44,9 @@ public class LogUtils {
...
@@ -44,9 +44,9 @@ public class LogUtils {
logDTO
.
setUserId
(
Long
.
valueOf
(
userDetail
.
getUserInfo
().
getUserId
()));
logDTO
.
setUserId
(
Long
.
valueOf
(
userDetail
.
getUserInfo
().
getUserId
()));
logDTO
.
setUserName
(
userDetail
.
getUserInfo
().
getUserName
());
logDTO
.
setUserName
(
userDetail
.
getUserInfo
().
getUserName
());
//操作内容
//操作内容
logDTO
.
setContent
(
operationObject
+
"-"
+
content
);
logDTO
.
setContent
(
content
);
//
todo 暂时用这个
//
//操作对象
logDTO
.
set
InterfaceName
(
operationObject
+
"-"
+
conten
t
);
logDTO
.
set
BusinessName
(
operationObjec
t
);
//操作模块
//操作模块
String
moduleMenuName
=
(
String
)
RequestContext
.
getContext
().
getRequest
().
getAttribute
(
"moduleMenuName"
);
String
moduleMenuName
=
(
String
)
RequestContext
.
getContext
().
getRequest
().
getAttribute
(
"moduleMenuName"
);
Integer
moduleMenuId
=
(
Integer
)
RequestContext
.
getContext
().
getRequest
().
getAttribute
(
"moduleMenuId"
);
Integer
moduleMenuId
=
(
Integer
)
RequestContext
.
getContext
().
getRequest
().
getAttribute
(
"moduleMenuId"
);
...
@@ -56,11 +56,11 @@ public class LogUtils {
...
@@ -56,11 +56,11 @@ public class LogUtils {
}
else
{
}
else
{
LOGGER
.
info
(
"操作模块数据有误"
);
LOGGER
.
info
(
"操作模块数据有误"
);
}
}
//
操作对象
//
账号(手机号)
logDTO
.
setRemark1
(
userDetail
.
getUserInfo
().
getPhoneAreaCode
());
//账号(手机号)?
logDTO
.
setRemark2
(
userDetail
.
getUserInfo
().
getPhoneNumber
());
logDTO
.
setEnterpri
es
Id
(
Long
.
valueOf
(
userDetail
.
getEnterpriseInfo
().
getEnterpriseId
()));
logDTO
.
setEnterpri
se
Id
(
Long
.
valueOf
(
userDetail
.
getEnterpriseInfo
().
getEnterpriseId
()));
logDTO
.
setEnterpriseName
(
userDetail
.
getEnterpriseInfo
().
getEnterpriseName
());
logDTO
.
setEnterpriseName
(
userDetail
.
getEnterpriseInfo
().
getEnterpriseName
());
ExecutorPoolSingleton
.
getInstance
().
executeTask
(
new
Runnable
()
{
ExecutorPoolSingleton
.
getInstance
().
executeTask
(
new
Runnable
()
{
@Override
@Override
...
@@ -90,6 +90,8 @@ public class LogUtils {
...
@@ -90,6 +90,8 @@ public class LogUtils {
logDTO
.
setUserName
(
username
);
logDTO
.
setUserName
(
username
);
//操作内容
//操作内容
logDTO
.
setContent
(
content
);
logDTO
.
setContent
(
content
);
//
logDTO
.
setBusinessName
(
operationObject
);
//操作模块
//操作模块
// String moduleMenuName = (String) RequestContext.getContext().getRequest().getAttribute("moduleMenuName");
// String moduleMenuName = (String) RequestContext.getContext().getRequest().getAttribute("moduleMenuName");
// Integer moduleMenuId = (Integer) RequestContext.getContext().getRequest().getAttribute("moduleMenuId");
// Integer moduleMenuId = (Integer) RequestContext.getContext().getRequest().getAttribute("moduleMenuId");
...
@@ -102,7 +104,7 @@ public class LogUtils {
...
@@ -102,7 +104,7 @@ public class LogUtils {
//账号(手机号)?
//账号(手机号)?
logDTO
.
setEnterpri
es
Id
(
Long
.
valueOf
(
enterpriseId
));
logDTO
.
setEnterpri
se
Id
(
Long
.
valueOf
(
enterpriseId
));
logDTO
.
setEnterpriseName
(
enterpriseName
);
logDTO
.
setEnterpriseName
(
enterpriseName
);
ExecutorPoolSingleton
.
getInstance
().
executeTask
(
new
Runnable
()
{
ExecutorPoolSingleton
.
getInstance
().
executeTask
(
new
Runnable
()
{
@Override
@Override
...
...
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