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<UserInfo> {
|
int deleteByPrimaryKey(Long id);
|
|
UserInfo selectByPrimaryKey(Long id);
|
|
List<UserVo> selectUserDataGrid(@Param("page") Page<UserVo> page,@Param("record") Map<String, Object> record);
|
List<UserVo> selectCompanyUserDataList(@Param("page") Page<UserVo> page,@Param("record") Map<String, Object> record);
|
List<UserVo> selectSuperviseUserDataList(@Param("page") Page<UserVo> page,@Param("record") Map<String, Object> record);
|
|
List<UserInfo> 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<UserInfo> selectNotUpload();
|
|
List<UserVo> selectAll(@Param("record") Map<String, Object> record);
|
|
List<UserVo> getUserList();
|
|
Integer selectCountForExam(Map<Object, Object> params);
|
|
List<UserInfo> selectPageForExam(Map<Object, Object> 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<UserVo> selectExpertUserDataList(@Param("page") Page<UserVo> page,@Param("record") Map<String, Object> record);
|
|
List<UserInfo> selectExpertList(String realname);
|
}
|