mirror of
				https://github.com/continew-org/continew-admin.git
				synced 2025-11-04 09:01:37 +08:00 
			
		
		
		
	fix: 修复用户删除代码错误
This commit is contained in:
		@@ -200,7 +200,7 @@ public class UserServiceImpl extends BaseServiceImpl<UserMapper, UserDO, UserRes
 | 
				
			|||||||
    public void delete(List<Long> ids) {
 | 
					    public void delete(List<Long> ids) {
 | 
				
			||||||
        CheckUtils.throwIf(CollUtil.contains(ids, UserContextHolder.getUserId()), "不允许删除当前用户");
 | 
					        CheckUtils.throwIf(CollUtil.contains(ids, UserContextHolder.getUserId()), "不允许删除当前用户");
 | 
				
			||||||
        List<UserDO> list = baseMapper.lambdaQuery()
 | 
					        List<UserDO> list = baseMapper.lambdaQuery()
 | 
				
			||||||
            .select(UserDO::getNickname, UserDO::getIsSystem)
 | 
					            .select(UserDO::getId, UserDO::getNickname, UserDO::getIsSystem)
 | 
				
			||||||
            .in(UserDO::getId, ids)
 | 
					            .in(UserDO::getId, ids)
 | 
				
			||||||
            .list();
 | 
					            .list();
 | 
				
			||||||
        List<Long> idList = list.stream().map(UserDO::getId).toList();
 | 
					        List<Long> idList = list.stream().map(UserDO::getId).toList();
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user