package com.qmth.themis.business.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.qmth.themis.business.dao.TBUserMapper;
import com.qmth.themis.business.dto.response.TBUserDto;
import com.qmth.themis.business.entity.TBUser;
import com.qmth.themis.business.service.TBUserService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.Map;

/**
 * @Description: 用户 服务实现类
 * @Param:
 * @return:
 * @Author: wangliang
 * @Date: 2020/6/25
 */
@Service
public class TBUserServiceImpl extends ServiceImpl<TBUserMapper, TBUser> implements TBUserService {

    @Resource
    TBUserMapper tbUserMapper;

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