Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in
Toggle navigation
T
tamp_fund
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
周鹏
tamp_fund
Commits
8ed8a405
Commit
8ed8a405
authored
Apr 30, 2022
by
钱坤
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
净值缓存刷新加后门触发入口
parent
761e3df7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
3 deletions
+28
-3
BackendController.java
...ain/java/com/tanpu/fund/controller/BackendController.java
+25
-0
FeignForHangjia.java
...in/java/com/tanpu/fund/feign/hangjia/FeignForHangjia.java
+3
-3
No files found.
src/main/java/com/tanpu/fund/controller/BackendController.java
0 → 100644
View file @
8ed8a405
package
com
.
tanpu
.
fund
.
controller
;
import
com.tanpu.common.resp.CommonResp
;
import
com.tanpu.fund.job.FundNavCacheJob
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.ResponseBody
;
import
org.springframework.web.bind.annotation.RestController
;
import
javax.annotation.Resource
;
@RestController
@Slf4j
public
class
BackendController
{
@Resource
private
FundNavCacheJob
fundNavCacheJob
;
@GetMapping
(
"/cache/launch/nav"
)
@ResponseBody
public
CommonResp
launchFundNavReload
()
{
this
.
fundNavCacheJob
.
execute
();
return
CommonResp
.
success
(
System
.
currentTimeMillis
());
}
}
src/main/java/com/tanpu/fund/feign/hangjia/FeignForHangjia.java
View file @
8ed8a405
...
@@ -10,13 +10,13 @@ import org.springframework.web.bind.annotation.RequestParam;
...
@@ -10,13 +10,13 @@ import org.springframework.web.bind.annotation.RequestParam;
import
java.util.List
;
import
java.util.List
;
//@FeignClient(value = "service-product", url = "http://127.0.0.1:8194/product")
//@FeignClient(value = "service-product", url = "http://127.0.0.1:8194/product")
@FeignClient
(
value
=
"service-hangjia-back"
,
url
=
"${tanpu.hangjia-back.svc:}"
,
path
=
"/
py/jijinhangjia
"
)
@FeignClient
(
value
=
"service-hangjia-back"
,
url
=
"${tanpu.hangjia-back.svc:}"
,
path
=
"/
api
"
)
public
interface
FeignForHangjia
{
public
interface
FeignForHangjia
{
@GetMapping
(
"/
api/
tamp/cache/fund/nav/reload"
)
@GetMapping
(
"/tamp/cache/fund/nav/reload"
)
CommonResp
reloadFundNav4Ifa
(
@RequestParam
(
"sign"
)
String
sign
,
@RequestParam
(
"ifa_id"
)
String
ifaId
);
CommonResp
reloadFundNav4Ifa
(
@RequestParam
(
"sign"
)
String
sign
,
@RequestParam
(
"ifa_id"
)
String
ifaId
);
@GetMapping
(
"/
api/
tamp/cache/fund/nav/reload"
)
@GetMapping
(
"/tamp/cache/fund/nav/reload"
)
CommonResp
reloadMostUsedFundNav
(
@RequestParam
(
"sign"
)
String
sign
,
@RequestParam
(
"limit"
)
int
limit
);
CommonResp
reloadMostUsedFundNav
(
@RequestParam
(
"sign"
)
String
sign
,
@RequestParam
(
"limit"
)
int
limit
);
}
}
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