yeg
2026-09-02 4eaa4be4d2cbd2aa49d36a313ce71ad3e743db4a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
package com.ruoyi.system.service;
 
import java.util.List;
import com.ruoyi.system.domain.TTestFieldSnapshot;
 
/** 共享业务字段快照服务,隔离字段来源、快照规则和存储实现。 */
public interface ISharedFieldSnapshotService
{
    /** 从电池组当前共享字段创建一份测试快照。 */
    List<TTestFieldSnapshot> createForBatteryGroup(Long groupId);
 
    /** 同组编辑保留原快照,切换电池组时按新组创建快照。 */
    List<TTestFieldSnapshot> resolveForUpdate(Long currentGroupId, Long nextGroupId,
            List<TTestFieldSnapshot> currentSnapshots);
 
    /** 返回测试保存的不可变共享字段快照。 */
    List<TTestFieldSnapshot> selectByTestId(Long testId);
 
    /** 保存测试的共享字段快照。 */
    void saveForTest(Long testId, List<TTestFieldSnapshot> snapshots);
 
    /** 删除测试快照;调用方须在未开始接收的配置事务内完成替换。 */
    void deleteByTestId(Long testId);
}