class GroupMemberService {

    public boolean canOpterateGroupMember(Long userId, Long currentGroupId) throws SQLException {
        List<UserGroup> groups = userGroupDao.getUserGroupByUserId(userId);
        if (CollectionUtils.isNotEmpty(groups)) {
            return groups.stream().anyMatch(group -> group.getOpt_user() == OperateUserEnum.Allow.getType());
        }
        return false;
    }

}