yeg
2026-09-29 b78295e8da96c3e5e76befeef9582ce5273dbb74
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
package com.battery.business.service;
 
import java.util.List;
import com.battery.business.domain.TTest;
import com.battery.business.domain.vo.TestConfigurationOptionsVo;
import com.battery.business.domain.TTestLogicStepMapping;
import com.battery.business.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 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);
 
    /** 保存当前测试的逻辑工步合并规则。 */
    int saveLogicStepMappings(Long testId, List<TTestLogicStepMapping> mappings, Long operatorId, String updateBy);
    /** 保存测试详情当前最新版,允许所有测试状态且不产生审计记录。 */
    int saveConsoleDetail(Long testId, TTestConsoleDetail detail, Long operatorId, String updateBy);
 
}