Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
Y
yzg-util
Project
Project
Details
Activity
Releases
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
YZG
yzg-util
Commits
3b744dbc
Commit
3b744dbc
authored
May 18, 2022
by
yanzg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
将源码打包进jar包
parent
ba8c27ef
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
LogCountTime.java
...il-db/src/main/java/com/yanzuoguang/log/LogCountTime.java
+3
-0
No files found.
yzg-util-db/src/main/java/com/yanzuoguang/log/LogCountTime.java
View file @
3b744dbc
...
@@ -3,6 +3,7 @@ package com.yanzuoguang.log;
...
@@ -3,6 +3,7 @@ package com.yanzuoguang.log;
import
com.yanzuoguang.util.cache.MemoryCache
;
import
com.yanzuoguang.util.cache.MemoryCache
;
import
com.yanzuoguang.util.helper.DateHelper
;
import
com.yanzuoguang.util.helper.DateHelper
;
import
com.yanzuoguang.util.helper.StringHelper
;
import
com.yanzuoguang.util.helper.StringHelper
;
import
org.springframework.scheduling.annotation.Async
;
import
org.springframework.stereotype.Component
;
import
org.springframework.stereotype.Component
;
/**
/**
...
@@ -84,6 +85,7 @@ public class LogCountTime {
...
@@ -84,6 +85,7 @@ public class LogCountTime {
*
*
* @param url 请求地址
* @param url 请求地址
*/
*/
@Async
public
void
start
(
String
url
)
{
public
void
start
(
String
url
)
{
LogUrlCountVo
count
=
getCount
(
url
);
LogUrlCountVo
count
=
getCount
(
url
);
count
.
addStart
();
count
.
addStart
();
...
@@ -96,6 +98,7 @@ public class LogCountTime {
...
@@ -96,6 +98,7 @@ public class LogCountTime {
* @param time 执行时间
* @param time 执行时间
* @param isError 是否错误
* @param isError 是否错误
*/
*/
@Async
public
void
finish
(
String
url
,
long
time
,
boolean
isError
)
{
public
void
finish
(
String
url
,
long
time
,
boolean
isError
)
{
LogUrlCountVo
count
=
getCount
(
url
);
LogUrlCountVo
count
=
getCount
(
url
);
count
.
addFinish
(
time
,
isError
);
count
.
addFinish
(
time
,
isError
);
...
...
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