package com.chenxuan.mapper; import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import com.chenxuan.entity.dto.BusiCenterThresholdConfDto; import com.chenxuan.entity.model.BusiCenterThresholdConf; import com.chenxuan.entity.vo.BusiCenterThresholdConfVo; import com.chenxuan.entity.vo.BusiEnvironmentThresholdConfVo; import org.apache.ibatis.annotations.Mapper; import org.apache.ibatis.annotations.Param; import java.util.List; /** * @ClassName:BusiCenterThresholdConfMapper * @Description: 中心点电流阈值配置Mapper接口. * @Author: Jordan_Li * @CreatTime:6/8/2020 15:12 PM * @Version V1.0 */ @Mapper public interface BusiCenterThresholdConfMapper extends BaseMapper { /** * @Description: 分页 * * @Param page * @Param params * @Return: 中心点电流阈值配置集合信息 **/ List selectPages(Page page, @Param("params") BusiCenterThresholdConfDto dto); /** * 保存中心点电流阈值配置信息 * * @param busicenterthresholdconf * @return */ int saveThresholdConf(BusiCenterThresholdConf busicenterthresholdconf); /** * 更新中心点电流阈值配置信息 * * @param busicenterthresholdconf * @return */ int updateThresholdConf(BusiCenterThresholdConf busicenterthresholdconf); /** * 通过主变ID查询中心点电流阈值配置信息 * * @param mainId 主变ID * @return 中心点电流阈值配置信息 */ BusiCenterThresholdConfVo findThresholdConfByMainId(String mainId); /** * 通过主变ID删除对应的中心点电流阈值配置信息 * * @param mainId 主变ID * @return 结果 */ int deleteThresholdConfByMainId(String mainId); /** * 通过主变ID删除对应的中心点电流阈值配置关系 * * @param mainId * @return */ int deleteThresholdConfRelation(String mainId); /** * 通过id删除中心点电流阈值配置信息 * * @param id 中心点电流阈值配置ID * @return 结果 */ int delete(String id); BusiEnvironmentThresholdConfVo findEnvironmentThresholdConfByMainId(String mainId); }