Commit 8ed8a405 authored by 钱坤's avatar 钱坤

净值缓存刷新加后门触发入口

parent 761e3df7
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());
}
}
...@@ -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);
} }
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