38 lines
662 B
Java
38 lines
662 B
Java
package com.solution.rule.mapper;
|
|
|
|
import com.solution.rule.domain.Rule;
|
|
import org.apache.ibatis.annotations.Param;
|
|
|
|
import java.util.List;
|
|
|
|
public interface RuleMapper {
|
|
/**
|
|
* 根据ID查询规则
|
|
*/
|
|
Rule selectRuleById(Integer id);
|
|
|
|
/**
|
|
* 查询规则列表(支持分页)
|
|
*/
|
|
List<Rule> selectRuleList(Rule rule);
|
|
|
|
/**
|
|
* 新增规则
|
|
*/
|
|
int insertRule(Rule rule);
|
|
|
|
/**
|
|
* 修改规则
|
|
*/
|
|
int updateRule(Rule rule);
|
|
|
|
/**
|
|
* 删除规则
|
|
*/
|
|
int deleteRuleById(Integer id);
|
|
|
|
/**
|
|
* 批量删除规则
|
|
*/
|
|
int deleteRuleByIds(@Param("ids")Integer[] ids);
|
|
} |