| @@ -157,8 +157,7 @@ public class ActiveLearnServiceImpl implements ActiveLearnService { | |||||
| throw new RuntimeException("转换流水线失败"); | throw new RuntimeException("转换流水线失败"); | ||||
| } | } | ||||
| Map<String, Object> converMap = JsonUtils.jsonToMap(convertRes); | 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("转换流水线失败"); | throw new RuntimeException("转换流水线失败"); | ||||
| } | } | ||||
| @@ -237,8 +237,7 @@ public class ExperimentServiceImpl implements ExperimentService { | |||||
| throw new Exception("转换流水线失败"); | throw new Exception("转换流水线失败"); | ||||
| } | } | ||||
| Map<String, Object> converMap = JsonUtils.jsonToMap(convertRes); | 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("转换流水线失败"); | throw new RuntimeException("转换流水线失败"); | ||||
| } | } | ||||
| @@ -167,8 +167,7 @@ public class MachineLearnServiceImpl implements MachineLearnService { | |||||
| } | } | ||||
| Map<String, Object> convertResMap = JsonUtils.jsonToMap(convertRes); | 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("转换流水线失败"); | throw new RuntimeException("转换流水线失败"); | ||||
| } | } | ||||
| @@ -177,8 +177,7 @@ public class RayServiceImpl implements RayService { | |||||
| } | } | ||||
| Map<String, Object> converMap = JsonUtils.jsonToMap(convertRes); | 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("转换流水线失败"); | throw new RuntimeException("转换流水线失败"); | ||||
| } | } | ||||