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
09fa918f
Commit
09fa918f
authored
May 07, 2022
by
wangsong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix problem
parent
b65852c8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
8 deletions
+8
-8
StatisticsController.java
...den/authcenter/agent/controller/StatisticsController.java
+6
-6
ApiInterceptorConfig.java
...en/authcenter/agent/interceptor/ApiInterceptorConfig.java
+2
-2
No files found.
eden-authcenter-agent/src/main/java/com/chineseall/eden/authcenter/agent/controller/StatisticsController.java
View file @
09fa918f
...
...
@@ -208,12 +208,6 @@ public class StatisticsController {
@ResponseBody
public
MapMessage
authUserTypes
(
@RequestParam
(
value
=
"clientId"
,
required
=
false
)
String
clientId
,
@RequestParam
(
value
=
"latestDays"
,
defaultValue
=
"7"
)
Integer
latestDays
)
{
Map
<
String
,
Object
>
param
=
new
HashMap
<>();
param
.
put
(
"loginSuccessFlag"
,
true
);
if
(
clientId
!=
null
){
param
.
put
(
"clientId"
,
clientId
);
}
int
type
=
1
;
// 1: 日数据 2: 月数据
if
(
latestDays
>
30
){
type
=
2
;
...
...
@@ -223,6 +217,12 @@ public class StatisticsController {
List
<
Map
<
String
,
Object
>>
dataList
=
new
ArrayList
<>();
Date
endDate
=
new
Date
();
while
(
startDate
.
before
(
endDate
)){
Map
<
String
,
Object
>
param
=
new
HashMap
<>();
param
.
put
(
"loginSuccessFlag"
,
true
);
if
(
clientId
!=
null
){
param
.
put
(
"clientId"
,
clientId
);
}
String
dateStr
=
""
;
if
(
Objects
.
equals
(
type
,
1
)){
// 日数据
String
yearMonthDay
=
DateUtils
.
dateToString
(
startDate
,
"yyyy-MM-dd"
);
...
...
eden-authcenter-agent/src/main/java/com/chineseall/eden/authcenter/agent/interceptor/ApiInterceptorConfig.java
View file @
09fa918f
...
...
@@ -17,8 +17,8 @@ public class ApiInterceptorConfig extends WebMvcConfigurerAdapter {
@Override
public
void
addInterceptors
(
InterceptorRegistry
registry
)
{
//注册TestInterceptor拦截器
//
InterceptorRegistration registration = registry.addInterceptor(apiInterceptor);
//
registration.addPathPatterns("/config/**"); //
InterceptorRegistration
registration
=
registry
.
addInterceptor
(
apiInterceptor
);
registration
.
addPathPatterns
(
"/config/**"
);
//
}
@Override
...
...
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