package com.battery.business.mapper; import java.util.List; import org.apache.ibatis.annotations.Param; import com.battery.business.domain.TBatteryGroupField; /** * 电池组字段 Mapper 接口。 * * @author ruoyi */ public interface TBatteryGroupFieldMapper { /** 查询字段详情。 */ TBatteryGroupField selectBatteryGroupFieldById(Long fieldId); /** 查询字段列表。 */ List selectBatteryGroupFieldList(TBatteryGroupField field); /** 根据名称查询未删除字段。 */ TBatteryGroupField selectBatteryGroupFieldByName(String fieldName); /** 新增字段。 */ int insertBatteryGroupField(TBatteryGroupField field); /** 编辑字段基础资料。 */ int updateBatteryGroupField(TBatteryGroupField field); /** 更新字段状态。 */ int updateBatteryGroupFieldStatus(TBatteryGroupField field); /** 逻辑删除字段。 */ int deleteBatteryGroupFieldById(@Param("fieldId") Long fieldId, @Param("updateBy") String updateBy); /** 查询字段是否已被模板或电池组使用。 */ int countFieldReferences(Long fieldId); }