Przeglądaj źródła

不使用e.getCause

lighter_217 2 tygodni temu
rodzic
commit
aec57338c2

+ 3 - 0
serverlog/all_spring-boot-logback.log

@@ -6,3 +6,6 @@
 - [2025-06-27 08:44:09.622] [INFO] [o.a.c.c.C.[.[.[/]] --> Initializing Spring embedded WebApplicationContext
 - [2025-06-27 08:44:10.609] [INFO] [o.a.c.h.Http11NioProtocol] --> Starting ProtocolHandler ["http-nio-1000"]
 - [2025-06-27 08:44:10.628] [INFO] [t.s.SiZyFeeOprnSystmApplication] --> Started SiZyFeeOprnSystmApplication in 2.148 seconds (JVM running for 2.789)
+- [2025-08-03 21:56:43.526] [INFO] [t.s.SiZyFeeOprnSystmApplicationTests] --> Starting SiZyFeeOprnSystmApplicationTests using Java 1.8.0_301 on DESKTOP-VU4HBUF with PID 7132 (started by dj in D:\coding\symhyy\SiZyFeeOprnSystem)
+- [2025-08-03 21:56:43.528] [INFO] [t.s.SiZyFeeOprnSystmApplicationTests] --> No active profile set, falling back to default profiles: default
+- [2025-08-03 21:56:45.615] [INFO] [t.s.SiZyFeeOprnSystmApplicationTests] --> Started SiZyFeeOprnSystmApplicationTests in 2.355 seconds (JVM running for 3.017)

+ 2 - 2
src/main/java/thyyxxk/sizyfeeoprnsystm/service/SiZyFeeService.java

@@ -120,7 +120,7 @@ public class SiZyFeeService {
             try {
                 resVo = uploadFeeDetail(overview, socketTask);
             } catch (Exception e) {
-                resVo = ResultVoUtil.fail(ExceptionEnum.LOGICAL_ERROR, e.getCause().getMessage());
+                resVo = ResultVoUtil.fail(ExceptionEnum.LOGICAL_ERROR, e.getMessage());
             } finally {
                 uploadingMap.remove(overview.getInpatientNo());
             }
@@ -515,7 +515,7 @@ public class SiZyFeeService {
             try {
                 resVo = uploadWorkInjuryFeeDetail(overview, socketTask);
             } catch (Exception e) {
-                resVo = ResultVoUtil.fail(ExceptionEnum.LOGICAL_ERROR, e.getCause().getMessage());
+                resVo = ResultVoUtil.fail(ExceptionEnum.LOGICAL_ERROR, e.getMessage());
             } finally {
                 uploadingMap.remove(overview.getInpatientNo());
             }