Commit 2fdb4589 authored by 张亚辉's avatar 张亚辉

私有基金净值

parent db1394cf
......@@ -1374,8 +1374,7 @@ public class ProductServiceImpl implements ProductService, Constant {
detailResp.setNear1YearProfit(BigDecimalUtil.toString(fundCountList.get(0).getRet1y(), 2));
detailResp.setRet1y(BigDecimalUtil.toString(fundCountList.get(0).getRet1y(), 2));
detailResp.setRetYtd(BigDecimalUtil.toString(fundCountList.get(0).getRetYtd(), 2));
detailResp.setNet(Net.builder().netDate(fundCountList.get(0).getPriceDate().getTime())
.netValue(BigDecimalUtil.toString(fundCountList.get(0).getNetNav(), 4)).build());
}
//子策略名称
......@@ -1389,6 +1388,18 @@ public class ProductServiceImpl implements ProductService, Constant {
}
}
//查询基金净值
{
PageMethod.startPage(1, 1);
IfaImportedFundNavExample navExample = new IfaImportedFundNavExample();
navExample.createCriteria().andFundIdEqualTo(id).andDeleteTagEqualTo(BizEnums.DeleteTag.tag_init);
List<IfaImportedFundNav> navList = ifaImportedFundNavMapper.selectByExample(navExample);
if (CollectionUtils.isNotEmpty(navList)) {
detailResp.setNet(Net.builder().netDate(navList.get(0).getPriceDate().getTime())
.netValue(BigDecimalUtil.toString(navList.get(0).getCumulativeNav(), 4)).build());
}
}
detailResp.setProductType(Constant.THREE_NUM);
return detailResp;
......
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