package com.ruoyi.zdsz.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ruoyi.zdsz.domain.ZArea;
import com.ruoyi.zdsz.domain.ZBuilding;
import com.ruoyi.zdsz.domain.bo.ZBuildingBo;
import com.ruoyi.zdsz.domain.vo.ZAreaVo;
import com.ruoyi.zdsz.domain.vo.ZBuildingVo;
import com.ruoyi.common.core.mapper.BaseMapperPlus;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 楼栋管理Mapper接口
 *
 * @author ruoyi
 * @date 2023-12-27
 */
public interface ZBuildingMapper extends BaseMapperPlus<ZBuildingMapper, ZBuilding, ZBuildingVo> {
    Page<ZBuildingVo> getPageList(@Param("p") ZBuildingBo bo, Page<?> page);

    List<ZBuildingVo> getBuildingList(String areaId);

    ZBuilding getByName(@Param("name")String name,@Param("areaId")String areaId);
}
