package com.njzscloud.supervisory.user.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.njzscloud.supervisory.user.pojo.SysUserAccountEntity;
import com.njzscloud.common.security.support.UserDetail;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * <p>sys_user_account</p>
 * <p>用户账号信息表</p>
 */
@Mapper
public interface SysUserAccountMapper extends BaseMapper<SysUserAccountEntity> {

    /**
     * 分页查询
     *
     * @param page 分页参数
     * @param ew   查询条件
     * @return IPage&lt;SysUserAccountEntity&gt; 分页结果
     */
    IPage<SysUserAccountEntity> paging(IPage<SysUserAccountEntity> page, @Param(Constants.WRAPPER) Wrapper<SysUserAccountEntity> ew);

    UserDetail selectUserByAccount(String account);
}
