郑永安
2023-09-19 69185134fcfaf913ea45f1255677225a2cc311a4
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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
package com.gk.hotwork.Service;
 
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.gk.hotwork.Domain.DepartmentInfo;
import com.gk.hotwork.Domain.RoleInfo;
import com.gk.hotwork.Domain.UserInfo;
import com.gk.hotwork.Domain.Utils.Msg;
import com.gk.hotwork.Domain.Utils.PageInfo;
import com.gk.hotwork.Domain.Vo.AccountUserVo;
import com.gk.hotwork.Domain.Vo.RegisterVo;
import com.gk.hotwork.Domain.Vo.UserVo;
import org.apache.catalina.User;
 
import java.util.HashMap;
import java.util.List;
import java.util.Map;
 
public interface UserService extends IService<UserInfo> {
 
    void selectUserDataGrid(PageInfo pageInfo);
 
    UserInfo selectByUser(String username);
 
    List<UserInfo> selectUserInfo(Long id, String username);
 
    boolean checkUserById(String userId);
 
    UserVo selectUserVoByName(String examtype, String username);
 
    void deleteById(Long id);
 
    void recoverOneById(Long id);
 
    UserInfo selectByRealName(Long id,String realname);
 
    UserInfo getByRealName(String realname, String depName);
 
    UserInfo selectByIdCard(Long id,String idcard);
 
    List<UserInfo> selectNotUpload();
 
    List<UserVo> selectAll(HashMap<String, Object> condition);
 
    List<UserInfo> selectByCompany(String company);
 
    Msg saveEmployee(String realname, String empNo, String deviceNo) throws Exception;
 
    Msg setCardValid(String isValid, String cardId) throws Exception;
 
    Msg delEmployee(String cardId) throws Exception;
 
    Msg getRealGps() throws Exception;
 
    UserInfo selectUserByCard(String deviceNo, String empNo, String name);
 
    List<UserInfo> getGps(String username);
 
    int selectUserSize();
 
    UserInfo getByDeviceNo(String uid);
 
    IPage<UserVo> selectUserPageInDepartment(Page<UserVo> page, Map<String, Object> filter, UserInfo user);
 
    List<UserVo> getUserList();
 
    UserInfo examForegroundLogin(String username, String password);
 
    Integer selectCountForExam(String name, String idno, String tel, String department,String company);
 
    List<UserInfo> selectPageForExam(String name, String idno, String tel, String department, String company, Integer first, Integer pageSize);
 
    void register(RegisterVo registerVo);
 
    void pwdChange(String username, String password, String phone);
 
    AccountUserVo getAccount(String username, String department);
 
 
    /**
     * @Description: 手机号是否正在被使用
     * @date 2022/5/11 9:33
     */
    boolean phoneIsOccupied(String phone);
 
    /**
     * @Description: 身份证是否正在被使用
     * @date 2022/5/11 9:39
     */
    boolean idCardIsOccupied(String idCard);
 
    /**
    * @Description: 考试后台登录
    * @date 2022/5/12 9:32
    */
    UserInfo examBackgroundLogin(String username, String password);
    /**
    查询by姓名
     */
    UserInfo getUserByRealName(String trim);
    /**
     查询by姓名 and dep
     */
    UserInfo getUserByRealNameAndDep(String name, Long dep);
    /**
     查询by Id
     */
    UserInfo getByUserId(Long userId);
 
}