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.ShDeviceDataDao;
import tech.glinfo.enbao.modules.sh.entity.ShDeviceDataEntity;
import tech.glinfo.enbao.modules.sh.service.ShDeviceDataService;


@Service("shDeviceDataService")
public class ShDeviceDataServiceImpl extends ServiceImpl<ShDeviceDataDao, ShDeviceDataEntity> implements ShDeviceDataService {

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

        return new PageUtils(page);
    }

}