Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
sh-ds
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
李良停
sh-ds
Commits
b0757e95
Commit
b0757e95
authored
Jan 30, 2021
by
喻春霖
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
整理登录成功的数据
parent
d247208b
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
5 deletions
+12
-5
LogStatisticsController.java
.../authcenter/agent/controller/LogStatisticsController.java
+3
-1
AuthLogDao.java
...va/com/chineseall/eden/authcenter/log/dao/AuthLogDao.java
+6
-1
AuthLogService.java
...hineseall/eden/authcenter/log/service/AuthLogService.java
+1
-1
AuthLogServiceImpl.java
.../eden/authcenter/log/service/impl/AuthLogServiceImpl.java
+2
-2
No files found.
eden-authcenter-agent/src/main/java/com/chineseall/eden/authcenter/agent/controller/LogStatisticsController.java
View file @
b0757e95
...
...
@@ -393,7 +393,9 @@ public class LogStatisticsController {
public
MapMessage
sourcedata
()
{
int
i
=
1
;
for
(;;){
List
<
AuthLog
>
authLogs
=
authLogService
.
listLogWithPage
(
i
,
100
);
Map
<
String
,
Object
>
param
=
new
HashMap
<>();
param
.
put
(
"loginSuccessFlag"
,
true
);
List
<
AuthLog
>
authLogs
=
authLogService
.
listLogWithPage
(
i
,
100
,
param
);
if
(
CollectionUtils
.
isEmpty
(
authLogs
)){
break
;
}
...
...
eden-authcenter-log/src/main/java/com/chineseall/eden/authcenter/log/dao/AuthLogDao.java
View file @
b0757e95
...
...
@@ -71,8 +71,13 @@ public class AuthLogDao extends StaticCacheDimensionDocumentMongoDao<AuthLog, St
return
count
(
query
);
}
public
List
<
AuthLog
>
listLogWithPage
(
int
pageNo
,
int
pageSize
)
{
public
List
<
AuthLog
>
listLogWithPage
(
int
pageNo
,
int
pageSize
,
Map
<
String
,
Object
>
prams
)
{
Criteria
criteria
=
new
Criteria
();
if
(
null
!=
prams
&&
prams
.
size
()
>
0
){
prams
.
forEach
((
k
,
v
)->{
criteria
.
and
(
k
).
is
(
v
);
});
}
Query
query
=
new
Query
(
criteria
);
Sort
sort
=
new
Sort
(
Sort
.
Direction
.
ASC
,
"createTime"
);
Pageable
pageable
=
new
PageRequest
(
pageNo
-
1
,
pageSize
,
sort
);
...
...
eden-authcenter-log/src/main/java/com/chineseall/eden/authcenter/log/service/AuthLogService.java
View file @
b0757e95
...
...
@@ -21,5 +21,5 @@ public interface AuthLogService {
void
replace
(
AuthLog
authLog
);
public
List
<
AuthLog
>
listLogWithPage
(
int
pageNo
,
int
pageSize
);
public
List
<
AuthLog
>
listLogWithPage
(
int
pageNo
,
int
pageSize
,
Map
<
String
,
Object
>
prams
);
}
eden-authcenter-log/src/main/java/com/chineseall/eden/authcenter/log/service/impl/AuthLogServiceImpl.java
View file @
b0757e95
...
...
@@ -60,7 +60,7 @@ public class AuthLogServiceImpl implements AuthLogService {
}
@Override
public
List
<
AuthLog
>
listLogWithPage
(
int
pageNo
,
int
pageSize
)
{
return
authLogDao
.
listLogWithPage
(
pageNo
,
pageSize
);
public
List
<
AuthLog
>
listLogWithPage
(
int
pageNo
,
int
pageSize
,
Map
<
String
,
Object
>
prams
)
{
return
authLogDao
.
listLogWithPage
(
pageNo
,
pageSize
,
prams
);
}
}
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