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.ShDlinkDeviceDao;
import tech.glinfo.enbao.modules.sh.entity.ShDlinkDeviceEntity;
import tech.glinfo.enbao.modules.sh.service.ShDlinkDeviceService;


@Service("shDlinkDeviceService")
public class ShDlinkDeviceServiceImpl extends ServiceImpl<ShDlinkDeviceDao, ShDlinkDeviceEntity> implements ShDlinkDeviceService {

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

        return new PageUtils(page);
    }

}