Commit 0085289b authored by zp's avatar zp

配置1

parent 0136b947
...@@ -78,9 +78,15 @@ public class ProductServiceImpl implements ProductService, Constant { ...@@ -78,9 +78,15 @@ public class ProductServiceImpl implements ProductService, Constant {
@Resource @Resource
private FundInfoCustomMapper fundInfoCustomMapper; private FundInfoCustomMapper fundInfoCustomMapper;
@Resource
private FundRiskStatsMapper fundRiskStatsMapper;
@Resource @Resource
private FeignClientForFatools fatools; private FeignClientForFatools fatools;
@Resource
private FundRateMappingMapper fundRateMappingMapper;
@Override @Override
public Page<ProductInfoVO> getProductList(ProductInfoReq req) { public Page<ProductInfoVO> getProductList(ProductInfoReq req) {
...@@ -1026,7 +1032,7 @@ public class ProductServiceImpl implements ProductService, Constant { ...@@ -1026,7 +1032,7 @@ public class ProductServiceImpl implements ProductService, Constant {
// 查询研报信息是否有研报 // 查询研报信息是否有研报
Map<String, Object> fundInfoReport = getFundReport(Lists.newArrayList(fundInfoMap.keySet())); Map<String, Object> fundInfoReport = getFundReport(Lists.newArrayList(fundInfoMap.keySet()));
return fundCounts.stream().map(p -> getProductInfoVO(fundInfoMap, indexIdMap, rateMappingMap, p, productLabelMap, labelUtil, fundInfoReport.keySet())) return fundCounts.stream().map(p -> getProductInfoVO(fundInfoMap, rateMappingMap, p, productLabelMap, labelUtil, fundInfoReport.keySet()))
.collect(Collectors.toList()); .collect(Collectors.toList());
} }
...@@ -1204,7 +1210,7 @@ public class ProductServiceImpl implements ProductService, Constant { ...@@ -1204,7 +1210,7 @@ public class ProductServiceImpl implements ProductService, Constant {
example.setOrderByClause("end_date desc"); example.setOrderByClause("end_date desc");
DynamicRetreatVO vo = new DynamicRetreatVO(); DynamicRetreatVO vo = new DynamicRetreatVO();
/*List<FundRiskStats> fundRiskStats = this.fundRiskStatsMapper.selectByExample(example); List<FundRiskStats> fundRiskStats = this.fundRiskStatsMapper.selectByExample(example);
if (CollectionUtils.isNotEmpty(fundRiskStats)) { if (CollectionUtils.isNotEmpty(fundRiskStats)) {
List<Net> nets = new ArrayList<>(); List<Net> nets = new ArrayList<>();
Optional<FundRiskStats> maxOptional = fundRiskStats.stream() Optional<FundRiskStats> maxOptional = fundRiskStats.stream()
...@@ -1224,7 +1230,7 @@ public class ProductServiceImpl implements ProductService, Constant { ...@@ -1224,7 +1230,7 @@ public class ProductServiceImpl implements ProductService, Constant {
.orElse(null) .orElse(null)
); );
vo.setByTime(nets.get(nets.size() - 1).getNetDate()); vo.setByTime(nets.get(nets.size() - 1).getNetDate());
}*/ }
return vo; return vo;
} }
......
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