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.UserDetailResult;
import com.njzscloud.supervisory.user.pojo.SysUserEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 用户信息表
 */
@Mapper
public interface SysUserMapper extends BaseMapper<SysUserEntity> {

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