1. 修复bug

topo_dev
xueqingkun 6 months ago
parent 4486b1540e
commit abcb3bc1d0

@ -226,7 +226,7 @@ public class ModelIndexServiceImpl extends ServiceImpl<ModelIndexMapper, ModelIn
// 如果查询类型为数据查询,则校验查询语句
Assert.notEmpty(modelAtomicIndex.getQueryLang(), "查询语言不能为空");
Assert.isTrue(checkSql(modelAtomicIndex.getQueryLang()), "查询语句不合法");
} else if (StringUtils.equals(IndexRuleConstants.OPERAND_TYPE_LLM, modelAtomicIndex.getIndexSource())) {
} else if (StringUtils.equals(IndexRuleConstants.OPERAND_TYPE_STRUCTURE, modelAtomicIndex.getIndexSource())) {
Assert.notEmpty(modelAtomicIndex.getPromptId(), "promptId不能为空");
NotePrompt notePrompt = notePromptService.getBaseMapper().selectById(modelAtomicIndex.getPromptId());
Assert.notNull(notePrompt, "提示词信息不存在");

@ -25,7 +25,7 @@ spring:
driver-class-name: com.mysql.cj.jdbc.Driver
url: jdbc:mysql://fu-hsi-mysql:3306/nx_llm?useUnicode=true&characterEncoding=utf-8&useSSL=true&nullCatalogMeansCurrent=true&serverTimezone=GMT%2B8
username: root
password: ${datasource.username}
password: ${datasource.password}
initial-size: 5 # 初始化大小
min-idle: 10 # 最小连接数
max-active: 20 # 最大连接数

@ -16,7 +16,7 @@ mybatis-plus:
mapper-locations: classpath*:mapper/*.xml
configuration:
map-underscore-to-camel-case: true
#log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
call-setters-on-nulls: true
server:
port: 8097
@ -25,6 +25,8 @@ server:
case:
evidence:
table: case_evidence
atomic:
query: "MATCH (m:`{startEntityType}`), (n:`{endEntityType}`) where m.name=$lawActor and m.caseId = n.caseId = $caseId and m.picType = n.picType = '1' OPTIONAL MATCH (m)-[r:`{relType}`]->(n)RETURN id(m) as startId, id(n) as endId, id(r) as relId, n.recordSplitId as recordSplitId, m.recordId as recordId"
fu-hsi-config:
case-analysis-method: new
thread-pool:

Loading…
Cancel
Save