Browse Source

fix:邮件解析-修复估值表资产份额字段取值错误的问题

mozuwen 7 months ago
parent
commit
a852a7b368

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

@@ -491,7 +491,7 @@ public class EmailParseService {
             String senderEmail;
             try {
                 Date emailDate = message.getSentDate();
-                boolean isNotParseConditionSatisfied = emailDate == null || (endDate == null && emailDate.compareTo(startDate) > 0) || (startDate != null && emailDate.compareTo(startDate) < 0);
+                boolean isNotParseConditionSatisfied = emailDate == null || (endDate != null && emailDate.compareTo(endDate) > 0) || (startDate != null && emailDate.compareTo(startDate) < 0);
                 if (isNotParseConditionSatisfied) {
                     continue;
                 }

+ 1 - 1
service-daq/src/main/java/com/simuwang/daq/service/ValuationParseService.java

@@ -102,7 +102,7 @@ public class ValuationParseService {
                                 record.setDate(details.getValuationDate());
                                 record.setSuccess(0);
                                 BigDecimal assetNet = details.getNetAssetsValue() != null ? BigDecimal.valueOf(details.getNetAssetsValue()) : null;
-                                BigDecimal assetShare = details.getTotalMarketValue() != null ? BigDecimal.valueOf(details.getTotalMarketValue()) : null;
+                                BigDecimal assetShare = details.getAssetShare() != null ? BigDecimal.valueOf(details.getAssetShare()) : null;
                                 record.setAssetNet(assetNet != null ? String.valueOf(assetNet) : null);
                                 record.setAssetShare(assetShare != null ? String.valueOf(assetShare) : null);
                                 records.add(record);