yyy
2026-04-17 8dfdb343364a6d8f87f8095a3fd899f6541c8be3
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
package com.xiaopeng.account.mapper;
 
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.xiaopeng.account.model.query.GroupUserPageQuery;
import com.xiaopeng.account.model.vo.GroupUserVO;
import com.xiaopeng.api.model.account.SysGroup;
import com.xiaopeng.common.core.web.page.PageInfo;
import org.apache.ibatis.annotations.Param;
 
import java.util.List;
 
/**
 * <p>
 * 权限组设置 Mapper 接口
 * </p>
 *
 * @author mitao
 * @since 2026-02-03
 */
public interface SysGroupMapper extends BaseMapper<SysGroup> {
 
    /**
     * 统计绑定该权限组的用户数
     *
     * @param groupId 权限组ID
     * @return 绑定用户数
     */
    Long countBindUsers(@Param("groupId") Long groupId);
 
    /**
     * 查询权限组绑定用户列表
     *
     * @param pageInfo
     * @param query    查询参数
     * @return 用户列表
     */
    Page<GroupUserVO> queryUserPageList(PageInfo<GroupUserVO> pageInfo, @Param("query") GroupUserPageQuery query);
 
    int getPhoneDesensitization(Long userId);
 
}