content: 
  package com.service.impl;
  
  
  import java.util.List;
  import java.util.Map;
  
  import org.springframework.stereotype.Service;
  
  import com.baomidou.mybatisplus.mapper.EntityWrapper;
  import com.baomidou.mybatisplus.mapper.Wrapper;
  import com.baomidou.mybatisplus.plugins.Page;
  import com.baomidou.mybatisplus.service.impl.ServiceImpl;
  import com.dao.UserDao;
  import com.entity.UserEntity;
  import com.service.UserService;
  import com.utils.PageUtils;
  import com.utils.Query;
  
  
  /**
   * 系统用户
   */
  @Service("userService")
  public class UserServiceImpl extends ServiceImpl<UserDao, UserEntity> implements UserService {
  
  	@Override
  	public PageUtils queryPage(Map<String, Object> params) {
  		Page<UserEntity> page = this.selectPage(
                  new Query<UserEntity>(params).getPage(),
                  new EntityWrapper<UserEntity>()
          );
          return new PageUtils(page);
  	}
  
  	@Override
  	public List<UserEntity> selectListView(Wrapper<UserEntity> wrapper) {
  		return baseMapper.selectListView(wrapper);
  	}
  
  	@Override
  	public PageUtils queryPage(Map<String, Object> params,
  			Wrapper<UserEntity> wrapper) {
  		 Page<UserEntity> page =new Query<UserEntity>(params).getPage();
  	        page.setRecords(baseMapper.selectListView(page,wrapper));
  	    	PageUtils pageUtil = new PageUtils(page);
  	    	return pageUtil;
  	}
  }
  