wangzaijun 2 mesiacov pred
rodič
commit
3ea0a20472

+ 6 - 0
mo-daq/logs/error.log

@@ -0,0 +1,6 @@
+2025-02-25 18:16:19.574 [main] - [] ERROR com.smppw.modaq.domain.service.EmailParseService:305  - 解析失败
+报告[(1)投资者交易确认函【申购】_【SZF635】佳岳国债增强私募证券投资基金_20250217_任军.pdf]为扫描件
+2025-02-25 18:16:19.752 [main] - [] ERROR com.smppw.modaq.domain.service.EmailParseService:305  - 解析失败
+报告[(2)投资者交易确认函【申购】_【SZF635】佳岳国债增强私募证券投资基金_20250217_沈娟梅.pdf]为扫描件
+2025-02-25 18:16:19.904 [main] - [] ERROR com.smppw.modaq.domain.service.EmailParseService:305  - 解析失败
+报告[(3)投资者交易确认函【申购】_【SZF635】佳岳国债增强私募证券投资基金_20250214_任军.pdf]为扫描件

Rozdielové dáta súboru neboli zobrazené, pretože súbor je príliš veľký
+ 35 - 0
mo-daq/logs/info.log


+ 93 - 0
mo-daq/logs/warn.log

@@ -0,0 +1,93 @@
+2025-02-25 18:16:19.571 [main] - [] WARN  c.s.m.a.c.report.parser.pdf.PDLetterReportParser:109  - (1)投资者交易确认函【申购】_【SZF635】佳岳国债增强私募证券投资基金_20250217_任军.pdf ai解析失败,解析结果null,错误原因:cn.hutool.core.io.IORuntimeException: ConnectException: Connection refused: connect
+	at cn.hutool.http.HttpRequest.send(HttpRequest.java:1350)
+	at cn.hutool.http.HttpRequest.doExecute(HttpRequest.java:1188)
+	at cn.hutool.http.HttpRequest.execute(HttpRequest.java:1051)
+	at cn.hutool.http.HttpRequest.execute(HttpRequest.java:1027)
+	at cn.hutool.http.HttpUtil.get(HttpUtil.java:157)
+	at com.smppw.modaq.application.components.report.parser.pdf.AbstractPDReportParser.parse(AbstractPDReportParser.java:103)
+	at com.smppw.modaq.domain.service.EmailParseService.parseReportAndHandleResult(EmailParseService.java:300)
+	at com.smppw.modaq.domain.service.EmailParseService.saveRelatedTable(EmailParseService.java:222)
+	at com.smppw.modaq.domain.service.EmailParseService.parseEmail(EmailParseService.java:142)
+	at com.smppw.modaq.MoDaqApplicationTests.reportTest(MoDaqApplicationTests.java:41)
+	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
+	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
+	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
+	at java.base/java.lang.reflect.Method.invoke(Method.java:568)
+	at org.junit.platform.commons.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:767)
+	at org.junit.jupiter.engine.execution.MethodInvocation.proceed(MethodInvocation.java:60)
+	at org.junit.jupiter.engine.execution.InvocationInterceptorChain$ValidatingInvocation.proceed(InvocationInterceptorChain.java:131)
+	at org.junit.jupiter.engine.extension.TimeoutExtension.intercept(TimeoutExtension.java:156)
+	at org.junit.jupiter.engine.extension.TimeoutExtension.interceptTestableMethod(TimeoutExtension.java:147)
+	at org.junit.jupiter.engine.extension.TimeoutExtension.interceptTestMethod(TimeoutExtension.java:86)
+	at org.junit.jupiter.engine.execution.InterceptingExecutableInvoker$ReflectiveInterceptorCall.lambda$ofVoidMethod$0(InterceptingExecutableInvoker.java:103)
+	at org.junit.jupiter.engine.execution.InterceptingExecutableInvoker.lambda$invoke$0(InterceptingExecutableInvoker.java:93)
+	at org.junit.jupiter.engine.execution.InvocationInterceptorChain$InterceptedInvocation.proceed(InvocationInterceptorChain.java:106)
+	at org.junit.jupiter.engine.execution.InvocationInterceptorChain.proceed(InvocationInterceptorChain.java:64)
+	at org.junit.jupiter.engine.execution.InvocationInterceptorChain.chainAndInvoke(InvocationInterceptorChain.java:45)
+	at org.junit.jupiter.engine.execution.InvocationInterceptorChain.invoke(InvocationInterceptorChain.java:37)
+	at org.junit.jupiter.engine.execution.InterceptingExecutableInvoker.invoke(InterceptingExecutableInvoker.java:92)
+	at org.junit.jupiter.engine.execution.InterceptingExecutableInvoker.invoke(InterceptingExecutableInvoker.java:86)
+	at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.lambda$invokeTestMethod$8(TestMethodTestDescriptor.java:217)
+	at or
+2025-02-25 18:16:19.751 [main] - [] WARN  c.s.m.a.c.report.parser.pdf.PDLetterReportParser:109  - (2)投资者交易确认函【申购】_【SZF635】佳岳国债增强私募证券投资基金_20250217_沈娟梅.pdf ai解析失败,解析结果null,错误原因:cn.hutool.core.io.IORuntimeException: ConnectException: Connection refused: connect
+	at cn.hutool.http.HttpRequest.send(HttpRequest.java:1350)
+	at cn.hutool.http.HttpRequest.doExecute(HttpRequest.java:1188)
+	at cn.hutool.http.HttpRequest.execute(HttpRequest.java:1051)
+	at cn.hutool.http.HttpRequest.execute(HttpRequest.java:1027)
+	at cn.hutool.http.HttpUtil.get(HttpUtil.java:157)
+	at com.smppw.modaq.application.components.report.parser.pdf.AbstractPDReportParser.parse(AbstractPDReportParser.java:103)
+	at com.smppw.modaq.domain.service.EmailParseService.parseReportAndHandleResult(EmailParseService.java:300)
+	at com.smppw.modaq.domain.service.EmailParseService.saveRelatedTable(EmailParseService.java:222)
+	at com.smppw.modaq.domain.service.EmailParseService.parseEmail(EmailParseService.java:142)
+	at com.smppw.modaq.MoDaqApplicationTests.reportTest(MoDaqApplicationTests.java:41)
+	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
+	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
+	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
+	at java.base/java.lang.reflect.Method.invoke(Method.java:568)
+	at org.junit.platform.commons.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:767)
+	at org.junit.jupiter.engine.execution.MethodInvocation.proceed(MethodInvocation.java:60)
+	at org.junit.jupiter.engine.execution.InvocationInterceptorChain$ValidatingInvocation.proceed(InvocationInterceptorChain.java:131)
+	at org.junit.jupiter.engine.extension.TimeoutExtension.intercept(TimeoutExtension.java:156)
+	at org.junit.jupiter.engine.extension.TimeoutExtension.interceptTestableMethod(TimeoutExtension.java:147)
+	at org.junit.jupiter.engine.extension.TimeoutExtension.interceptTestMethod(TimeoutExtension.java:86)
+	at org.junit.jupiter.engine.execution.InterceptingExecutableInvoker$ReflectiveInterceptorCall.lambda$ofVoidMethod$0(InterceptingExecutableInvoker.java:103)
+	at org.junit.jupiter.engine.execution.InterceptingExecutableInvoker.lambda$invoke$0(InterceptingExecutableInvoker.java:93)
+	at org.junit.jupiter.engine.execution.InvocationInterceptorChain$InterceptedInvocation.proceed(InvocationInterceptorChain.java:106)
+	at org.junit.jupiter.engine.execution.InvocationInterceptorChain.proceed(InvocationInterceptorChain.java:64)
+	at org.junit.jupiter.engine.execution.InvocationInterceptorChain.chainAndInvoke(InvocationInterceptorChain.java:45)
+	at org.junit.jupiter.engine.execution.InvocationInterceptorChain.invoke(InvocationInterceptorChain.java:37)
+	at org.junit.jupiter.engine.execution.InterceptingExecutableInvoker.invoke(InterceptingExecutableInvoker.java:92)
+	at org.junit.jupiter.engine.execution.InterceptingExecutableInvoker.invoke(InterceptingExecutableInvoker.java:86)
+	at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.lambda$invokeTestMethod$8(TestMethodTestDescriptor.java:217)
+	at or
+2025-02-25 18:16:19.903 [main] - [] WARN  c.s.m.a.c.report.parser.pdf.PDLetterReportParser:109  - (3)投资者交易确认函【申购】_【SZF635】佳岳国债增强私募证券投资基金_20250214_任军.pdf ai解析失败,解析结果null,错误原因:cn.hutool.core.io.IORuntimeException: ConnectException: Connection refused: connect
+	at cn.hutool.http.HttpRequest.send(HttpRequest.java:1350)
+	at cn.hutool.http.HttpRequest.doExecute(HttpRequest.java:1188)
+	at cn.hutool.http.HttpRequest.execute(HttpRequest.java:1051)
+	at cn.hutool.http.HttpRequest.execute(HttpRequest.java:1027)
+	at cn.hutool.http.HttpUtil.get(HttpUtil.java:157)
+	at com.smppw.modaq.application.components.report.parser.pdf.AbstractPDReportParser.parse(AbstractPDReportParser.java:103)
+	at com.smppw.modaq.domain.service.EmailParseService.parseReportAndHandleResult(EmailParseService.java:300)
+	at com.smppw.modaq.domain.service.EmailParseService.saveRelatedTable(EmailParseService.java:222)
+	at com.smppw.modaq.domain.service.EmailParseService.parseEmail(EmailParseService.java:142)
+	at com.smppw.modaq.MoDaqApplicationTests.reportTest(MoDaqApplicationTests.java:41)
+	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
+	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
+	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
+	at java.base/java.lang.reflect.Method.invoke(Method.java:568)
+	at org.junit.platform.commons.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:767)
+	at org.junit.jupiter.engine.execution.MethodInvocation.proceed(MethodInvocation.java:60)
+	at org.junit.jupiter.engine.execution.InvocationInterceptorChain$ValidatingInvocation.proceed(InvocationInterceptorChain.java:131)
+	at org.junit.jupiter.engine.extension.TimeoutExtension.intercept(TimeoutExtension.java:156)
+	at org.junit.jupiter.engine.extension.TimeoutExtension.interceptTestableMethod(TimeoutExtension.java:147)
+	at org.junit.jupiter.engine.extension.TimeoutExtension.interceptTestMethod(TimeoutExtension.java:86)
+	at org.junit.jupiter.engine.execution.InterceptingExecutableInvoker$ReflectiveInterceptorCall.lambda$ofVoidMethod$0(InterceptingExecutableInvoker.java:103)
+	at org.junit.jupiter.engine.execution.InterceptingExecutableInvoker.lambda$invoke$0(InterceptingExecutableInvoker.java:93)
+	at org.junit.jupiter.engine.execution.InvocationInterceptorChain$InterceptedInvocation.proceed(InvocationInterceptorChain.java:106)
+	at org.junit.jupiter.engine.execution.InvocationInterceptorChain.proceed(InvocationInterceptorChain.java:64)
+	at org.junit.jupiter.engine.execution.InvocationInterceptorChain.chainAndInvoke(InvocationInterceptorChain.java:45)
+	at org.junit.jupiter.engine.execution.InvocationInterceptorChain.invoke(InvocationInterceptorChain.java:37)
+	at org.junit.jupiter.engine.execution.InterceptingExecutableInvoker.invoke(InterceptingExecutableInvoker.java:92)
+	at org.junit.jupiter.engine.execution.InterceptingExecutableInvoker.invoke(InterceptingExecutableInvoker.java:86)
+	at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.lambda$invokeTestMethod$8(TestMethodTestDescriptor.java:217)
+	at or

