Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
B
browser-backend
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
Administrator
browser-backend
Commits
3d2c9233
Commit
3d2c9233
authored
May 21, 2020
by
renjie
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev-zrj' into 'staging'
ipcount bug See merge request
!136
parents
548c371b
2c26a3a6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
AdministratorServiceImpl.java
...ackend/account/service/impl/AdministratorServiceImpl.java
+4
-4
No files found.
src/main/java/com/edgec/browserbackend/account/service/impl/AdministratorServiceImpl.java
View file @
3d2c9233
...
@@ -390,8 +390,8 @@ public class AdministratorServiceImpl implements AdministratorService {
...
@@ -390,8 +390,8 @@ public class AdministratorServiceImpl implements AdministratorService {
Instant
.
now
().
minus
(
1
,
ChronoUnit
.
DAYS
).
toEpochMilli
(),
Instant
.
now
().
minus
(
1
,
ChronoUnit
.
DAYS
).
toEpochMilli
(),
Instant
.
now
().
toEpochMilli
());
Instant
.
now
().
toEpochMilli
());
if
(
ipCountRecord
!=
null
)
{
if
(
ipCountRecord
!=
null
)
{
ipCountQueryResultDto
.
setIpCount_all
(
ipCountRecord
.
getIp_all
());
ipCountQueryResultDto
.
setIpCount_
yesterday_
all
(
ipCountRecord
.
getIp_all
());
ipCountQueryResultDto
.
setIpCount_using
(
ipCountRecord
.
getIp_using
());
ipCountQueryResultDto
.
setIpCount_
yesterday_
using
(
ipCountRecord
.
getIp_using
());
}
}
}
else
{
}
else
{
long
ipcount_using
=
ipResourceRepository
.
countAllByOwnerAndIsDeletedAndValidTimeGreaterThan
(
username
,
false
,
Instant
.
now
().
toEpochMilli
());
long
ipcount_using
=
ipResourceRepository
.
countAllByOwnerAndIsDeletedAndValidTimeGreaterThan
(
username
,
false
,
Instant
.
now
().
toEpochMilli
());
...
@@ -402,8 +402,8 @@ public class AdministratorServiceImpl implements AdministratorService {
...
@@ -402,8 +402,8 @@ public class AdministratorServiceImpl implements AdministratorService {
Instant
.
now
().
minus
(
1
,
ChronoUnit
.
DAYS
).
toEpochMilli
(),
Instant
.
now
().
minus
(
1
,
ChronoUnit
.
DAYS
).
toEpochMilli
(),
Instant
.
now
().
toEpochMilli
());
Instant
.
now
().
toEpochMilli
());
if
(
ipCountRecord
!=
null
)
{
if
(
ipCountRecord
!=
null
)
{
ipCountQueryResultDto
.
setIpCount_all
(
ipCountRecord
.
getIp_all
());
ipCountQueryResultDto
.
setIpCount_
yesterday_
all
(
ipCountRecord
.
getIp_all
());
ipCountQueryResultDto
.
setIpCount_using
(
ipCountRecord
.
getIp_using
());
ipCountQueryResultDto
.
setIpCount_
yesterday_
using
(
ipCountRecord
.
getIp_using
());
}
}
}
}
...
...
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