zhangfeng
2023-07-22 ef406c4432c290f2627fa3742a1489e660dcc239
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
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(Page<UserVo> page, Map<String, Object> record);
    List<UserVo> selectCompanyUserDataList(Page<UserVo> page, Map<String, Object> record);
    List<UserVo> selectSuperviseUserDataList(Page<UserVo> page, 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(String realname, 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(Page<UserVo> page, Map<String, Object> record);
 
    List<UserInfo> selectExpertList(String realname);
 
    UserVo selectUserVoById(Long userId);
}