|
@@ -5,6 +5,7 @@ import cn.hutool.core.util.StrUtil;
|
|
|
import jakarta.annotation.Resource;
|
|
|
import lombok.RequiredArgsConstructor;
|
|
|
import org.eco.als.domain.bo.AlgorithmBo;
|
|
|
+import org.eco.als.domain.bo.QaBo;
|
|
|
import org.eco.als.domain.bo.TaskBo;
|
|
|
import org.eco.als.service.IAlgorithmService;
|
|
|
import org.eco.common.core.core.domain.CommonResult;
|
|
@@ -52,7 +53,7 @@ public class AlgorithmController {
|
|
|
@Log(title = "执行虚警抑制算法", businessType = BusinessType.EXECUTE)
|
|
|
@PostMapping("/execute/falseAlarm")
|
|
|
public CommonResult<String> executeFalseAlarm(@Validated @RequestBody AlgorithmBo algorithmBo) {
|
|
|
- return StrUtil.isBlank(algorithmService.executeFalseAlarm(algorithmBo)) ? CommonResult.fail() : CommonResult.success();
|
|
|
+ return CommonResult.success(algorithmService.executeFalseAlarm(algorithmBo));
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -80,6 +81,7 @@ public class AlgorithmController {
|
|
|
public CommonResult<String> batchExecute(@Validated @RequestBody TaskBo taskBo) {
|
|
|
return StrUtil.isBlank(algorithmService.batchExecute(taskBo)) ? CommonResult.fail() : CommonResult.success();
|
|
|
}
|
|
|
+
|
|
|
/**
|
|
|
* 获取数据参数名称
|
|
|
*
|
|
@@ -91,6 +93,7 @@ public class AlgorithmController {
|
|
|
public CommonResult<List<String>> getDataHeader(@PathVariable Long ossId) {
|
|
|
return CommonResult.success(algorithmService.getDataHeader(ossId));
|
|
|
}
|
|
|
+
|
|
|
/**
|
|
|
* 获取数据根据OssId
|
|
|
*
|
|
@@ -102,6 +105,7 @@ public class AlgorithmController {
|
|
|
public CommonResult<String> getDataByOssId(@PathVariable Long ossId) {
|
|
|
return CommonResult.success(algorithmService.getDataByOssId(ossId), "");
|
|
|
}
|
|
|
+
|
|
|
/**
|
|
|
* 获取曲线数据根据OssId
|
|
|
*
|
|
@@ -113,4 +117,15 @@ public class AlgorithmController {
|
|
|
public CommonResult<String> getPlaybackDataByOssId(@PathVariable Long ossId) {
|
|
|
return CommonResult.success(algorithmService.getDataByOssId(ossId), "");
|
|
|
}
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 问答
|
|
|
+ *
|
|
|
+ * @param QaBo 入参
|
|
|
+ * @return org.eco.common.core.core.domain.CommonResult<java.lang.String> 结果
|
|
|
+ **/
|
|
|
+ @PostMapping("/execute/qa")
|
|
|
+ public CommonResult<String> executeQa(@Validated @RequestBody QaBo QaBo) {
|
|
|
+ return CommonResult.success(algorithmService.executeQa(QaBo), "");
|
|
|
+ }
|
|
|
}
|