package com.pm.subsystem.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.pm.subsystem.mapper.CommonMapper;
import com.pm.subsystem.service.ICommonService;
import com.pm.common.config.PageData;

/**
 * 子系统公共Service业务层处理
 * 
 * @author pm
 * @date 2025-01-01
 */
@Service
public class CommonServiceImpl implements ICommonService
{
    @Autowired
    private CommonMapper commonMapper;

    /**
     * 查询楼栋列表
     * 
     * @return 楼栋集合
     */
    @Override
    public List<PageData> selectBuildingList()
    {
        return commonMapper.selectBuildingList();
    }

    /**
     * 查询楼层列表
     * 
     * @param pd 查询参数(buildingId)
     * @return 楼层集合
     */
    @Override
    public List<PageData> selectFloorList(PageData pd)
    {
        return commonMapper.selectFloorList(pd);
    }
}