mirror of
https://github.com/tencentmusic/supersonic.git
synced 2025-12-14 13:47:09 +00:00
(fix)(common)Make sure system exemplar gets loaded before demo chats.
This commit is contained in:
@@ -15,6 +15,7 @@ import dev.langchain4j.store.embedding.RetrieveQueryResult;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.boot.CommandLineRunner;
|
||||
import org.springframework.core.annotation.Order;
|
||||
import org.springframework.core.io.ClassPathResource;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
@@ -24,6 +25,7 @@ import java.util.List;
|
||||
|
||||
@Service
|
||||
@Slf4j
|
||||
@Order(0)
|
||||
public class ExemplarServiceImpl implements ExemplarService, CommandLineRunner {
|
||||
|
||||
private static final String SYS_EXEMPLAR_FILE = "s2ql_exemplar.json";
|
||||
|
||||
@@ -68,7 +68,7 @@ public class SqlFilterUtils {
|
||||
joiner.add(SPACE + dealFilter(filter, isBizName) + SPACE);
|
||||
}
|
||||
});
|
||||
log.info("getWhereClause, where sql : {}", joiner);
|
||||
log.debug("getWhereClause, where sql : {}", joiner);
|
||||
return joiner.toString();
|
||||
}
|
||||
|
||||
@@ -118,7 +118,7 @@ public class SqlFilterUtils {
|
||||
}
|
||||
|
||||
private String generator(Criterion criterion) {
|
||||
log.info("criterion :{}", criterion);
|
||||
log.debug("criterion :{}", criterion);
|
||||
String sqlPart;
|
||||
switch (criterion.getOperator()) {
|
||||
case SQL_PART:
|
||||
|
||||
Reference in New Issue
Block a user