package com.sptg.estate.biz.mapper;

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

/**
 * title: BuildingMapper
 * package: com.sptg.estate.biz.mapper
 * description: 楼栋 DAO接口
 *
 *             
 *                 
 */
public interface BuildingMapper extends BaseMapper<Building>{

    /**
     * 功能描述:根据条件查询单元
     * @param buildingDto 楼栋业务对象
     * @param wrapper 查询条件
     * @return int 数量
     *             
     *                      
     */
    int findBuildingByCondition(@Param(value = "dto") BuildingDto buildingDto, @Param(value = "ew") Wrapper<Building> wrapper);
}
