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/JianshenkechengDao.java

35 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.JianshenkechengEntity;
// 导入MyBatis Plus的基础Mapper接口提供基本的CRUD操作
import com.baomidou.mybatisplus.mapper.BaseMapper;
// 导入List集合类用于返回多条数据
import java.util.List;
// 导入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.JianshenkechengView;
//健身课程 Dao 接口
//继承MyBatis Plus的BaseMapper接口提供对JianshenkechengEntity的基本数据库操作
// @author 作者信息(未填写)
public interface JianshenkechengDao extends BaseMapper<JianshenkechengEntity> {
// 分页查询健身课程列表
// @param page 分页对象,包含当前页、每页显示条数等信息
// @param params 查询参数Map集合可包含各种筛选条件
//@return 返回健身课程视图对象的列表,用于前端展示
List<JianshenkechengView> selectListView(Pagination page,@Param("params")Map<String,Object> params);
}