Commit 42a3ac39 authored by 钱坤's avatar 钱坤

修正私募查找同类基金,无满足条件却报错问题。

parent 74e20400
...@@ -1660,6 +1660,9 @@ public class ProductServiceImpl implements ProductService, Constant { ...@@ -1660,6 +1660,9 @@ public class ProductServiceImpl implements ProductService, Constant {
public List<FundSameResp> querySamefund(String fundId) { public List<FundSameResp> querySamefund(String fundId) {
//查询同类基金 //查询同类基金
FundInfo fundInfo = fundInfoMapper.selectByPrimaryKey(fundId); FundInfo fundInfo = fundInfoMapper.selectByPrimaryKey(fundId);
if (fundInfo == null || fundInfo.getSubstrategy() == null) {
return Collections.emptyList();
}
PageMethod.startPage(1, 10); PageMethod.startPage(1, 10);
FundCountExample example = new FundCountExample(); FundCountExample example = new FundCountExample();
......
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