Commit 06ad54bb authored by 钱坤's avatar 钱坤

修复sql查询未判空问题

parent a4069544
......@@ -11,6 +11,7 @@ import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.stream.Collectors;
......@@ -24,6 +25,9 @@ public class ProductForPcServiceImpl implements ProductForPcService {
@Override
public List<Net> getFundNewnet(List<String> list) {
if (CollectionUtils.isEmpty(list)) {
return Collections.emptyList();
}
List<FundNav> fundInfoNewNet = fundInfoCustomMapper.getFundInfoNewNet(list);
if (CollectionUtils.isNotEmpty(fundInfoNewNet)) {
return fundInfoNewNet.stream().map(item -> Net.builder()
......
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