package com.gk.hotwork.Mapper; import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import com.gk.hotwork.Config.Oauth2.OauthRole; import com.gk.hotwork.Domain.CompanyInfo; import com.gk.hotwork.Domain.UserInfo; import com.gk.hotwork.Domain.Vo.AccountUserVo; import com.gk.hotwork.Domain.Vo.UserVo; import org.apache.ibatis.annotations.Param; import org.springframework.stereotype.Repository; import java.util.HashMap; import java.util.List; import java.util.Map; @Repository public interface UserInfoMapper extends BaseMapper { int deleteByPrimaryKey(Long id); UserInfo selectByPrimaryKey(Long id); List selectUserDataGrid(@Param("page") Page page,@Param("record") Map record); List selectCompanyUserDataList(@Param("page") Page page,@Param("record") Map record); List selectSuperviseUserDataList(@Param("page") Page page,@Param("record") Map record); List selectUserInfo(@Param("id") Long id, @Param("username") String username); UserVo selectUserVoByName(@Param("examtype")String examtype,@Param("username") String username); UserInfo selectByRealName(@Param("id")Long id,@Param("realname") String realname); UserInfo selectByIdCard(@Param("id")Long id,@Param("idcard") String idcard); List selectNotUpload(); List selectAll(@Param("record") Map record); List getUserList(); Integer selectCountForExam(Map params); List selectPageForExam(Map params); UserInfo getByRealName(@Param("realname") String realname,@Param("depName") String depName); AccountUserVo getAccountByDepartment(@Param("department") String department); AccountUserVo getAccountByUsername(@Param("username")String username); /** 查询by姓名 */ UserInfo getUserByRealName(String trim); /** 查询by姓名 and dep */ UserInfo getUserByRealNameAndDep(String name, Long dep); /** 查询by Id */ UserInfo getByUserId(Long userId); List selectExpertUserDataList(@Param("page") Page page,@Param("record") Map record); List selectExpertList(String realname); }