瀏覽代碼

算法平台

LingxinMeng 2 年之前
父節點
當前提交
00d9b41efc

+ 12 - 0
simulation-resource-common/src/main/java/com/css/simulation/resource/common/acl/entity/AlgorithmExpandAclEntity.java

@@ -1,5 +1,6 @@
 package com.css.simulation.resource.common.acl.entity;
 
+import com.fasterxml.jackson.annotation.JsonAlias;
 import lombok.AllArgsConstructor;
 import lombok.Builder;
 import lombok.Data;
@@ -10,9 +11,20 @@ import lombok.NoArgsConstructor;
 @NoArgsConstructor
 @Builder
 public class AlgorithmExpandAclEntity {
+    @JsonAlias({"id"})
     private String id;
+    @JsonAlias({"algorithmId"})
     private String algorithmId;
+    @JsonAlias({"algorithmName"})
     private String algorithmName;
+    @JsonAlias({"description"})
     private String description;
+    @JsonAlias({"algorithmType"})
     private String algorithmType;
+    @JsonAlias({"algorithmVersion"})
+    private String algorithmVersion;
+    @JsonAlias({"team"})
+    private String team;
+    @JsonAlias({"topic"})
+    private String topic;
 }

+ 9 - 6
simulation-resource-common/src/main/java/com/css/simulation/resource/common/infrastructure/mysql/entity/AlgorithmExpandInfrastructureEntity.java

@@ -10,10 +10,13 @@ import lombok.NoArgsConstructor;
 @AllArgsConstructor
 @Builder
 public class AlgorithmExpandInfrastructureEntity {
-    private String id;
-    private String algorithmId;
-    private String algorithmName;
-    private String description;
-    private String algorithmType;
-    private String status;
+    private String id = "空值";
+    private String algorithmId = "空值";
+    private String algorithmName = "空值";
+    private String description = "空值";
+    private String algorithmType = "空值";
+    private String algorithmVersion = "空值";
+    private String team = "空值";
+    private String topic = "空值";
+    private String status = "空值";
 }

+ 2 - 2
simulation-resource-common/src/main/java/com/css/simulation/resource/common/infrastructure/mysql/mapper/AlgorithmExpandMapper.java

@@ -31,7 +31,7 @@ public interface AlgorithmExpandMapper {
             "</script>")
     List<String> selectAlgorithmIds(AlgorithmExpandInfrastructureParam algorithmExpandInfrastructureParam);
 
-    @Insert("insert into algorithm_expand(id, algorithm_id, algorithm_name, description, algorithm_type, status) \n" +
-            "    value (#{id}, #{algorithmId}, #{algorithmName}, #{description}, #{algorithmType}, #{status})\n")
+    @Insert("insert into algorithm_expand(id, algorithm_id, algorithm_name, description, algorithm_type, algorithm_version, team, topic, status)\n\n" +
+            "    value (#{id}, #{algorithmId}, #{algorithmName}, #{description}, #{algorithmType},#{algorithmVersion},#{team},{topic}, #{status})\n")
     void insert(AlgorithmExpandInfrastructureEntity algorithmExpandInfrastructureEntity);
 }