You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: spring-ai-alibaba-nl2sql/spring-ai-alibaba-nl2sql-management/src/main/java/com/alibaba/cloud/ai/mapper/BusinessKnowledgeMapper.java
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -35,13 +35,13 @@ public interface BusinessKnowledgeMapper extends BaseMapper<BusinessKnowledge> {
35
35
/**
36
36
* Query business knowledge list by dataset ID
37
37
*/
38
-
@Select("SELECT * FROM business_knowledge WHERE dataset_id = #{datasetId} ORDER BY created_time DESC")
38
+
@Select("SELECT * FROM business_knowledge WHERE data_set_id = #{datasetId} ORDER BY created_time DESC")
Copy file name to clipboardExpand all lines: spring-ai-alibaba-nl2sql/spring-ai-alibaba-nl2sql-management/src/main/java/com/alibaba/cloud/ai/mapper/SemanticModelMapper.java
+6-6Lines changed: 6 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -42,27 +42,27 @@ public interface SemanticModelMapper extends BaseMapper<SemanticModel> {
42
42
/**
43
43
* Search semantic models by keyword
44
44
*/
45
-
@Select("SELECT * FROM semantic_model WHERE " + "agent_field_name LIKE CONCAT('%', #{keyword}, '%') OR "
46
-
+ "field_description LIKE CONCAT('%', #{keyword}, '%') OR "
47
-
+ "field_synonyms LIKE CONCAT('%', #{keyword}, '%') " + "ORDER BY created_time DESC")
45
+
@Select("SELECT * FROM semantic_model WHERE " + "field_name LIKE CONCAT('%', #{keyword}, '%') OR "
46
+
+ "description LIKE CONCAT('%', #{keyword}, '%') OR "
47
+
+ "synonyms LIKE CONCAT('%', #{keyword}, '%') " + "ORDER BY created_time DESC")
0 commit comments