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.ShDevicePowerDao;
import tech.glinfo.enbao.modules.sh.entity.ShDevicePowerEntity;
import tech.glinfo.enbao.modules.sh.service.ShDevicePowerService;


@Service("shDevicePowerService")
public class ShDevicePowerServiceImpl extends ServiceImpl<ShDevicePowerDao, ShDevicePowerEntity> implements ShDevicePowerService {

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

        return new PageUtils(page);
    }

}