package com.jwipc.sys.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.jwipc.sys.entity.User;
import com.jwipc.sys.mapper.UserMapper;
import com.jwipc.sys.model.query.UserListQuery;
import com.jwipc.sys.service.IUserService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 用户表 服务实现类
 * </p>
 *
 * @author zhangjie
 * @since 2024-01-26
 */
@Service
public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements IUserService {

    @Override
    public List<User> findPageByQuery(Page<User> dbPage, UserListQuery query) {
        return this.baseMapper.selectPageByQuery(dbPage, query);
    }

    @Override
    public List<User> findPageByQuery(UserListQuery query) {
        return this.baseMapper.selectPageByQuery(query);
    }
}
