|
@@ -650,6 +650,9 @@ public class EmailParseService {
|
|
|
&& !fundNavDTO.getParseStatus().equals(NavParseStatusConst.NOT_MATCH) && !fundNavDTO.getParseStatus().equals(NavParseStatusConst.NAV_NEGATIVE) ? 1 : 0;
|
|
|
if (CollUtil.isNotEmpty(fundNavDTO.getFundIdList())) {
|
|
|
for (String fundId : fundNavDTO.getFundIdList()) {
|
|
|
+ if(nav == null && cumulativeNavWithdrawal == null){
|
|
|
+ continue;
|
|
|
+ }
|
|
|
EmailFundNavDO emailFundNavDO = new EmailFundNavDO();
|
|
|
emailFundNavDO.setFileId(fileId);
|
|
|
emailFundNavDO.setIsStored(isStored);
|
|
@@ -669,6 +672,9 @@ public class EmailParseService {
|
|
|
fundNavDOList.add(emailFundNavDO);
|
|
|
}
|
|
|
} else {
|
|
|
+ if(nav == null && cumulativeNavWithdrawal == null){
|
|
|
+ return fundNavDOList;
|
|
|
+ }
|
|
|
EmailFundNavDO emailFundNavDO = new EmailFundNavDO();
|
|
|
emailFundNavDO.setFileId(fileId);
|
|
|
emailFundNavDO.setPriceDate(priceDate);
|
|
@@ -715,7 +721,7 @@ public class EmailParseService {
|
|
|
|
|
|
private void setNavParseStatus(EmailFundNavDTO fundNavDTO, String emailTitle) {
|
|
|
// 1.单位净值或累计净值缺失
|
|
|
- if (StrUtil.isBlank(fundNavDTO.getNav()) || StrUtil.isBlank(fundNavDTO.getCumulativeNavWithdrawal())) {
|
|
|
+ if ((StrUtil.isBlank(fundNavDTO.getNav()) || StrUtil.isBlank(fundNavDTO.getCumulativeNavWithdrawal()) ) && StrUtil.isBlank(fundNavDTO.getAssetNet())) {
|
|
|
fundNavDTO.setParseStatus(NavParseStatusConst.NAV_DEFICIENCY);
|
|
|
return;
|
|
|
}
|