package tech.glinfo.enbao.modules.sh.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import tech.glinfo.enbao.common.utils.PageUtils;
import tech.glinfo.enbao.common.utils.Query;

import tech.glinfo.enbao.modules.sh.dao.ShFamilyRoomDao;
import tech.glinfo.enbao.modules.sh.entity.ShFamilyRoomEntity;
import tech.glinfo.enbao.modules.sh.service.ShFamilyRoomService;


@Service("shFamilyRoomService")
public class ShFamilyRoomServiceImpl extends ServiceImpl<ShFamilyRoomDao, ShFamilyRoomEntity> implements ShFamilyRoomService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<ShFamilyRoomEntity> page = this.page(
                new Query<ShFamilyRoomEntity>().getPage(params),
                new QueryWrapper<ShFamilyRoomEntity>()
        );

        return new PageUtils(page);
    }

}