package com.jwipc.sys.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.jwipc.sys.entity.UserLogin;
import com.jwipc.sys.mapper.UserLoginMapper;
import com.jwipc.sys.model.po.UserLoginPO;
import com.jwipc.sys.model.query.LoginLogQuery;
import com.jwipc.sys.service.IUserLoginService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author shenyang.ou
 * @since 2024-01-30
 */
@Service
public class UserLoginServiceImpl extends ServiceImpl<UserLoginMapper, UserLogin> implements IUserLoginService {

    @Override
    public List<UserLoginPO> findPageByQuery(Page<UserLogin> dbPage, LoginLogQuery query) {
        if (dbPage==null){
            return baseMapper.findPageByQuery(query);
        }
        return baseMapper.findPageByQuery(dbPage,query);
    }
}
