package com.sptg.estate.biz.mapper;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.baomidou.mybatisplus.mapper.Wrapper;
import com.sptg.estate.api.dto.RoomDto;
import com.sptg.estate.api.entity.Room;
import org.apache.ibatis.annotations.Param;

/**
 * title: RoomMapper
 * package: com.sptg.estate.biz.mapper
 * description: 房间 DAO接口
 *
 *             
 *                 
 */
public interface RoomMapper extends BaseMapper<Room>{

    /**
     * 功能描述:根据条件查询单元
     * @param roomDto 房间业务对象
     * @param wrapper 查询条件
     * @return int 数量
     *             
     *                      
     */
    int findRoomByCondition(@Param(value = "dto") RoomDto roomDto, @Param(value = "ew") Wrapper<Room> wrapper);
}
