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.
gym/DictionaryDao.java

37 lines
1.4 KiB

This file contains ambiguous Unicode characters!

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.

// 声明当前文件所在的包路径表示该接口位于com.dao包下
package com.dao;
// 导入字典实体类,用于操作数据库中的字典表
import com.entity.DictionaryEntity;
// 导入MyBatis Plus的基础Mapper接口提供基本的CRUD操作
import com.baomidou.mybatisplus.mapper.BaseMapper;
// 导入Java的List集合类用于返回多个结果的集合
import java.util.List;
// 导入Java的Map集合类用于传递键值对参数
import java.util.Map;
// 导入MyBatis Plus的分页插件类用于实现分页查询功能
import com.baomidou.mybatisplus.plugins.pagination.Pagination;
// 导入MyBatis的Param注解用于给Mapper接口的参数命名
import org.apache.ibatis.annotations.Param;
// 导入字典视图类,用于返回自定义的视图对象
import com.entity.view.DictionaryView;
//字典 Dao 接口
//该接口继承自MyBatis Plus的BaseMapper提供对字典表的基本操作
//并定义了自定义的查询方法
// @author
public interface DictionaryDao extends BaseMapper<DictionaryEntity> {
//分页查询字典数据
// @param page 分页参数对象,包含当前页、每页数量等信息
//@param params 查询条件参数Map可以包含各种查询条件
// @return 返回字典视图对象的列表,包含查询结果数据
List<DictionaryView> selectListView(Pagination page,@Param("params")Map<String,Object> params);
}