yeg
2026-09-03 e35881f24e349e865d7a1dbbebc1a7e55ecc7a16
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
package com.ruoyi.system.service;
 
import java.util.List;
import com.ruoyi.system.domain.TTest;
import com.ruoyi.system.domain.TTestResult;
import com.ruoyi.system.domain.vo.TestConfigurationOptionsVo;
import com.ruoyi.system.domain.TTestLogicStepMapping;
import com.ruoyi.system.domain.TTestConsoleDetail;
 
/** 测试配置业务接口。 */
public interface ITTestService
{
    /** 返回测试配置、正式测试状态和独立接收状态。 */
    TTest selectTestById(Long testId);
 
    /** 按正式测试状态、接收状态及配置条件查询测试。 */
    List<TTest> selectTestList(TTest test);
 
    /** 返回当前启用且已正式登记的测试配置选项。 */
    TestConfigurationOptionsVo selectConfigurationOptions();
 
    /** 创建未开始接收的待测试记录并返回测试标识。 */
    Long createTest(TTest test);
 
    /** 仅在尚未开始接收时替换测试配置。 */
    int updateTest(TTest test);
 
    /** 旧服务入口已停用;调用方须使用带操作人的原子开始接收方法。 */
    int startTest(Long testId, String updateBy);
 
    /** 原子开始接收:校验全部来源并开启测试数据请求。 */
    int startReception(Long testId, Long operatorId, String updateBy);
 
    /** 原子暂停接收:停止测试数据请求并保留最后实时快照。 */
    int pauseReception(Long testId, Long operatorId, String updateBy);
 
    /** 原子继续接收:恢复测试数据请求。 */
    int resumeReception(Long testId, Long operatorId, String updateBy);
 
    /** 原子停止测试:停止数据请求并进入不可恢复终态。 */
    int stopTest(Long testId, Long operatorId, String updateBy);
 
    /** 仅删除未开始接收的测试并追加审计记录。 */
    int deleteTestByIds(Long[] testIds, Long operatorId, String updateBy);
 
    /** 查询指定测试已持久化的结果记录。 */
    List<TTestResult> selectTestResults(TTestResult result);
    /** 保存当前测试的逻辑工步合并规则。 */
    int saveLogicStepMappings(Long testId, List<TTestLogicStepMapping> mappings, Long operatorId, String updateBy);
    /** 保存测试详情当前最新版,允许所有测试状态且不产生审计记录。 */
    int saveConsoleDetail(Long testId, TTestConsoleDetail detail, Long operatorId, String updateBy);
 
}