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
761e3df7
Commit
761e3df7
authored
Apr 30, 2022
by
钱坤
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
resp转json一下
parent
db708a78
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
FundNavCacheJob.java
src/main/java/com/tanpu/fund/job/FundNavCacheJob.java
+3
-2
No files found.
src/main/java/com/tanpu/fund/job/FundNavCacheJob.java
View file @
761e3df7
...
@@ -2,6 +2,7 @@ package com.tanpu.fund.job;
...
@@ -2,6 +2,7 @@ package com.tanpu.fund.job;
import
com.tanpu.common.resp.CommonResp
;
import
com.tanpu.common.resp.CommonResp
;
import
com.tanpu.common.utils.DateUtils
;
import
com.tanpu.common.utils.DateUtils
;
import
com.tanpu.common.utils.JsonUtil
;
import
com.tanpu.common.utils.RedisUtils
;
import
com.tanpu.common.utils.RedisUtils
;
import
com.tanpu.fund.feign.hangjia.FeignForHangjia
;
import
com.tanpu.fund.feign.hangjia.FeignForHangjia
;
import
com.tanpu.fund.service.impl.FundLatestNavService
;
import
com.tanpu.fund.service.impl.FundLatestNavService
;
...
@@ -42,7 +43,7 @@ public class FundNavCacheJob {
...
@@ -42,7 +43,7 @@ public class FundNavCacheJob {
for
(
int
i
=
0
;
i
<
repeat
;
i
++)
{
for
(
int
i
=
0
;
i
<
repeat
;
i
++)
{
log
.
info
(
"开始刷新ifa="
+
id
+
"的基金净值缓存, repeat: "
+
repeat
);
log
.
info
(
"开始刷新ifa="
+
id
+
"的基金净值缓存, repeat: "
+
repeat
);
CommonResp
resp
=
feignForHangjia
.
reloadFundNav4Ifa
(
sign
,
id
);
CommonResp
resp
=
feignForHangjia
.
reloadFundNav4Ifa
(
sign
,
id
);
log
.
info
(
"ifa="
+
id
+
"的基金净值缓存刷新结果: "
+
resp
);
log
.
info
(
"ifa="
+
id
+
"的基金净值缓存刷新结果: "
+
JsonUtil
.
toJson
(
resp
)
);
Thread
.
sleep
(
500
);
Thread
.
sleep
(
500
);
}
}
Thread
.
sleep
(
1000
);
Thread
.
sleep
(
1000
);
...
@@ -59,7 +60,7 @@ public class FundNavCacheJob {
...
@@ -59,7 +60,7 @@ public class FundNavCacheJob {
log
.
info
(
"开始刷新使用最多基金净值缓存, limit: "
+
limit
);
log
.
info
(
"开始刷新使用最多基金净值缓存, limit: "
+
limit
);
sign
=
DateUtils
.
format
(
DateUtils
.
nowDate
()).
replace
(
" "
,
""
);
sign
=
DateUtils
.
format
(
DateUtils
.
nowDate
()).
replace
(
" "
,
""
);
CommonResp
resp
=
feignForHangjia
.
reloadMostUsedFundNav
(
sign
,
limit
);
CommonResp
resp
=
feignForHangjia
.
reloadMostUsedFundNav
(
sign
,
limit
);
log
.
info
(
"使用最多基金净值缓存刷新结果: "
+
resp
);
log
.
info
(
"使用最多基金净值缓存刷新结果: "
+
JsonUtil
.
toJson
(
resp
)
);
Thread
.
sleep
(
500
);
Thread
.
sleep
(
500
);
}
}
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
...
...
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