Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gic-platform-auth
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-platform-auth
Commits
e034e026
Commit
e034e026
authored
Mar 26, 2020
by
guojuxing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
日志查询接口修改
parent
b0815018
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
14 deletions
+12
-14
MenuController.java
...main/java/com/gic/auth/web/controller/MenuController.java
+12
-14
No files found.
gic-platform-auth-web/src/main/java/com/gic/auth/web/controller/MenuController.java
View file @
e034e026
...
...
@@ -7,6 +7,7 @@ import java.util.HashMap;
import
java.util.List
;
import
java.util.Map
;
import
com.gic.log.api.dto.LogSearchDTO
;
import
org.apache.commons.collections.CollectionUtils
;
import
org.apache.commons.lang3.StringUtils
;
import
org.apache.logging.log4j.LogManager
;
...
...
@@ -194,30 +195,27 @@ public class MenuController {
* @return com.gic.commons.webapi.reponse.RestResponse
*/
@RequestMapping
(
"/list-log"
)
public
RestResponse
listOperationLog
(
String
startTime
,
String
endTime
,
Integer
menuId
,
String
search
,
PageQO
pageQO
)
throws
ParseException
{
public
RestResponse
listOperationLog
(
String
startTime
,
String
endTime
,
Integer
menuId
,
String
search
,
PageQO
pageQO
)
throws
ParseException
{
Integer
enterpriseId
=
UserDetailUtils
.
getUserDetail
().
getEnterpriseId
();
Page
<
Map
<
String
,
Object
>>
pageParam
=
new
Page
<>();
Map
<
String
,
Object
>
param
=
new
HashMap
<>(
16
);
LogSearchDTO
searchParam
=
new
LogSearchDTO
();
searchParam
.
setEnterpriseId
(
String
.
valueOf
(
enterpriseId
));
searchParam
.
setInterfaceName
(
search
);
searchParam
.
setRelationId
(
Long
.
valueOf
(
menuId
));
SimpleDateFormat
sdf
=
new
SimpleDateFormat
(
"YYYY-MM-dd HH:mm:ss"
);
if
(
StringUtils
.
isNotBlank
(
startTime
))
{
startTime
=
startTime
+
" 00:00:00"
;
param
.
put
(
"logTimeBegin"
,
sdf
.
parse
(
startTime
).
getTime
(
));
searchParam
.
setLogTimeBegin
(
sdf
.
parse
(
startTime
));
}
if
(
StringUtils
.
isNotBlank
(
endTime
))
{
endTime
=
endTime
+
" 23:59:59"
;
param
.
put
(
"logTimeBegin"
,
sdf
.
parse
(
endTime
).
getTime
(
));
searchParam
.
setLogTimeEnd
(
sdf
.
parse
(
endTime
));
}
param
.
put
(
"relationId"
,
menuId
);
param
.
put
(
"enterpriseId"
,
enterpriseId
);
param
.
put
(
"logTimeEnd"
,
endTime
);
param
.
put
(
"interfaceName"
,
search
);
pageParam
.
setCurrentPage
(
pageQO
.
getCurrentPage
());
pageParam
.
setPageSize
(
pageQO
.
getPageSize
());
pageParam
.
setParams
(
param
);
ServiceResponse
<
Page
<
SystemSetLogDTO
>>
response
=
logApiService
.
listSystemSetLog
(
pageParam
);
ServiceResponse
<
Page
<
SystemSetLogDTO
>>
response
=
logApiService
.
listSystemSetLog
(
pageQO
.
getCurrentPage
(),
pageQO
.
getPageSize
(),
searchParam
);
Page
<
LogListVO
>
result
=
new
Page
<>();
if
(
response
.
isSuccess
())
{
...
...
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