gtj 1 жил өмнө
parent
commit
9085b1e5eb

+ 10 - 20
log/redWite.log

@@ -1,20 +1,10 @@
-2022-09-08 16:00:56.524  INFO 15724 --- [main] com.tencent.RedwitCsvApplicationTests    : Starting RedwitCsvApplicationTests using Java 1.8.0_144 on DESKTOP-2FDDRNG with PID 15724 (started by DELL in C:\Users\DELL\Desktop\Complaints project\redwit_csv)
-2022-09-08 16:00:56.532  INFO 15724 --- [main] com.tencent.RedwitCsvApplicationTests    : No active profile set, falling back to 1 default profile: "default"
-2022-09-08 16:00:58.715  WARN 15724 --- [main] c.b.m.core.metadata.TableInfoHelper      : Can not find table primary key in Class: "com.tencent.pojo.LnPmDataHw".
-2022-09-08 16:00:59.561  INFO 15724 --- [main] com.tencent.RedwitCsvApplicationTests    : Started RedwitCsvApplicationTests in 3.346 seconds (JVM running for 4.256)
-2022-09-08 16:02:31.280  INFO 21740 --- [main] com.tencent.RedwitCsvApplicationTests    : Starting RedwitCsvApplicationTests using Java 1.8.0_144 on DESKTOP-2FDDRNG with PID 21740 (started by DELL in C:\Users\DELL\Desktop\Complaints project\redwit_csv)
-2022-09-08 16:02:31.281  INFO 21740 --- [main] com.tencent.RedwitCsvApplicationTests    : No active profile set, falling back to 1 default profile: "default"
-2022-09-08 16:02:33.196  WARN 21740 --- [main] c.b.m.core.metadata.TableInfoHelper      : Can not find table primary key in Class: "com.tencent.pojo.LnPmDataHw".
-2022-09-08 16:02:34.086  INFO 21740 --- [main] com.tencent.RedwitCsvApplicationTests    : Started RedwitCsvApplicationTests in 3.112 seconds (JVM running for 3.987)
-2022-09-08 16:03:52.126  INFO 21216 --- [main] com.tencent.RedwitCsvApplicationTests    : Starting RedwitCsvApplicationTests using Java 1.8.0_144 on DESKTOP-2FDDRNG with PID 21216 (started by DELL in C:\Users\DELL\Desktop\Complaints project\redwit_csv)
-2022-09-08 16:03:52.127  INFO 21216 --- [main] com.tencent.RedwitCsvApplicationTests    : No active profile set, falling back to 1 default profile: "default"
-2022-09-08 16:03:54.337  WARN 21216 --- [main] c.b.m.core.metadata.TableInfoHelper      : Can not find table primary key in Class: "com.tencent.pojo.LnPmDataHw".
-2022-09-08 16:03:55.269  INFO 21216 --- [main] com.tencent.RedwitCsvApplicationTests    : Started RedwitCsvApplicationTests in 3.497 seconds (JVM running for 4.505)
-2022-09-08 16:18:58.835  INFO 24552 --- [main] com.tencent.RedwitCsvApplicationTests    : Starting RedwitCsvApplicationTests using Java 1.8.0_144 on DESKTOP-2FDDRNG with PID 24552 (started by DELL in C:\Users\DELL\Desktop\Complaints project\redwit_csv)
-2022-09-08 16:18:58.838  INFO 24552 --- [main] com.tencent.RedwitCsvApplicationTests    : No active profile set, falling back to 1 default profile: "default"
-2022-09-08 16:19:00.842  WARN 24552 --- [main] c.b.m.core.metadata.TableInfoHelper      : Can not find table primary key in Class: "com.tencent.pojo.LnPmDataHw".
-2022-09-08 16:19:01.685  INFO 24552 --- [main] com.tencent.RedwitCsvApplicationTests    : Started RedwitCsvApplicationTests in 3.12 seconds (JVM running for 3.97)
-2022-09-08 16:21:00.507  INFO 24428 --- [main] com.tencent.RedwitCsvApplicationTests    : Starting RedwitCsvApplicationTests using Java 1.8.0_144 on DESKTOP-2FDDRNG with PID 24428 (started by DELL in C:\Users\DELL\Desktop\Complaints project\redwit_csv)
-2022-09-08 16:21:00.508  INFO 24428 --- [main] com.tencent.RedwitCsvApplicationTests    : No active profile set, falling back to 1 default profile: "default"
-2022-09-08 16:21:02.488  WARN 24428 --- [main] c.b.m.core.metadata.TableInfoHelper      : Can not find table primary key in Class: "com.tencent.pojo.LnPmDataHw".
-2022-09-08 16:21:03.323  INFO 24428 --- [main] com.tencent.RedwitCsvApplicationTests    : Started RedwitCsvApplicationTests in 3.069 seconds (JVM running for 3.932)
+2023-07-24 10:07:46.584  INFO 7752 --- [main] com.tencent.RedwitCsvApplication         : Starting RedwitCsvApplication using Java 1.8.0_281 on DESKTOP-2FDDRNG with PID 7752 (C:\Users\DELL\Desktop\Complaints project\redwit_csv\target\classes started by DELL in C:\Users\DELL\Desktop\Complaints project\redwit_csv)
+2023-07-24 10:07:46.629  INFO 7752 --- [main] com.tencent.RedwitCsvApplication         : No active profile set, falling back to 1 default profile: "default"
+2023-07-24 10:07:51.469  INFO 7752 --- [main] o.s.b.w.embedded.tomcat.TomcatWebServer  : Tomcat initialized with port(s): 12002 (http)
+2023-07-24 10:07:51.479  INFO 7752 --- [main] o.apache.catalina.core.StandardService   : Starting service [Tomcat]
+2023-07-24 10:07:51.480  INFO 7752 --- [main] org.apache.catalina.core.StandardEngine  : Starting Servlet engine: [Apache Tomcat/9.0.63]
+2023-07-24 10:07:51.640  INFO 7752 --- [main] o.a.c.c.C.[Tomcat].[localhost].[/]       : Initializing Spring embedded WebApplicationContext
+2023-07-24 10:07:51.641  INFO 7752 --- [main] w.s.c.ServletWebServerApplicationContext : Root WebApplicationContext: initialization completed in 4864 ms
+2023-07-24 10:07:52.825  WARN 7752 --- [main] c.b.m.core.metadata.TableInfoHelper      : Can not find table primary key in Class: "com.tencent.pojo.LnPmDataHw".
+2023-07-24 10:07:53.260  INFO 7752 --- [main] o.s.b.w.embedded.tomcat.TomcatWebServer  : Tomcat started on port(s): 12002 (http) with context path ''
+2023-07-24 10:07:53.275  INFO 7752 --- [main] com.tencent.RedwitCsvApplication         : Started RedwitCsvApplication in 7.698 seconds (JVM running for 8.413)

+ 1 - 1
src/main/java/com/tencent/service/HwServiceImpl.java

@@ -141,7 +141,7 @@ public class HwServiceImpl extends ServiceImpl<HwDao, LnPmDataHw> implements HwS
         Iterator<CSVRecord> iterator = csvRecords.iterator();
         ArrayList<LnPmDataHw> objects = new ArrayList<>();
         while (iterator.hasNext()) {
-            CSVRecord next = iterator.next();
+            CSVRecord next = iterator.next();     
             if (next.get("PortName").contains("PA") || next.get("PortName").contains("BA")) {
             } else {
                 if (next.get("BrdName").contains("OA") || next.get("BrdName").contains("OB") || next.get("BrdName").contains("PA")