private static boolean formQueryDirect(Criteria crit, List params, StringBuilder sb, StringBuilder sbw) {
        List list = new ArrayList<>();
        StringBuilder str = new StringBuilder();
        String qu = new QueryMapper() {
            @Override
            public String mapQuery() {
                Appender.append(DAO_ID_TOURTYPE, DB_DIRECTION_ID_TOURTYPE, crit, list, str, AND);
                Appender.append(DAO_ID_TRANSMODE, DB_DIRECTION_ID_TRANSMODE, crit, list, str, AND);
                Appender.append(DAO_DIRECTION_STATUS, "d." + DB_DIRECTION_STATUS, crit, list, str, AND);
                return str.toString();
            }
        }.mapQuery();

        if (!list.isEmpty()) {
            sb.append(LOAD_QUERY_DIRECT);
            if (!params.isEmpty()) {
                sbw.append(AND);
            }
            sbw.append(qu);
            params.addAll(list);
            return true;
        } else {
            return false;
        }
    }