|
|
@@ -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);
|
|
|
}
|