LingxinMeng 2 rokov pred
rodič
commit
cbbfb4fec4

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

@@ -12,19 +12,19 @@ import lombok.NoArgsConstructor;
 @Builder
 public class AlgorithmExpandAclEntity {
     @JsonAlias({"id"})
-    private String id;
+    private String id = "默认空值";
     @JsonAlias({"algorithmId"})
-    private String algorithmId;
+    private String algorithmId = "默认空值";
     @JsonAlias({"algorithmName"})
-    private String algorithmName;
+    private String algorithmName = "默认空值";
     @JsonAlias({"description"})
-    private String description;
+    private String description = "默认空值";
     @JsonAlias({"algorithmType"})
-    private String algorithmType;
-    @JsonAlias({"algorithmVersion"})
-    private String algorithmVersion;
-    @JsonAlias({"team"})
-    private String team;
-    @JsonAlias({"topic"})
-    private String topic;
+    private String algorithmType = "默认空值";
+    @JsonAlias({"algorithmVersion", "evaluationName"})
+    private String algorithmVersion = "默认空值";
+    @JsonAlias({"team", "teamName"})
+    private String team = "默认空值";
+    @JsonAlias({"topic", "match"})
+    private String topic = "默认空值";
 }

+ 2 - 0
simulation-resource-common/src/main/java/com/css/simulation/resource/common/domain/algorithm/AlgorithmExpandDomain.java

@@ -39,11 +39,13 @@ public class AlgorithmExpandDomain {
             algorithmExpandAclEntities.forEach(algorithmExpandAclEntity -> {
                 final String algorithmId = algorithmExpandAclEntity.getAlgorithmId();
                 if (infrastructureAlgorithmIds.contains(algorithmId)) {
+                    log.info("更新算法平台算法。");
                     final List<AlgorithmExpandInfrastructureEntity> AlgorithmExpandInfrastructureEntities = algorithmExpandMapper.select(AlgorithmExpandInfrastructureParam.builder().algorithmId(algorithmId).build());
                     final AlgorithmExpandInfrastructureEntity algorithmExpandInfrastructureEntity = AlgorithmExpandInfrastructureEntities.get(0);
                     BeanUtils.copyProperties(algorithmExpandAclEntity, algorithmExpandInfrastructureEntity);
                     algorithmExpandMapper.update(algorithmExpandInfrastructureEntity);
                 }else {
+                    log.info("插入算法平台算法。");
                     final AlgorithmExpandInfrastructureEntity algorithmExpandInfrastructureEntity = new AlgorithmExpandInfrastructureEntity();
                     BeanUtils.copyProperties(algorithmExpandAclEntity, algorithmExpandInfrastructureEntity);
                     algorithmExpandInfrastructureEntity.setStatus(DictConstants.ALGORITHM_EXPAND_STATUS_NOT_TESTED);

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

@@ -10,13 +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 algorithmVersion = "空值";
-    private String team = "空值";
-    private String topic = "空值";
-    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 = "默认空值";
 }