Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
C
chnmuseum-party
Project
Project
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
liqin
chnmuseum-party
Commits
35817894
Commit
35817894
authored
Apr 27, 2021
by
liqin
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug fixed
parent
b60b0009
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
4 deletions
+11
-4
SystemOperationLogService.java
...chnmuseum/party/common/log/SystemOperationLogService.java
+11
-4
No files found.
src/main/java/cn/chnmuseum/party/common/log/SystemOperationLogService.java
View file @
35817894
...
@@ -107,16 +107,23 @@ public class SystemOperationLogService extends ServiceImpl<SysLogMapper, SysLog>
...
@@ -107,16 +107,23 @@ public class SystemOperationLogService extends ServiceImpl<SysLogMapper, SysLog>
}
}
Object
[]
method_param
=
point
.
getArgs
();
//获取方法参数;
Object
[]
method_param
=
point
.
getArgs
();
//获取方法参数;
if
(
OperModule
.
STBOPERATION
.
getMsg
().
equals
(
methodLog
.
operModule
().
getMsg
()))
{
if
(
OperModule
.
STBOPERATION
.
getMsg
().
equals
(
methodLog
.
operModule
().
getMsg
()))
{
TBoxOperation
t
=
(
TBoxOperation
)
method_param
[
0
];
Object
obj
=
method_param
[
0
];
String
status
;
if
(
obj
instanceof
TBoxOperation
)
{
TBoxOperation
t
=
(
TBoxOperation
)
obj
;
status
=
t
.
getStatus
()
+
""
;
}
else
{
status
=
(
String
)
obj
;
}
TOperationLog
operationLog
=
new
TOperationLog
();
TOperationLog
operationLog
=
new
TOperationLog
();
operationLog
.
setCreateTime
(
LocalDateTime
.
now
());
operationLog
.
setCreateTime
(
LocalDateTime
.
now
());
operationLog
.
setUserId
(
user
.
getId
());
operationLog
.
setUserId
(
user
.
getId
());
if
(
user
.
getAreaName
()
!=
null
)
{
if
(
user
.
getAreaName
()
!=
null
)
{
operationLog
.
setArea
(
user
.
getAreaName
());
operationLog
.
setArea
(
user
.
getAreaName
());
}
}
if
(
OperType
.
ACTIVATION
.
getMsg
().
equals
(
methodLog
.
operType
().
getMsg
())
&&
3
==(
t
.
getStatus
()))
{
if
(
OperType
.
ACTIVATION
.
getMsg
().
equals
(
methodLog
.
operType
().
getMsg
())
&&
"3"
.
equals
(
status
))
{
operationLog
.
setOperationType
(
OperType
.
FAULT
.
getMsg
());
operationLog
.
setOperationType
(
OperType
.
FAULT
.
getMsg
());
}
else
{
}
else
{
operationLog
.
setOperationType
(
OperType
.
ACTIVATION
.
getMsg
());
operationLog
.
setOperationType
(
OperType
.
ACTIVATION
.
getMsg
());
}
}
operationLogService
.
save
(
operationLog
);
operationLogService
.
save
(
operationLog
);
...
...
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