Browse Source

获取数据根据OssId 返回值修改

Gaokun Wang 7 tháng trước cách đây
mục cha
commit
34a3900be9

+ 4 - 4
als-modules/agile-assurance/src/main/java/org/eco/als/controller/AlgorithmController.java

@@ -99,8 +99,8 @@ public class AlgorithmController {
      **/
     @Log(title = "获取数据参数名称", businessType = BusinessType.EXECUTE)
     @GetMapping("/data/{ossId}")
-    public CommonResult<List<String>> getDataByOssId(@PathVariable Long ossId) {
-        return CommonResult.success(algorithmService.getDataByOssId(ossId));
+    public CommonResult<String> getDataByOssId(@PathVariable Long ossId) {
+        return CommonResult.success(algorithmService.getDataByOssId(ossId), "");
     }
     /**
      * 获取曲线数据根据OssId
@@ -110,7 +110,7 @@ public class AlgorithmController {
      **/
     @Log(title = "获取数据参数名称", businessType = BusinessType.EXECUTE)
     @GetMapping("/playback/data/{ossId}")
-    public CommonResult<List<String>> getPlaybackDataByOssId(@PathVariable Long ossId) {
-        return CommonResult.success(algorithmService.getDataByOssId(ossId));
+    public CommonResult<String> getPlaybackDataByOssId(@PathVariable Long ossId) {
+        return CommonResult.success(algorithmService.getDataByOssId(ossId), "");
     }
 }