xyc
2026-08-14 1f4a6cc6045f47861c3e8d49a782afc3e11e3843
1
2
3
4
5
6
7
8
9
10
11
package com.trafficaudit.rulemanage.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.trafficaudit.rulemanage.entity.AuditRule;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import java.util.List;
@Mapper
public interface AuditRuleMapper extends BaseMapper<AuditRule> {
    @Select("SELECT * FROM audit_rule WHERE is_enabled = 1 ORDER BY sort_order")
    List<AuditRule> selectEnabledRules();
}