package com.ruoyi.zdsz.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ruoyi.zdsz.domain.ZUnit;
import com.ruoyi.zdsz.domain.bo.ZBuildingBo;
import com.ruoyi.zdsz.domain.bo.ZUnitBo;
import com.ruoyi.zdsz.domain.vo.ZBuildingVo;
import com.ruoyi.zdsz.domain.vo.ZUnitVo;
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 ZUnitMapper extends BaseMapperPlus<ZUnitMapper, ZUnit, ZUnitVo> {
    Page<ZUnitVo> getPageList(@Param("p") ZUnitBo bo, Page<?> page);

    List<ZUnitVo> getUnitList(@Param("buildingId") String buildingId);

    ZUnit getByName(@Param("name")String name,@Param("buildingId")String buildingId);

}
