xyc
4 天以前 b997aba3a4499e7f7b71392418ba68c5d3cd7c31
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();
}