package tech.glinfo.enbao.modules.infrared.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.infrared.dao.InfraredControlDao;
import tech.glinfo.enbao.modules.infrared.entity.InfraredControlEntity;
import tech.glinfo.enbao.modules.infrared.service.InfraredControlService;


@Service("infraredControlService")
public class InfraredControlServiceImpl extends ServiceImpl<InfraredControlDao, InfraredControlEntity> implements InfraredControlService {

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

        return new PageUtils(page);
    }

}