Commit 22028f6a authored by 钱坤's avatar 钱坤

理财师录入私有基金净值时候,判空

parent c7787b57
...@@ -1797,8 +1797,8 @@ public class ProductServiceImpl implements ProductService, Constant { ...@@ -1797,8 +1797,8 @@ public class ProductServiceImpl implements ProductService, Constant {
@Override @Override
public CommonResp<List<FundNavMessage>> importNetCheckSave(IfaNetImportReq req) { public CommonResp<List<FundNavMessage>> importNetCheckSave(IfaNetImportReq req) {
if (CollectionUtils.isEmpty(req.getFundNavMessages())) { if (req.getFundNavMessages() == null) {
return CommonResp.success(); req.setFundNavMessages(new ArrayList<>());
} }
Map<Long, IfaImportedFundNav> ifaNavMap; Map<Long, IfaImportedFundNav> ifaNavMap;
if (StringUtils.isEmpty(req.getFundId())) { if (StringUtils.isEmpty(req.getFundId())) {
...@@ -1807,7 +1807,7 @@ public class ProductServiceImpl implements ProductService, Constant { ...@@ -1807,7 +1807,7 @@ public class ProductServiceImpl implements ProductService, Constant {
ifaNavMap = getIfaNavMap(req.getFundId()); ifaNavMap = getIfaNavMap(req.getFundId());
} }
List<FundNavMessage> resultMessage = new ArrayList<>(req.getFundNavMessages().size() * 2); List<FundNavMessage> resultMessage = new ArrayList<>(req.getFundNavMessages().size() * 2 + 1);
AtomicBoolean errorStatus = new AtomicBoolean(false); AtomicBoolean errorStatus = new AtomicBoolean(false);
req.setFundNavMessages(req.getFundNavMessages() req.setFundNavMessages(req.getFundNavMessages()
......
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