package com.yeejoin.equipmanage.operation.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yeejoin.equipmanage.common.entity.dto.BuildSearchDTO;
import com.yeejoin.equipmanage.context.SpringContextHolder;
import com.yeejoin.equipmanage.operation.PageOperation;
import com.yeejoin.equipmanage.service.IBuilldService;
import com.yeejoin.equipmanage.service.impl.BuildingServiceImpl;

/**
 * @Author: songLei
 * @Description: groupType是room的时候的分页器
 * @Date: 2020/12/23 10:36
 * @Version: 1.0
 */
public class RoomPage implements PageOperation {
    @Override
    public Page apply(Page page, BuildSearchDTO dto) {
        IBuilldService builldService = SpringContextHolder.getBean(BuildingServiceImpl.class);
        return builldService.roomPage(page,dto);
    }
}
