package com.huimv.management.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 com.huimv.common.utils.PageUtils;
import com.huimv.common.utils.Query;

import com.huimv.management.dao.HealthDiseaseDao;
import com.huimv.management.entity.HealthDiseaseEntity;
import com.huimv.management.service.HealthDiseaseService;


@Service("healthDiseaseService")
public class HealthDiseaseServiceImpl extends ServiceImpl<HealthDiseaseDao, HealthDiseaseEntity> implements HealthDiseaseService {

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

        return new PageUtils(page);
    }

}