package tech.glinfo.enbao.modules.sh.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
import tech.glinfo.enbao.common.utils.PageUtils;
import tech.glinfo.enbao.common.utils.Query;
import tech.glinfo.enbao.modules.sh.dao.ShDeviceCategoryDao;
import tech.glinfo.enbao.modules.sh.entity.ShDeviceCategoryEntity;
import tech.glinfo.enbao.modules.sh.service.ShDeviceCategoryService;

import java.util.Map;


@Service("shDeviceCategoryService")
public class ShDeviceCategoryServiceImpl extends ServiceImpl<ShDeviceCategoryDao, ShDeviceCategoryEntity> implements ShDeviceCategoryService {

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

        return new PageUtils(page);
    }

}