Commit d297ec86 authored by zp's avatar zp

自选

parent c7d8df64
...@@ -371,7 +371,7 @@ public class ProductPrivateServiceImpl implements ProductPrivateService, Constan ...@@ -371,7 +371,7 @@ public class ProductPrivateServiceImpl implements ProductPrivateService, Constan
} }
// 其他基金信息 // 其他基金信息
otherFundInfo(vo, id, page); otherFundInfo(vo, id, ifaId, page);
if (StringUtils.isEmpty(ifaId)) { if (StringUtils.isEmpty(ifaId)) {
vo.setIsCheck(0); vo.setIsCheck(0);
...@@ -394,7 +394,7 @@ public class ProductPrivateServiceImpl implements ProductPrivateService, Constan ...@@ -394,7 +394,7 @@ public class ProductPrivateServiceImpl implements ProductPrivateService, Constan
return personnelInfos.stream().collect(Collectors.toMap(PersonnelInfo::getId, s -> s)); return personnelInfos.stream().collect(Collectors.toMap(PersonnelInfo::getId, s -> s));
} }
private void otherFundInfo(FundCompanyVO vo, String id, Pageable page) { private void otherFundInfo(FundCompanyVO vo, String id, String ifaId, Pageable page) {
FundInfoExample example1 = new FundInfoExample(); FundInfoExample example1 = new FundInfoExample();
example1.createCriteria().andTrustIdEqualTo(id).andDeleteTagEqualTo(ZERO_NUM); example1.createCriteria().andTrustIdEqualTo(id).andDeleteTagEqualTo(ZERO_NUM);
...@@ -414,6 +414,15 @@ public class ProductPrivateServiceImpl implements ProductPrivateService, Constan ...@@ -414,6 +414,15 @@ public class ProductPrivateServiceImpl implements ProductPrivateService, Constan
List<FundCount> fundCounts = this.fundCountMapper.selectByExample(example2); List<FundCount> fundCounts = this.fundCountMapper.selectByExample(example2);
if (CollectionUtils.isNotEmpty(fundCounts)) { if (CollectionUtils.isNotEmpty(fundCounts)) {
Set<String> isCheckSet;
if (StringUtils.isEmpty(ifaId)) {
isCheckSet = new HashSet<>(0);
} else {
isCheckSet = Sets.newHashSet(diagnose.getFundCollectInfo(ExternalReq.builder().ids(list).ifaId(ifaId).build()).getAttributes());
}
fundCounts.sort(Comparator.comparing(FundCount::getRetIncep).reversed()); fundCounts.sort(Comparator.comparing(FundCount::getRetIncep).reversed());
FundCount fundCount = fundCounts.get(0); FundCount fundCount = fundCounts.get(0);
...@@ -437,6 +446,7 @@ public class ProductPrivateServiceImpl implements ProductPrivateService, Constan ...@@ -437,6 +446,7 @@ public class ProductPrivateServiceImpl implements ProductPrivateService, Constan
FundInfoVO vo1 = new FundInfoVO(); FundInfoVO vo1 = new FundInfoVO();
String fundId = f.getFundId(); String fundId = f.getFundId();
vo1.setFundId(fundId); vo1.setFundId(fundId);
vo1.setIsCheck(isCheckSet.contains(fundId) ? 1 : 0);
vo1.setBonusTypeName(ProTypeEnums.getName(mapFundInfo.get(fundId).getFundType())); vo1.setBonusTypeName(ProTypeEnums.getName(mapFundInfo.get(fundId).getFundType()));
vo1.setBonusType(mapFundInfo.get(fundId).getFundType()); vo1.setBonusType(mapFundInfo.get(fundId).getFundType());
vo1.setRetIncep(multiply100(f.getRetIncep())); vo1.setRetIncep(multiply100(f.getRetIncep()));
......
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