Commit 761e3df7 authored by 钱坤's avatar 钱坤

resp转json一下

parent db708a78
......@@ -2,6 +2,7 @@ package com.tanpu.fund.job;
import com.tanpu.common.resp.CommonResp;
import com.tanpu.common.utils.DateUtils;
import com.tanpu.common.utils.JsonUtil;
import com.tanpu.common.utils.RedisUtils;
import com.tanpu.fund.feign.hangjia.FeignForHangjia;
import com.tanpu.fund.service.impl.FundLatestNavService;
......@@ -42,7 +43,7 @@ public class FundNavCacheJob {
for (int i = 0; i < repeat; i++) {
log.info("开始刷新ifa=" + id + "的基金净值缓存, repeat: " + repeat);
CommonResp resp = feignForHangjia.reloadFundNav4Ifa(sign, id);
log.info("ifa=" + id + "的基金净值缓存刷新结果: " + resp);
log.info("ifa=" + id + "的基金净值缓存刷新结果: " + JsonUtil.toJson(resp));
Thread.sleep(500);
}
Thread.sleep(1000);
......@@ -59,7 +60,7 @@ public class FundNavCacheJob {
log.info("开始刷新使用最多基金净值缓存, limit: " + limit);
sign = DateUtils.format(DateUtils.nowDate()).replace(" ", "");
CommonResp resp = feignForHangjia.reloadMostUsedFundNav(sign, limit);
log.info("使用最多基金净值缓存刷新结果: " + resp);
log.info("使用最多基金净值缓存刷新结果: " + JsonUtil.toJson(resp));
Thread.sleep(500);
}
} catch (Exception e) {
......
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