// SecExceptionAlgorithmMapper.java
package com.common.mapper;

import com.common.entity.SecExceptionAlgorithm;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Param;
import java.util.List;

@Mapper
public interface SecExceptionAlgorithmMapper {

    @Select("SELECT * FROM sec_exception_algorithm WHERE status = 1 AND del_flag = '0'")
    List<SecExceptionAlgorithm> findEnabledAlgorithms();

    @Select("SELECT * FROM sec_exception_algorithm WHERE id = #{id}")
    SecExceptionAlgorithm findById(@Param("id") Long id);
}