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
c0acea28
Commit
c0acea28
authored
Feb 18, 2022
by
钱坤
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
查询最新净值,都改为用新方案
parent
7f656595
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
ProductForPcServiceImpl.java
.../com/tanpu/fund/service/impl/ProductForPcServiceImpl.java
+4
-1
No files found.
src/main/java/com/tanpu/fund/service/impl/ProductForPcServiceImpl.java
View file @
c0acea28
...
...
@@ -21,13 +21,16 @@ import java.util.stream.Collectors;
public
class
ProductForPcServiceImpl
implements
ProductForPcService
{
@Resource
private
FundInfoCustomMapper
fundInfoCustomMapper
;
@Resource
private
FundLatestNavService
fundLatestNavService
;
@Override
public
List
<
Net
>
getFundNewnet
(
List
<
String
>
list
)
{
if
(
CollectionUtils
.
isEmpty
(
list
))
{
return
new
ArrayList
<>();
}
List
<
FundNav
>
fundInfoNewNet
=
fundInfoCustomMapper
.
getFundInfoNewNet
(
list
);
// 原先的老sql耗时太大,这里用新方案
List
<
FundNav
>
fundInfoNewNet
=
fundLatestNavService
.
getLatestNavBy
(
list
);
if
(
CollectionUtils
.
isNotEmpty
(
fundInfoNewNet
))
{
return
fundInfoNewNet
.
stream
().
map
(
item
->
Net
.
builder
()
.
fundId
(
item
.
getFundId
())
...
...
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