package com.qmth.themis.business.dao;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.qmth.themis.business.base.CustomBaseMapper;
import com.qmth.themis.business.dto.response.TBUserDto;
import com.qmth.themis.business.entity.TBUser;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Map;

/**
 * @Description: 用户 Mapper 接口
 * @Param:
 * @return:
 * @Author: wangliang
 * @Date: 2020/6/25
 */
@Mapper
public interface TBUserMapper extends CustomBaseMapper<TBUser> {

    /**
     * 用户查询
     *
     * @param iPage
     * @param id
     * @param loginName
     * @param name
     * @param role
     * @param enable
     * @param orgId
     * @return
     */
    IPage<TBUserDto> userQuery(IPage<Map> iPage, @Param("id") Long id, @Param("loginName") String loginName, @Param("name") String name, @Param("role") String role, @Param("enable") Integer enable, @Param("orgId") Long orgId);
}
