zhizhijie
5 天以前 7f958f5bea92039eaf6d4f2af3cc0c46a86b8c94
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();
}