Browse Source

fix: test_result字段更新

zhaoxingrui 5 years ago
parent
commit
a8514bfb5a

+ 3 - 3
web/src/main/java/cn/seecoder/web/dao/APITest/APITestMapper.java

@@ -34,15 +34,15 @@ public interface APITestMapper {
     @Options(useGeneratedKeys = true, keyProperty = "param1.id")
     boolean execute(TestResult testResult, String... ignoredCols);
 
-    @Select("select * from test_result where test_id = #{testId} and pipeline_history_id = #{pipelineRecordId}")
+    @Select("select * from test_result where test_id = #{testId} and pipeline_record_id = #{pipelineRecordId}")
     List<TestResult> selectTestResultByTestId(@Param("testId") Integer testId,@Param("pipelineRecordId") Integer pipelineRecordId);
 
     @Delete("delete from test_result where test_id = #{id}")
     boolean deleteTestResult(Integer id);
 
-    @Select("select * from test_result where test_id = #{testId} and pipeline_history_id = #{pipelineRecordId} order by id DESC LIMIT 0,1")
+    @Select("select * from test_result where test_id = #{testId} and pipeline_record_id = #{pipelineRecordId} order by id DESC LIMIT 0,1")
     TestResult selectLatestTestResultById(@Param("testId") Integer testId,@Param("pipelineRecordId") Integer pipelineRecordId);
 
-    @Select("select * from test_result where pipeline_history_id = #{recordId} and test_id = #{testId}")
+    @Select("select * from test_result where pipeline_record_id = #{recordId} and test_id = #{testId}")
     List<APITestResultVO> selectByPipelineRecordId(@Param("recordId") Integer recordId, @Param("testId") Integer testId);
 }

+ 1 - 1
web/src/main/java/cn/seecoder/web/model/po/APITest/APITestResult.java

@@ -26,5 +26,5 @@ public class APITestResult {
     private Integer maxTime;
     private Integer minTime;
     private Double averageTime;
-    private Integer pipelineHistoryId;
+    private Integer pipelineRecordId;
 }

+ 1 - 1
web/src/main/java/cn/seecoder/web/model/vo/APITest/APITestResultVO.java

@@ -48,7 +48,7 @@ public class APITestResultVO {
     private Double averageTime;
 
     @ApiModelProperty("关联的构建历史信息Id, 无关联则为-1")
-    private Integer pipelineHistoryId;
+    private Integer pipelineRecordId;
 
     public APITestResultVO(APITestResult apiTestResult) {
         BeanUtils.copyProperties(apiTestResult, this);