Commit 2c26a3a6 authored by renjie's avatar renjie

ipcount bug

parent 6084f5b9
......@@ -390,8 +390,8 @@ public class AdministratorServiceImpl implements AdministratorService {
Instant.now().minus(1, ChronoUnit.DAYS).toEpochMilli(),
Instant.now().toEpochMilli());
if (ipCountRecord != null) {
ipCountQueryResultDto.setIpCount_all(ipCountRecord.getIp_all());
ipCountQueryResultDto.setIpCount_using(ipCountRecord.getIp_using());
ipCountQueryResultDto.setIpCount_yesterday_all(ipCountRecord.getIp_all());
ipCountQueryResultDto.setIpCount_yesterday_using(ipCountRecord.getIp_using());
}
} else {
long ipcount_using = ipResourceRepository.countAllByOwnerAndIsDeletedAndValidTimeGreaterThan(username, false, Instant.now().toEpochMilli());
......@@ -402,8 +402,8 @@ public class AdministratorServiceImpl implements AdministratorService {
Instant.now().minus(1, ChronoUnit.DAYS).toEpochMilli(),
Instant.now().toEpochMilli());
if (ipCountRecord != null) {
ipCountQueryResultDto.setIpCount_all(ipCountRecord.getIp_all());
ipCountQueryResultDto.setIpCount_using(ipCountRecord.getIp_using());
ipCountQueryResultDto.setIpCount_yesterday_all(ipCountRecord.getIp_all());
ipCountQueryResultDto.setIpCount_yesterday_using(ipCountRecord.getIp_using());
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment