class EruptOnlineFilterHandler implements FilterHandler {

    @Resource
    private EruptProp eruptProp;

    @Resource
    private StringRedisTemplate stringRedisTemplate;

    @Override
    public String filter(String condition, String[] params) {<FILL_FUNCTION_BODY>}
}

        if (eruptProp.isRedisSession()) {
            Set<String> keys = stringRedisTemplate.keys(SessionKey.TOKEN_OLINE + "*");
            if (keys != null && keys.size() > 0) {
                StringBuilder sb = new StringBuilder(EruptOnline.class.getSimpleName() + ".token in (");
                keys.forEach(it -> sb.append("'").append(it.substring(SessionKey.TOKEN_OLINE.length())).append("',"));
                return sb.substring(0, sb.length() - 1) + ")";
            }
            return "1 = 2";
        }
        throw new EruptApiErrorTip(EruptApiModel.Status.INFO,
                "Enable the RedisSession configuration to use this feature", EruptApiModel.PromptWay.NOTIFY);
    
<no_super_class>