Commit 54582498 authored by 张亚辉's avatar 张亚辉

成立日期

parent 00602ecf
...@@ -187,6 +187,15 @@ public class ProductServiceImpl implements ProductService, Constant { ...@@ -187,6 +187,15 @@ public class ProductServiceImpl implements ProductService, Constant {
Map<String, FundRateMapping> rateMappingMap = getStringFundRateMappingMap(Lists.newArrayList(id)); Map<String, FundRateMapping> rateMappingMap = getStringFundRateMappingMap(Lists.newArrayList(id));
getMinInvestmentShare(rateMappingMap, fundInfo.getId(), vo); getMinInvestmentShare(rateMappingMap, fundInfo.getId(), vo);
long betweenMonth = 0;
if (ObjectUtil.isNotNull(fundInfo.getInceptionDate())) {
betweenMonth = DateUtil.betweenMonth(fundInfo.getInceptionDate(), new Date(), false);
BigDecimal bigDecimal = new BigDecimal(betweenMonth);
BigDecimal bigDecimal2 = new BigDecimal(12);
BigDecimal divide = bigDecimal.divide(bigDecimal2, 1, RoundingMode.HALF_UP);
vo.setInceptionDateYear(divide.toString());
}
FundCountExample example1 = new FundCountExample(); FundCountExample example1 = new FundCountExample();
example1.createCriteria().andFundIdEqualTo(id); example1.createCriteria().andFundIdEqualTo(id);
List<FundCount> fundCounts = this.fundCountMapper.selectByExample(example1); List<FundCount> fundCounts = this.fundCountMapper.selectByExample(example1);
...@@ -202,11 +211,6 @@ public class ProductServiceImpl implements ProductService, Constant { ...@@ -202,11 +211,6 @@ public class ProductServiceImpl implements ProductService, Constant {
vo.setMaxdrawdownIncep(multiply100(fundCount.getMaxdrawdownIncep())); vo.setMaxdrawdownIncep(multiply100(fundCount.getMaxdrawdownIncep()));
vo.setRetIncepA(multiply100(fundCount.getRetIncepA())); vo.setRetIncepA(multiply100(fundCount.getRetIncepA()));
if (ObjectUtil.isNotNull(fundInfo.getInceptionDate())) { if (ObjectUtil.isNotNull(fundInfo.getInceptionDate())) {
long betweenMonth = DateUtil.betweenMonth(fundInfo.getInceptionDate(), new Date(), false);
BigDecimal bigDecimal = new BigDecimal(betweenMonth);
BigDecimal bigDecimal2 = new BigDecimal(12);
BigDecimal divide = bigDecimal.divide(bigDecimal2, 1, RoundingMode.HALF_UP);
vo.setInceptionDateYear(divide.toString());
if (betweenMonth < 1) { if (betweenMonth < 1) {
vo.setMouth("1个月"); vo.setMouth("1个月");
vo.setRetOfMouth(""); vo.setRetOfMouth("");
......
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