Browse Source

估值表优化

chenjianhua 2 days ago
parent
commit
a9272a2152

+ 7 - 0
service-daq/src/main/java/com/simuwang/daq/service/EmailParseService.java

@@ -754,6 +754,13 @@ public class EmailParseService {
         }catch (Exception e){
             log.error(e.getMessage(),e);
         }
+        // 2.单位净值或累计净值不大于0
+        if (StrUtil.isNotBlank(fundNavDTO.getNav()) && StrUtil.isNotBlank(fundNavDTO.getCumulativeNavWithdrawal())) {
+            if(fundNavDTO.getNav().compareTo("0") <= 0 || fundNavDTO.getCumulativeNavWithdrawal().compareTo("0") <= 0) {
+                fundNavDTO.setParseStatus(NavParseStatusConst.NAV_NEGATIVE);
+                return;
+            }
+        }
         // 考虑单独规模文件时 -> 无单位净值和累计净值
         // 2.单位净值或累计净值不大于0
 //        if (!emailTitle.contains("规模")) {