|
@@ -286,7 +286,8 @@ public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements IU
|
|
|
.eq(UserVci::getUserId, user.getId())
|
|
|
.list();
|
|
|
if (!userVciList.isEmpty()) {
|
|
|
- throw new BadReqException("该客户端账号已绑定vci设备,不能删除");
|
|
|
+ List<Integer> userVciIds = userVciList.stream().map(c -> c.getId()).collect(Collectors.toList());
|
|
|
+ userVciService.removeByIds(userVciIds);
|
|
|
}
|
|
|
|
|
|
//查询 设备表
|