yeg
2026-09-02 a5b6c6d16634f1fa14edf6fe5e7dd6080bef1772
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
package com.ruoyi.system.mapper;
 
import java.util.List;
import org.apache.ibatis.annotations.Param;
import com.ruoyi.system.domain.TBatteryGroupField;
import com.ruoyi.system.domain.TBatteryGroupTemplate;
import com.ruoyi.system.domain.TBatteryGroupTemplateField;
 
/**
 * 电池组模板 Mapper 接口。
 *
 * @author ruoyi
 */
public interface TBatteryGroupTemplateMapper
{
    /** 查询模板主表。 */
    TBatteryGroupTemplate selectBatteryGroupTemplateById(Long templateId);
 
    /** 按名称查询模板。 */
    TBatteryGroupTemplate selectBatteryGroupTemplateByName(String templateName);
 
    /** 查询全部模板下拉选项。 */
    List<TBatteryGroupTemplate> selectBatteryGroupTemplateOptions();
 
    /** 查询模板的有效字段关系。 */
    List<TBatteryGroupTemplateField> selectTemplateFields(Long templateId);
 
    /** 查询指定 ID 中处于启用状态的未删除字段。 */
    List<TBatteryGroupField> selectEnabledFieldsByIds(@Param("fieldIds") List<Long> fieldIds);
 
    /** 新增模板主表。 */
    int insertBatteryGroupTemplate(TBatteryGroupTemplate template);
 
    /** 更新模板名称。 */
    int updateBatteryGroupTemplate(TBatteryGroupTemplate template);
 
    /** 逻辑删除模板的旧字段关系。 */
    int deleteTemplateFields(@Param("templateId") Long templateId);
 
    /** 批量新增模板字段关系。 */
    int batchInsertTemplateFields(@Param("fields") List<TBatteryGroupTemplateField> fields);
}