Browse Source

优化转换流水线失败判断

pull/221/head
chenzhihang 8 months ago
parent
commit
b7789c1ba7
4 changed files with 4 additions and 8 deletions
  1. +1
    -2
      ruoyi-modules/management-platform/src/main/java/com/ruoyi/platform/service/impl/ActiveLearnServiceImpl.java
  2. +1
    -2
      ruoyi-modules/management-platform/src/main/java/com/ruoyi/platform/service/impl/ExperimentServiceImpl.java
  3. +1
    -2
      ruoyi-modules/management-platform/src/main/java/com/ruoyi/platform/service/impl/MachineLearnServiceImpl.java
  4. +1
    -2
      ruoyi-modules/management-platform/src/main/java/com/ruoyi/platform/service/impl/RayServiceImpl.java

+ 1
- 2
ruoyi-modules/management-platform/src/main/java/com/ruoyi/platform/service/impl/ActiveLearnServiceImpl.java View File

@@ -157,8 +157,7 @@ public class ActiveLearnServiceImpl implements ActiveLearnService {
throw new RuntimeException("转换流水线失败");
}
Map<String, Object> converMap = JsonUtils.jsonToMap(convertRes);
String convertResData = (String) converMap.get("data");
if (StringUtils.isEmpty(convertResData)) {
if (converMap.get("data") == null) {
throw new RuntimeException("转换流水线失败");
}



+ 1
- 2
ruoyi-modules/management-platform/src/main/java/com/ruoyi/platform/service/impl/ExperimentServiceImpl.java View File

@@ -237,8 +237,7 @@ public class ExperimentServiceImpl implements ExperimentService {
throw new Exception("转换流水线失败");
}
Map<String, Object> converMap = JsonUtils.jsonToMap(convertRes);
String convertResData = (String) converMap.get("data");
if (StringUtils.isEmpty(convertResData)) {
if (converMap.get("data") == null) {
throw new RuntimeException("转换流水线失败");
}



+ 1
- 2
ruoyi-modules/management-platform/src/main/java/com/ruoyi/platform/service/impl/MachineLearnServiceImpl.java View File

@@ -167,8 +167,7 @@ public class MachineLearnServiceImpl implements MachineLearnService {
}

Map<String, Object> convertResMap = JsonUtils.jsonToMap(convertRes);
String convertResData = (String) convertResMap.get("data");
if (StringUtils.isEmpty(convertResData)) {
if (convertResMap.get("data")== null) {
throw new RuntimeException("转换流水线失败");
}



+ 1
- 2
ruoyi-modules/management-platform/src/main/java/com/ruoyi/platform/service/impl/RayServiceImpl.java View File

@@ -177,8 +177,7 @@ public class RayServiceImpl implements RayService {
}

Map<String, Object> converMap = JsonUtils.jsonToMap(convertRes);
String convertResData = (String) converMap.get("data");
if (StringUtils.isEmpty(convertResData)) {
if (converMap.get("data") == null) {
throw new RuntimeException("转换流水线失败");
}



Loading…
Cancel
Save