Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in
Toggle navigation
T
tamp_public_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_public_fund
Commits
3bc85b38
Commit
3bc85b38
authored
Jan 26, 2021
by
zp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
init
parent
7ed23242
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
23 deletions
+9
-23
ProductOrderController.java
...ava/com/tanpu/fund/controller/ProductOrderController.java
+0
-5
FundInfoCustomMapper.java
...pu/fund/mapper/generator/custom/FundInfoCustomMapper.java
+1
-0
ProductService.java
src/main/java/com/tanpu/fund/service/ProductService.java
+0
-1
ProductServiceImpl.java
.../java/com/tanpu/fund/service/impl/ProductServiceImpl.java
+8
-17
No files found.
src/main/java/com/tanpu/fund/controller/ProductOrderController.java
View file @
3bc85b38
...
@@ -38,9 +38,4 @@ public class ProductOrderController implements ProductOrderApi {
...
@@ -38,9 +38,4 @@ public class ProductOrderController implements ProductOrderApi {
return
CommonResp
.
success
(
this
.
productOrderService
.
getFundLastNet
(
list
));
return
CommonResp
.
success
(
this
.
productOrderService
.
getFundLastNet
(
list
));
}
}
@Override
public
CommonResp
<
List
<
FilePreviewResp
>>
getFilePreviewUrl
(
List
<
String
>
list
)
{
return
CommonResp
.
success
(
this
.
productOrderService
.
getFilePreview
(
list
));
}
}
}
src/main/java/com/tanpu/fund/mapper/generator/custom/FundInfoCustomMapper.java
View file @
3bc85b38
package
com
.
tanpu
.
fund
.
mapper
.
generator
.
custom
;
package
com
.
tanpu
.
fund
.
mapper
.
generator
.
custom
;
import
com.tanpu.common.model.product.resp.FilePreviewResp
;
import
com.tanpu.common.model.product.resp.FilePreviewResp
;
import
com.tanpu.fund.entity.generator.FundNav
;
import
org.apache.ibatis.annotations.MapKey
;
import
org.apache.ibatis.annotations.MapKey
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.apache.ibatis.annotations.Param
;
import
org.apache.ibatis.annotations.Param
;
...
...
src/main/java/com/tanpu/fund/service/ProductService.java
View file @
3bc85b38
...
@@ -48,5 +48,4 @@ public interface ProductService {
...
@@ -48,5 +48,4 @@ public interface ProductService {
DynamicRetreatVO
getDynamicRetreat
(
String
id
);
DynamicRetreatVO
getDynamicRetreat
(
String
id
);
FundDateResp
getFundDateByFundId
(
String
fundId
);
}
}
src/main/java/com/tanpu/fund/service/impl/ProductServiceImpl.java
View file @
3bc85b38
...
@@ -120,9 +120,9 @@ public class ProductServiceImpl implements ProductService, Constant {
...
@@ -120,9 +120,9 @@ public class ProductServiceImpl implements ProductService, Constant {
vo
.
setDesc
(
fundInfo
.
getDescInfo
());
vo
.
setDesc
(
fundInfo
.
getDescInfo
());
List
<
String
>
ls
=
Lists
.
newArrayList
(
fundInfo
.
getPrimaryBenchmarkId
());
List
<
String
>
ls
=
Lists
.
newArrayList
(
fundInfo
.
getPrimaryBenchmarkId
());
// 产品编码
/
*/
/ 产品编码
Map<String, List<IndexesProfile>> indexIdMap = getIndexIdMap(ls);
Map<String, List<IndexesProfile>> indexIdMap = getIndexIdMap(ls);
getProductCode
(
indexIdMap
,
vo
,
fundInfo
);
getProductCode(indexIdMap, vo, fundInfo);
*/
// 最新净值
// 最新净值
vo
.
setNet
(
getNewNet
(
fundInfo
.
getId
()));
vo
.
setNet
(
getNewNet
(
fundInfo
.
getId
()));
...
@@ -1013,10 +1013,10 @@ public class ProductServiceImpl implements ProductService, Constant {
...
@@ -1013,10 +1013,10 @@ public class ProductServiceImpl implements ProductService, Constant {
Map
<
String
,
FundInfo
>
fundInfoMap
=
fundInfos
.
stream
().
collect
(
Collectors
.
toMap
(
FundInfo:
:
getId
,
f
->
f
));
Map
<
String
,
FundInfo
>
fundInfoMap
=
fundInfos
.
stream
().
collect
(
Collectors
.
toMap
(
FundInfo:
:
getId
,
f
->
f
));
// 指数indexId
// 指数indexId
List
<
String
>
ls
=
fundInfos
.
stream
().
filter
(
f
->
StringUtils
.
isNotEmpty
(
f
.
getPrimaryBenchmarkId
()))
/*
List<String> ls = fundInfos.stream().filter(f -> StringUtils.isNotEmpty(f.getPrimaryBenchmarkId()))
.map(FundInfo::getPrimaryBenchmarkId).collect(Collectors.toList());
.map(FundInfo::getPrimaryBenchmarkId).collect(Collectors.toList());
Map
<
String
,
List
<
IndexesProfile
>>
indexIdMap
=
getIndexIdMap
(
ls
);
Map<String, List<IndexesProfile>> indexIdMap = getIndexIdMap(ls);
*/
// 起投金额
// 起投金额
Map
<
String
,
FundRateMapping
>
rateMappingMap
=
getStringFundRateMappingMap
(
list
);
Map
<
String
,
FundRateMapping
>
rateMappingMap
=
getStringFundRateMappingMap
(
list
);
...
@@ -1035,8 +1035,7 @@ public class ProductServiceImpl implements ProductService, Constant {
...
@@ -1035,8 +1035,7 @@ public class ProductServiceImpl implements ProductService, Constant {
return
fundInfoCustomMapper
.
getFundInfoReport
(
ids
);
return
fundInfoCustomMapper
.
getFundInfoReport
(
ids
);
}
}
private
ProductInfoVO
getProductInfoVO
(
Map
<
String
,
FundInfo
>
fundInfoMap
,
private
ProductInfoVO
getProductInfoVO
(
Map
<
String
,
FundInfo
>
fundInfoMap
,
Map
<
String
,
FundRateMapping
>
rateMappingMap
,
Map
<
String
,
List
<
IndexesProfile
>>
indexIdMap
,
Map
<
String
,
FundRateMapping
>
rateMappingMap
,
FundCount
fundCount
,
FundCount
fundCount
,
Map
<
String
,
List
<
ProductLabel
>>
productLabelMap
,
Map
<
String
,
List
<
ProductLabel
>>
productLabelMap
,
LabelUtil
labelUtil
,
LabelUtil
labelUtil
,
...
@@ -1055,7 +1054,7 @@ public class ProductServiceImpl implements ProductService, Constant {
...
@@ -1055,7 +1054,7 @@ public class ProductServiceImpl implements ProductService, Constant {
// 指数id
// 指数id
vo
.
setRatioId
(
fundInfo
.
getPrimaryBenchmarkId
());
vo
.
setRatioId
(
fundInfo
.
getPrimaryBenchmarkId
());
vo
.
setProductName
(
fundInfo
.
getFundShortName
());
vo
.
setProductName
(
fundInfo
.
getFundShortName
());
getProductCode
(
indexIdMap
,
vo
,
fundInfo
);
//
getProductCode(indexIdMap, vo, fundInfo);
vo
.
setOpenDay
(
fundInfo
.
getOpenDay
());
vo
.
setOpenDay
(
fundInfo
.
getOpenDay
());
vo
.
setDesc
(
fundInfo
.
getDescInfo
());
vo
.
setDesc
(
fundInfo
.
getDescInfo
());
...
@@ -1102,14 +1101,14 @@ public class ProductServiceImpl implements ProductService, Constant {
...
@@ -1102,14 +1101,14 @@ public class ProductServiceImpl implements ProductService, Constant {
return
net
;
return
net
;
}
}
private
void
getProductCode
(
Map
<
String
,
List
<
IndexesProfile
>>
indexIdMap
,
ProductInfoVO
vo
,
FundInfo
fundInfo
)
{
/*
private void getProductCode(Map<String, List<IndexesProfile>> indexIdMap, ProductInfoVO vo, FundInfo fundInfo) {
if (CollectionUtils.isNotEmpty(indexIdMap.get(fundInfo.getPrimaryBenchmarkId()))) {
if (CollectionUtils.isNotEmpty(indexIdMap.get(fundInfo.getPrimaryBenchmarkId()))) {
String indexCode = indexIdMap.get(fundInfo.getPrimaryBenchmarkId()).get(0).getIndexCode();
String indexCode = indexIdMap.get(fundInfo.getPrimaryBenchmarkId()).get(0).getIndexCode();
if (StringUtils.isNotEmpty(indexCode)) {
if (StringUtils.isNotEmpty(indexCode)) {
vo.setProductCode(indexCode.substring(0, indexCode.indexOf(".")));
vo.setProductCode(indexCode.substring(0, indexCode.indexOf(".")));
}
}
}
}
}
}
*/
private
Map
<
String
,
FundRateMapping
>
getStringFundRateMappingMap
(
List
<
String
>
ls
)
{
private
Map
<
String
,
FundRateMapping
>
getStringFundRateMappingMap
(
List
<
String
>
ls
)
{
if
(
CollectionUtils
.
isEmpty
(
ls
))
{
if
(
CollectionUtils
.
isEmpty
(
ls
))
{
...
@@ -1229,12 +1228,4 @@ public class ProductServiceImpl implements ProductService, Constant {
...
@@ -1229,12 +1228,4 @@ public class ProductServiceImpl implements ProductService, Constant {
return
vo
;
return
vo
;
}
}
@Override
public
FundDateResp
getFundDateByFundId
(
String
fundId
)
{
FundDateResp
resp
=
new
FundDateResp
();
FundDateExample
example
=
new
FundDateExample
();
example
.
createCriteria
().
andFundIdEqualTo
(
fundId
).
andTypeIn
(
Lists
.
newArrayList
(
1
,
2
)).
andDateGreaterThanOrEqualTo
(
DateUtil
.
beginOfDay
(
new
Date
()));
example
.
setOrderByClause
(
" date limit 1"
);
return
resp
;
}
}
}
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