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.ShDeviceRecordDao;
import tech.glinfo.enbao.modules.sh.entity.ShDeviceRecordEntity;
import tech.glinfo.enbao.modules.sh.service.ShDeviceRecordService;


@Service("shDeviceRecordService")
public class ShDeviceRecordServiceImpl extends ServiceImpl<ShDeviceRecordDao, ShDeviceRecordEntity> implements ShDeviceRecordService {

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

        return new PageUtils(page);
    }

}