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.
hotels/back/src/main/java/com/service/KefangyudingService.java

50 lines
2.5 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.

package com.service; // 声明该Java类所在的包为com.service
// 导入MyBatis-Plus的Wrapper类用于构建动态查询条件
import com.baomidou.mybatisplus.mapper.Wrapper;
// 导入MyBatis-Plus的IService接口它提供了通用的CRUD创建、读取、更新、删除操作方法
import com.baomidou.mybatisplus.service.IService;
// 导入自定义的分页工具类PageUtils用于处理分页查询结果
import com.utils.PageUtils;
// 导入客房预定实体类,代表数据库中客房预定表的记录
import com.entity.KefangyudingEntity;
// 导入List接口用于存储多个对象的集合
import java.util.List;
// 导入Map接口用于存储键值对通常用于传递查询参数
import java.util.Map;
// 导入客房预定的值对象类,用于封装特定视图展示所需的数据
import com.entity.vo.KefangyudingVO;
// 导入MyBatis的@Param注解用于在Mapper方法中指定参数名称
import org.apache.ibatis.annotations.Param;
// 导入客房预定的视图类,用于封装特定视图展示所需的数据
import com.entity.view.KefangyudingView;
/**
* 客房预定
*
* @author
* @email
* @date 2022-04-04 00:20:04
*/
// 定义客房预定服务接口继承自IService<KefangyudingEntity>意味着它拥有对KefangyudingEntity实体的基本CRUD操作能力
public interface KefangyudingService extends IService<KefangyudingEntity> {
// 根据传入的参数进行分页查询返回一个包含分页信息和查询结果的PageUtils对象
PageUtils queryPage(Map<String, Object> params);
// 根据传入的查询条件Wrapper查询符合条件的客房预定VO列表返回一个List集合
List<KefangyudingVO> selectListVO(Wrapper<KefangyudingEntity> wrapper);
// 根据传入的查询条件Wrapper查询符合条件的单个客房预定VO对象@Param注解指定参数名称为"ew"
KefangyudingVO selectVO(@Param("ew") Wrapper<KefangyudingEntity> wrapper);
// 根据传入的查询条件Wrapper查询符合条件的客房预定View列表返回一个List集合
List<KefangyudingView> selectListView(Wrapper<KefangyudingEntity> wrapper);
// 根据传入的查询条件Wrapper查询符合条件的单个客房预定View对象@Param注解指定参数名称为"ew"
KefangyudingView selectView(@Param("ew") Wrapper<KefangyudingEntity> wrapper);
// 根据传入的参数和查询条件Wrapper进行分页查询返回一个包含分页信息和查询结果的PageUtils对象
PageUtils queryPage(Map<String, Object> params, Wrapper<KefangyudingEntity> wrapper);
}