Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
huhu-partner
Project
Overview
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
guanchen
huhu-partner
Commits
8e84f6b9
Commit
8e84f6b9
authored
Jul 22, 2019
by
guanchen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加接口 支持按天重跑拓展用户数
parent
b1787e42
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
AgentController.java
...a/com/lanren/huhu/partner/controller/AgentController.java
+11
-0
No files found.
src/main/java/com/lanren/huhu/partner/controller/AgentController.java
View file @
8e84f6b9
...
@@ -5,6 +5,7 @@ import com.lanren.huhu.partner.model.Agent;
...
@@ -5,6 +5,7 @@ import com.lanren.huhu.partner.model.Agent;
import
com.lanren.huhu.partner.model.AgentResponse
;
import
com.lanren.huhu.partner.model.AgentResponse
;
import
com.lanren.huhu.partner.model.ParentAgent
;
import
com.lanren.huhu.partner.model.ParentAgent
;
import
com.lanren.huhu.partner.result.Result
;
import
com.lanren.huhu.partner.result.Result
;
import
com.lanren.huhu.partner.schedule.AgentDailyExpandTask
;
import
org.slf4j.Logger
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
org.slf4j.LoggerFactory
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
...
@@ -25,6 +26,8 @@ public class AgentController {
...
@@ -25,6 +26,8 @@ public class AgentController {
@Autowired
@Autowired
AgentManager
agentManager
;
AgentManager
agentManager
;
@Autowired
AgentDailyExpandTask
agentDailyExpandTask
;
@RequestMapping
(
value
=
"/level"
,
method
=
RequestMethod
.
POST
)
@RequestMapping
(
value
=
"/level"
,
method
=
RequestMethod
.
POST
)
public
Result
<
AgentResponse
>
getAgentLevel
(
@RequestBody
@Valid
Agent
agent
,
@RequestHeader
HttpHeaders
headers
)
{
public
Result
<
AgentResponse
>
getAgentLevel
(
@RequestBody
@Valid
Agent
agent
,
@RequestHeader
HttpHeaders
headers
)
{
...
@@ -55,4 +58,12 @@ public class AgentController {
...
@@ -55,4 +58,12 @@ public class AgentController {
}
}
return
agentManager
.
getPingtuiParentList
(
agent
.
getAgentId
());
return
agentManager
.
getPingtuiParentList
(
agent
.
getAgentId
());
}
}
@RequestMapping
(
value
=
"/expand/{dat}"
,
method
=
RequestMethod
.
GET
)
public
Result
<
String
>
updateOneDayExpand
(
@PathVariable
(
"dat"
)
String
dat
)
{
agentDailyExpandTask
.
runSummary
(
dat
);
logger
.
info
(
"============>"
+
Thread
.
currentThread
().
getName
());
Result
<
String
>
result
=
new
Result
<
String
>();
result
.
setData
(
"异步,正在执行刷新......"
);
return
result
;
}
}
}
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