|
@@ -21,10 +21,7 @@ import com.simuwang.base.pojo.dto.EmailContentInfoDTO;
|
|
|
import com.simuwang.base.pojo.dto.EmailFundNavDTO;
|
|
|
import com.simuwang.base.pojo.dto.MailboxInfoDTO;
|
|
|
import com.simuwang.base.pojo.dto.query.DataboardQuery;
|
|
|
-import com.simuwang.base.pojo.dto.report.ParseResult;
|
|
|
-import com.simuwang.base.pojo.dto.report.ReportData;
|
|
|
-import com.simuwang.base.pojo.dto.report.ReportParseStatus;
|
|
|
-import com.simuwang.base.pojo.dto.report.ReportParserParams;
|
|
|
+import com.simuwang.base.pojo.dto.report.*;
|
|
|
import com.simuwang.base.pojo.valuation.CmValuationTableAttribute;
|
|
|
import com.simuwang.base.pojo.vo.*;
|
|
|
import com.simuwang.daq.components.report.parser.ReportParser;
|
|
@@ -246,7 +243,20 @@ public class EmailParseService {
|
|
|
}
|
|
|
//需要写入到文件管理
|
|
|
try{
|
|
|
- saveFileManage(fileId,emailType,emailContentInfoDTO,fundNavDTOList,parseDate);
|
|
|
+ if (Objects.equals(EmailTypeConst.YEAR_REPORT_EMAIL_TYPE, emailType)
|
|
|
+ ||Objects.equals(EmailTypeConst.QUARTER_REPORT_EMAIL_TYPE, emailType)
|
|
|
+ || Objects.equals(EmailTypeConst.MONTH_REPORT_EMAIL_TYPE, emailType)) {
|
|
|
+ ReportData reportData = dataList.get(0).getData();
|
|
|
+ ReportFundInfoDTO fundInfoDTO = reportData.getFundInfo();
|
|
|
+ EmailFundNavDTO emailFundNavDTO = new EmailFundNavDTO();
|
|
|
+ if(fundInfoDTO != null){
|
|
|
+ emailFundNavDTO.setFundName(fundInfoDTO.getFundName());
|
|
|
+ emailFundNavDTO.setFundName(fundInfoDTO.getRegisterNumber());
|
|
|
+ }
|
|
|
+ saveFileManage(fileId,emailType,emailContentInfoDTO,ListUtil.toList(emailFundNavDTO),parseDate);
|
|
|
+ }else{
|
|
|
+ saveFileManage(fileId,emailType,emailContentInfoDTO,fundNavDTOList,parseDate);
|
|
|
+ }
|
|
|
}catch (Exception e){
|
|
|
log.error("保存文件管理信息报错:"+e.getMessage(),e);
|
|
|
}
|
|
@@ -1022,9 +1032,9 @@ public class EmailParseService {
|
|
|
emailTypeMap.put(EmailTypeConst.MONTH_REPORT_EMAIL_TYPE, Arrays.stream(monthReport.split(",")).toList());
|
|
|
emailTypeMap.put(EmailTypeConst.QUARTER_REPORT_EMAIL_TYPE, Arrays.stream(quarterReport.split(",")).toList());
|
|
|
emailTypeMap.put(EmailTypeConst.YEAR_REPORT_EMAIL_TYPE, Arrays.stream(yearReport.split(",")).toList());
|
|
|
+ emailTypeMap.put(EmailTypeConst.CHANGE_EMAIL_TYPE, Arrays.stream(changeReport.split(",")).toList());
|
|
|
emailTypeMap.put(EmailTypeConst.CONTRACT_EMAIL_TYPE, Arrays.stream(contract.split(",")).toList());
|
|
|
emailTypeMap.put(EmailTypeConst.DISTRIBUTION_EMAIL_TYPE, Arrays.stream(distribution.split(",")).toList());
|
|
|
- emailTypeMap.put(EmailTypeConst.CHANGE_EMAIL_TYPE, Arrays.stream(changeReport.split(",")).toList());
|
|
|
emailTypeMap.put(EmailTypeConst.NAV_EMAIL_TYPE, Arrays.stream(nav.split(",")).toList());
|
|
|
return emailTypeMap;
|
|
|
}
|