package com.ruoyi.ems.mapper;

import com.ruoyi.ems.domain.InspectionRule;

import java.util.List;

/**
 * 巡检规则Mapper接口
 */
public interface InspectionRuleMapper {

    InspectionRule selectById(Long id);

    List<InspectionRule> selectByPlanCode(String planCode);

    List<InspectionRule> selectEnabledByPlanCode(String planCode);

    int insert(InspectionRule rule);

    int insertBatch(List<InspectionRule> rules);

    int update(InspectionRule rule);

    int deleteById(Long id);

    int deleteByPlanCode(String planCode);
}