+ 3 - 0
mo-daq/src/main/java/com/smppw/modaq/domain/service/EmailParseService.java

@@ -213,6 +213,9 @@ public class EmailParseService {
             EmailParseInfoDO emailParseInfoDO = buildEmailParseInfo(emailId, emailAddress, emailContentInfoDTO);
             emailParseInfoDO.setEmailKey(emailKey);
             emailId = saveEmailParseInfo(emailParseInfoDO);
+            if (emailId == null) {
+                continue;
+            }
 
             List<EmailZipFileDTO> zipFiles = entry.getValue();
             if (CollUtil.isNotEmpty(zipFiles)) {

+ 1 - 1
mo-daq/src/test/java/com/smppw/modaq/MoDaqApplicationTests.java

@@ -34,7 +34,7 @@ public class MoDaqApplicationTests {
 
     @Test
     public void reportTest() {
-        MailboxInfoDTO emailInfoDTO = this.buildMailbox("xx@simuwang.com", "xx");
+        MailboxInfoDTO emailInfoDTO = this.buildMailbox("wangzaijun@simuwang.com", "WZJ2twy1314");
         Date startDate = DateUtil.parse("2025-02-17 15:00:00", DateConst.YYYY_MM_DD_HH_MM_SS);
         Date endDate = DateUtil.parse("2025-02-17 16:08:00", DateConst.YYYY_MM_DD_HH_MM_SS);
         try {