You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
/**
* 定义包名,表明该类所属的模块和目录结构,这里是系统模块下的 mapper 包。
*/
package com.yf.exam.modules.sys.system.mapper ;
/**
* 导入 MyBatis 的 Mapper 注解,用于标识该接口是一个 MyBatis 的映射器接口。
*/
import org.apache.ibatis.annotations.Mapper ;
/**
* 导入 MyBatis 的 Param 注解,用于为方法参数指定名称,在 SQL 语句中可以使用该名称引用参数。
*/
import org.apache.ibatis.annotations.Param ;
/**
* <p>
* 机主信息Mapper, 用于与数据库中机主信息相关表进行交互, 定义数据库操作方法。
* </p>
*
* @author 聪明笨狗
* @since 2020-08-22 13:46
*/
// 标识该接口是 MyBatis 的映射器接口, Spring 会自动扫描并将其注册到 MyBatis 中。
@Mapper
public interface SysDictMapper {
/**
* 查找数据字典,根据传入的表名、文本、键和值在数据库中查找对应的字典数据。
*
* @param table 要查询的数据库表名
* @param text 用于查询的文本条件
* @param key 用于查询的键条件
* @param value 用于查询的值条件
* @return 返回查询到的字典数据,如果未找到则返回 null。
*/
String findDict ( @Param ( "table" ) String table ,
@Param ( "text" ) String text ,
@Param ( "key" ) String key ,
@Param ( "value" ) String value ) ;
}