diff --git a/ruoyi-modules/management-platform/src/main/java/com/ruoyi/platform/service/impl/ActiveLearnServiceImpl.java b/ruoyi-modules/management-platform/src/main/java/com/ruoyi/platform/service/impl/ActiveLearnServiceImpl.java index 044df3b0..da00f095 100644 --- a/ruoyi-modules/management-platform/src/main/java/com/ruoyi/platform/service/impl/ActiveLearnServiceImpl.java +++ b/ruoyi-modules/management-platform/src/main/java/com/ruoyi/platform/service/impl/ActiveLearnServiceImpl.java @@ -157,8 +157,7 @@ public class ActiveLearnServiceImpl implements ActiveLearnService { throw new RuntimeException("转换流水线失败"); } Map converMap = JsonUtils.jsonToMap(convertRes); - String convertResData = (String) converMap.get("data"); - if (StringUtils.isEmpty(convertResData)) { + if (converMap.get("data") == null) { throw new RuntimeException("转换流水线失败"); } diff --git a/ruoyi-modules/management-platform/src/main/java/com/ruoyi/platform/service/impl/ExperimentServiceImpl.java b/ruoyi-modules/management-platform/src/main/java/com/ruoyi/platform/service/impl/ExperimentServiceImpl.java index 01227f7d..bd2d8cad 100644 --- a/ruoyi-modules/management-platform/src/main/java/com/ruoyi/platform/service/impl/ExperimentServiceImpl.java +++ b/ruoyi-modules/management-platform/src/main/java/com/ruoyi/platform/service/impl/ExperimentServiceImpl.java @@ -237,8 +237,7 @@ public class ExperimentServiceImpl implements ExperimentService { throw new Exception("转换流水线失败"); } Map converMap = JsonUtils.jsonToMap(convertRes); - String convertResData = (String) converMap.get("data"); - if (StringUtils.isEmpty(convertResData)) { + if (converMap.get("data") == null) { throw new RuntimeException("转换流水线失败"); } diff --git a/ruoyi-modules/management-platform/src/main/java/com/ruoyi/platform/service/impl/MachineLearnServiceImpl.java b/ruoyi-modules/management-platform/src/main/java/com/ruoyi/platform/service/impl/MachineLearnServiceImpl.java index 55759a9f..a9961456 100644 --- a/ruoyi-modules/management-platform/src/main/java/com/ruoyi/platform/service/impl/MachineLearnServiceImpl.java +++ b/ruoyi-modules/management-platform/src/main/java/com/ruoyi/platform/service/impl/MachineLearnServiceImpl.java @@ -167,8 +167,7 @@ public class MachineLearnServiceImpl implements MachineLearnService { } Map convertResMap = JsonUtils.jsonToMap(convertRes); - String convertResData = (String) convertResMap.get("data"); - if (StringUtils.isEmpty(convertResData)) { + if (convertResMap.get("data")== null) { throw new RuntimeException("转换流水线失败"); } diff --git a/ruoyi-modules/management-platform/src/main/java/com/ruoyi/platform/service/impl/RayServiceImpl.java b/ruoyi-modules/management-platform/src/main/java/com/ruoyi/platform/service/impl/RayServiceImpl.java index cbdb53c7..efdebc1b 100644 --- a/ruoyi-modules/management-platform/src/main/java/com/ruoyi/platform/service/impl/RayServiceImpl.java +++ b/ruoyi-modules/management-platform/src/main/java/com/ruoyi/platform/service/impl/RayServiceImpl.java @@ -177,8 +177,7 @@ public class RayServiceImpl implements RayService { } Map converMap = JsonUtils.jsonToMap(convertRes); - String convertResData = (String) converMap.get("data"); - if (StringUtils.isEmpty(convertResData)) { + if (converMap.get("data") == null) { throw new RuntimeException("转换流水线失败"); }