jinlin
2024-02-21 b27d06b8f0b805efd16e28fd80a57a0ed8a053ce
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
/**
 * Copyright (c) 2018 人人开源 All rights reserved.
 * <p>
 * https://www.renren.io
 * <p>
 * 版权所有,侵权必究!
 */
 
package com.zt.modules.sys.dao;
 
import com.zt.common.dao.BaseDao;
import com.zt.core.context.User;
import com.zt.core.sys.model.SysUser;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
 
import java.util.Date;
import java.util.List;
import java.util.Map;
 
/**
 * 系统用户
 *
 * @author hehz
 */
@Mapper
public interface SysUserDao extends BaseDao<SysUser> {
 
    List<SysUser> getList(Map<String, Object> params);
 
    SysUser getById(Long id);
 
    SysUser getByUsername(String username);
    List<SysUser> checkUserArea(Long userId, String localServer);
 
    List<SysUser> isGetByUsernameList(@Param("username") String username, @Param("unitid") Long unitid, @Param("code") String code, @Param("password") String password);
 
    List<SysUser> isDomainName(String code);
 
    void updateLogin(@Param("id") Long id, @Param("loginErrorCount") Integer loginErrorCount, @Param("isLocked") Integer isLocked, @Param("lastLoginErrorTime") Date lastLoginErrorTime);
 
    User userRoleInfo(@Param("userId") Long userId, @Param("username") String username, @Param("systemId") String systemId);
 
    String getRoles(Long userId);
    String getRoleNames(Long userId);
 
    List<SysUser> getByDeptIds(@Param("deptIds") List<Long> deptIds);
 
    SysUser getEntity(Long id);
 
    List<SysUser> getNewConnectUser(String newShipTeam);
 
 
    void updatePassword(SysUser entity);
 
    Integer checkTestHome(String systemId, Long userId);
    List<SysUser> getUsersList(String type, String deptId);
 
    String getUsersName(String id);
}