zzx 2 gadi atpakaļ
vecāks
revīzija
104b330715

+ 0 - 2
src/main/java/com/galaxis/manatee/entity/chuanyun/data/object/ChuanyunBuildProject.java

@@ -111,11 +111,9 @@ public class ChuanyunBuildProject extends BasicDO {
 
     //维保-交付子表
     @JsonProperty(value = "D001789F28649f6f044a4224b5c68aa821918f50")
-    @OneToMany(cascade = CascadeType.ALL, orphanRemoval = true,fetch = FetchType.EAGER)
     private List<ChuanyunMaintenanceProDO> maintenanceProList;
 
     //维保-周期子表
     @JsonProperty(value = "D001789F3ffb030bffbf45a78c830cd7da9d59c9")
-    @OneToMany(cascade = CascadeType.ALL, orphanRemoval = true,fetch = FetchType.EAGER)
     private List<ChuanyunMaintenanceCycleDO> maintenanceCycleList;
 }

+ 4 - 4
src/main/resources/application.yml

@@ -50,11 +50,11 @@ spring:
         size: 500
       thread-name-prefix: scheduled-task-
   datasource:
-    url: jdbc:mysql://10.2.5.35:3306/manatee?useUnicode=true&characterEncoding=utf8&useSSL=false&useLegacyDatetimeCode=false&serverTimezone=Asia/Shanghai
-#    url: jdbc:mysql://localhost:3306/manatee?useUnicode=true&characterEncoding=utf8&useSSL=false&useLegacyDatetimeCode=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true
+#    url: jdbc:mysql://10.2.5.35:3306/manatee?useUnicode=true&characterEncoding=utf8&useSSL=false&useLegacyDatetimeCode=false&serverTimezone=Asia/Shanghai
+    url: jdbc:mysql://localhost:3306/manatee?useUnicode=true&characterEncoding=utf8&useSSL=false&useLegacyDatetimeCode=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true
     username: root
-    password: j$%rW-GRu$H#pj%V2M-B
-#    password: 123456
+#    password: j$%rW-GRu$H#pj%V2M-B
+    password: 123456
     hikari:
       maximum-pool-size: 128
   jpa:

+ 1 - 3
src/test/java/com/galaxis/manatee/Test/zzx/ProjectTest1.java

@@ -56,7 +56,7 @@ public class ProjectTest1 {
         });
 
         for (int i = 0; i < bpList.size(); i++) {
-            if (i > 1) {
+            if (i > 2) {
                 return;
             }
 
@@ -160,11 +160,9 @@ public class ProjectTest1 {
         private String implProManager;                                      //实施项目经理(仅维保项目有)
 
         @JsonProperty("D001789F28649f6f044a4224b5c68aa821918f50")
-        @OneToMany(cascade = CascadeType.ALL, orphanRemoval = true, fetch = FetchType.EAGER)
         private List<ChuanyunMaintenanceProDO> maintenanceProList;          //维保交付内容(子表)(仅维保项目有)
 
         @JsonProperty("D001789Fe75a894fabe3490ab47812cb7d79fd25")
-        @OneToMany(cascade = CascadeType.ALL, orphanRemoval = true, fetch = FetchType.EAGER)
         private List<ChuanyunMaintenanceCycleDO> maintenanceCycleList;      //维保周期(子表)(仅维保项目有)
 
         @JsonProperty("F0000123")

+ 23 - 0
src/test/java/com/galaxis/manatee/Test/zzx/ProjectTest6.java

@@ -0,0 +1,23 @@
+package com.galaxis.manatee.Test.zzx;
+
+import lombok.extern.slf4j.Slf4j;
+import org.springframework.boot.test.context.SpringBootTest;
+
+@Slf4j
+@SpringBootTest
+public class ProjectTest6 {
+    public static void main(String[] args) {
+        //SQL
+//        select count(a.Score) from Achieve a left join GradeTable g on a.Name = g.Name where g.Grade = "二年级"
+
+        //java
+//        String A = "1";
+//        String B = "2";
+//        int ab = Integer.parseInt(A) + Integer.parseInt(B);
+
+        //js
+//        for (int i = 0; i < 10; i++) {
+//            console.log(new Date());
+//        }
+    }
+}