提交 4b06ed0b authored 作者: mry's avatar mry

feat(web): 添加了返回值存储的字段

上级 9c63355c
...@@ -57,4 +57,7 @@ public class TestCase extends BaseEntity { ...@@ -57,4 +57,7 @@ public class TestCase extends BaseEntity {
@ApiModelProperty("标签") @ApiModelProperty("标签")
private String tag; private String tag;
@ApiModelProperty("返回值")
private String retValue;
} }
...@@ -67,11 +67,11 @@ public class SqlController { ...@@ -67,11 +67,11 @@ public class SqlController {
if (projectId.equals(sqlQuery.getProjectId())) { if (projectId.equals(sqlQuery.getProjectId())) {
return ResponseEntity.ok(results); return ResponseEntity.ok(results);
} else { } else {
throw new GlobalException("请查询当前项目"); throw new GlobalException("请查询当前项目,或查询内容不存在");
} }
}catch (IndexOutOfBoundsException e){ }catch (IndexOutOfBoundsException e){
e.printStackTrace(); e.printStackTrace();
throw new GlobalException("请查询当前项目"); throw new GlobalException("请查询当前项目,或查询内容不存在");
} }
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论