package com.ruoyi.basic.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.basic.domain.question.QuestionRule;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;

@Mapper
public interface QuestionRuleMapper extends BaseMapper<QuestionRule> {

    /**
     * 根据问卷ID查询启用的规则（按优先级升序）
     * @param surveyId 问卷ID
     * @return 规则列表
     */
    List<QuestionRule> selectEnabledBySurveyId(@Param("surveyId") Long surveyId);
}
