无关风月
2025-02-28 2f8e70ad2884d2b6b7443dfae0af11ae9cfc8b99
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
package com.jilongda.manage.authority.service;
 
import com.baomidou.mybatisplus.extension.service.IService;
import com.jilongda.manage.authority.dto.SecUserDTO;
import com.jilongda.manage.authority.dto.SecUsersDTO;
import com.jilongda.manage.authority.model.SecUser;
import com.jilongda.manage.authority.query.SecUserLowerQuery;
import com.jilongda.manage.authority.vo.SecResourceVO;
import com.jilongda.manage.authority.vo.SecUsersVO;
import com.jilongda.common.basic.PageInfo;
 
import java.util.List;
 
/**
 * <p>
 * 服务类
 * </p>
 *
 * @author xiaochen
 * @since 2022-06-08
 */
public interface SecUserService extends IService<SecUser> {
 
    /**
     * 获取用户的资源--含层级结构
     *
     * @param uid
     * @return
     */
    List<SecResourceVO> selectUserResourcesTag(Long uid);
 
    /**
     * 获取用户的资源--含层级结构
     *
     * @param uid
     * @return
     */
    List<SecResourceVO> getResourceTag(Long uid);
 
    /**
     * 获取用户列表
     *
     * @param dto
     * @return
     */
    PageInfo<SecUsersVO> getSysUserList(SecUsersDTO dto);
 
    /**
     * 新增-编辑-新增或编辑用户
     *
     * @param dto
     */
    void addOrUpdateUser(SecUserDTO dto);
 
    /**
     * KAM查看用户下级
     *
     * @param query
     * @return
     */
    PageInfo<SecUser> queryLower(SecUserLowerQuery query);
 
    void deleteById(Long uid);
 
    /**
     * 通过角色id获取账号
     *
     * @param id
     * @return
     */
    List<SecUser> getUserByRoleId(Long id);
 
    /**
     * 通过名称手机号查询用户部门id
     * @param name
     * @return
     */
    List<SecUser> selectListByNamePhoneDeptId(String name,Long deptId);
    /**
     * 通过名称手机号查询用户部门id集合
     * @param name
     * @return
     */
    List<SecUser> selectListByNamePhoneDeptIds(String name,List<Long> deptIds);
 
    /**
     * 通过id查询用户
     * @param orderingPersonId
     * @return
     */
    SecUser selectUserById(Long orderingPersonId);
 
    /**
     * 查询所有用户
     * @return
     */
    List<SecUser> queryList();
}