From 92379b0a9798cba9e42909e007b3c9d808ad8c11 Mon Sep 17 00:00:00 2001
From: qiankun <qiankun@wealthgrow.cn>
Date: Fri, 23 Jul 2021 14:57:00 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=9C=BA=E6=9E=84=E4=BA=A7?=
 =?UTF-8?q?=E5=93=81=E6=B1=A0=E8=8E=B7=E5=8F=96=E6=9C=80=E6=96=B0=E5=87=80?=
 =?UTF-8?q?=E5=80=BC=E8=B0=83=E9=94=99=E5=87=BD=E6=95=B0=E9=97=AE=E9=A2=98?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 .../java/com/tanpu/fund/controller/ProductForPcController.java | 2 +-
 .../com/tanpu/fund/service/impl/ProductForPcServiceImpl.java   | 3 +++
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/main/java/com/tanpu/fund/controller/ProductForPcController.java b/src/main/java/com/tanpu/fund/controller/ProductForPcController.java
index 3b675e4..3fadbcc 100644
--- a/src/main/java/com/tanpu/fund/controller/ProductForPcController.java
+++ b/src/main/java/com/tanpu/fund/controller/ProductForPcController.java
@@ -28,6 +28,6 @@ public class ProductForPcController implements ProductForPcApi {
 
     @Override
     public CommonResp<List<Net>> getOrgfundNewnet(List<String> list) {
-        return CommonResp.success(productForPcService.getPrivatefundNewnet(list));
+        return CommonResp.success(productForPcService.getOrgfundNewnet(list));
     }
 }
diff --git a/src/main/java/com/tanpu/fund/service/impl/ProductForPcServiceImpl.java b/src/main/java/com/tanpu/fund/service/impl/ProductForPcServiceImpl.java
index f125a55..1ad831e 100644
--- a/src/main/java/com/tanpu/fund/service/impl/ProductForPcServiceImpl.java
+++ b/src/main/java/com/tanpu/fund/service/impl/ProductForPcServiceImpl.java
@@ -56,6 +56,9 @@ public class ProductForPcServiceImpl implements ProductForPcService {
 
     @Override
     public List<Net> getOrgfundNewnet(List<String> list) {
+        if (CollectionUtils.isEmpty(list)) {
+            return Collections.emptyList();
+        }
         List<FundNav> fundInfoNewNet = fundInfoCustomMapper.getOrgFundInfoNewNet(list);
         if (CollectionUtils.isNotEmpty(fundInfoNewNet)) {
             return fundInfoNewNet.stream().map(item -> Net.builder()
-- 
2.18.1