public static void appendArr(String daoName, String dbName, Criteria criteria, List<Object> list, StringBuilder sb, String separator){

        Collection objArr = (Collection) criteria.getParam(daoName);
        if (objArr != null){
            objArr.stream().forEach((obj) -> {
                if (!list.isEmpty()) {
                    sb.append(separator);
                }
                sb.append(dbName);
                sb.append(" = ? ");
                list.add(obj);
            });
        }
    }