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
b0815018
Commit
b0815018
authored
Mar 26, 2020
by
guojuxing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
日志的操作时间查询格式修改
parent
503516bb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
2 deletions
+13
-2
MenuController.java
...main/java/com/gic/auth/web/controller/MenuController.java
+13
-2
No files found.
gic-platform-auth-web/src/main/java/com/gic/auth/web/controller/MenuController.java
View file @
b0815018
package
com
.
gic
.
auth
.
web
.
controller
;
import
java.text.ParseException
;
import
java.text.SimpleDateFormat
;
import
java.util.ArrayList
;
import
java.util.HashMap
;
import
java.util.List
;
...
...
@@ -192,14 +194,23 @@ 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
)
{
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
);
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
());
}
if
(
StringUtils
.
isNotBlank
(
endTime
))
{
endTime
=
endTime
+
" 23:59:59"
;
param
.
put
(
"logTimeBegin"
,
sdf
.
parse
(
endTime
).
getTime
());
}
param
.
put
(
"relationId"
,
menuId
);
param
.
put
(
"enterpriseId"
,
enterpriseId
);
param
.
put
(
"logTimeBegin"
,
startTime
);
param
.
put
(
"logTimeEnd"
,
endTime
);
param
.
put
(
"interfaceName"
,
search
);
pageParam
.
setCurrentPage
(
pageQO
.
getCurrentPage
());
...
...
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