Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
log-platform
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
赵啸非
log-platform
Commits
fc216a78
Commit
fc216a78
authored
Nov 08, 2023
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改查询时间段
parent
012a19cb
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
log-manager/src/main/java/com/mortals/xhx/module/access/service/impl/AccessLogServiceImpl.java
.../xhx/module/access/service/impl/AccessLogServiceImpl.java
+8
-0
No files found.
log-manager/src/main/java/com/mortals/xhx/module/access/service/impl/AccessLogServiceImpl.java
View file @
fc216a78
...
...
@@ -2,6 +2,8 @@ package com.mortals.xhx.module.access.service.impl;
import
cn.hutool.core.date.DateUtil
;
import
cn.hutool.core.lang.Snowflake
;
import
cn.hutool.core.util.IdUtil
;
import
com.mortals.xhx.common.key.Constant
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.stereotype.Service
;
import
com.mortals.framework.service.impl.AbstractCRUDServiceImpl
;
import
com.mortals.framework.exception.AppException
;
...
...
@@ -22,6 +24,7 @@ import java.util.List;
* @date 2022-08-17
*/
@Service
(
"accessLogService"
)
@Slf4j
public
class
AccessLogServiceImpl
extends
AbstractCRUDServiceImpl
<
AccessLogDao
,
AccessLogEntity
,
Long
>
implements
AccessLogService
{
...
...
@@ -33,6 +36,11 @@ public class AccessLogServiceImpl extends AbstractCRUDServiceImpl<AccessLogDao,
entity
.
setCreateUserName
(
"system"
);
entity
.
setCreateTime
(
new
Date
());
}
if
(!
ObjectUtils
.
isEmpty
(
entity
.
getDuration
())
&&
entity
.
getDuration
()
<
Constant
.
ACCESS_EXPIRE_TIME
)
{
log
.
info
(
"Duration:{}"
,
entity
.
getDuration
());
return
null
;
}
return
super
.
save
(
entity
,
context
);
}
...
...
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