Van333
2022-12-29 d8f66b834134f6b755fd3fb93bb91b56f9d31f6f
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
/**
 * Copyright (c) 2016-2019 人人开源 All rights reserved.
 *
 * https://www.machine.io
 *
 * 版权所有,侵权必究!
 */
 
package api.service.impl;
 
 
import api.bean.SysUserRoleEntity;
import api.dao.SysUserRoleDao;
import api.service.SysUserRoleService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
 
 
/**
 * 用户与角色对应关系
 *
 * @author Mark sunlightcs@gmail.com
 */
@Service("sysUserRoleService")
public class SysUserRoleServiceImpl extends ServiceImpl<SysUserRoleDao, SysUserRoleEntity> implements SysUserRoleService {
 
 
 
    @Override
    public int deleteBatch(Long[] roleIds){
        return baseMapper.deleteBatch(roleIds);
    }
 
    @Override
    public Long queryRoleId(Long userId) {
        return baseMapper.queryRoleId(userId);
    }
}