Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
K
know-base
概览
概览
详情
活动
周期分析
版本库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
张京坤
know-base
Commits
ad477b96
提交
ad477b96
authored
8月 02, 2024
作者:
yanxin
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
知识库增加链接字段
上级
56ab127e
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
14 行增加
和
11 行删除
+14
-11
Knowledge.java
src/main/java/com/zzsn/knowbase/entity/Knowledge.java
+1
-1
KnowledgeMessage.java
...ava/com/zzsn/knowbase/kafka/message/KnowledgeMessage.java
+5
-0
KnowledgeServiceImpl.java
.../com/zzsn/knowbase/service/impl/KnowledgeServiceImpl.java
+1
-1
application.yml
src/main/resources/application.yml
+7
-9
没有找到文件。
src/main/java/com/zzsn/knowbase/entity/Knowledge.java
浏览文件 @
ad477b96
...
@@ -105,7 +105,7 @@ public class Knowledge implements Serializable {
...
@@ -105,7 +105,7 @@ public class Knowledge implements Serializable {
/**
/**
* 链接地址
* 链接地址
*/
*/
private
String
sourceAddress
;
;
private
String
sourceAddress
;
/**
/**
* 类型
* 类型
*/
*/
...
...
src/main/java/com/zzsn/knowbase/kafka/message/KnowledgeMessage.java
浏览文件 @
ad477b96
...
@@ -53,6 +53,11 @@ public class KnowledgeMessage {
...
@@ -53,6 +53,11 @@ public class KnowledgeMessage {
private
String
contentAll
;
private
String
contentAll
;
private
Integer
importData
;
private
Integer
importData
;
/**
* 链接地址
*/
private
String
sourceAddress
;
private
List
<
Content
>
contents
;
private
List
<
Content
>
contents
;
}
}
src/main/java/com/zzsn/knowbase/service/impl/KnowledgeServiceImpl.java
浏览文件 @
ad477b96
...
@@ -361,7 +361,7 @@ class KnowledgeServiceImpl implements IKnowledgeService {
...
@@ -361,7 +361,7 @@ class KnowledgeServiceImpl implements IKnowledgeService {
KnowledgeVO
knowledgeVO
=
this
.
getById
(
knowledge
.
getId
());
KnowledgeVO
knowledgeVO
=
this
.
getById
(
knowledge
.
getId
());
knowledge
.
setKnowledgeProjectId
(
knowledgeVO
.
getKbKnowledgeId
());
knowledge
.
setKnowledgeProjectId
(
knowledgeVO
.
getKbKnowledgeId
());
}
}
deleteForPython
(
knowledge
.
getId
(),
knowledge
.
getK
nowledgeProject
Id
());
deleteForPython
(
knowledge
.
getId
(),
knowledge
.
getK
bKnowledge
Id
());
//log.info("send message:{}", knowledgeMessage);
//log.info("send message:{}", knowledgeMessage);
String
msg
=
JSON
.
toJSONString
(
knowledgeMessage
);
String
msg
=
JSON
.
toJSONString
(
knowledgeMessage
);
log
.
info
(
msg
);
log
.
info
(
msg
);
...
...
src/main/resources/application.yml
浏览文件 @
ad477b96
...
@@ -49,9 +49,9 @@ mybatis-plus:
...
@@ -49,9 +49,9 @@ mybatis-plus:
log-impl
:
org.apache.ibatis.logging.stdout.StdOutImpl
log-impl
:
org.apache.ibatis.logging.stdout.StdOutImpl
map-underscore-to-camel-case
:
true
map-underscore-to-camel-case
:
true
python
:
python
:
intelligentQaUrl
:
http://11
6.63.179.212:7862
/platform/chat
intelligentQaUrl
:
http://11
4.116.36.231:7863
/platform/chat
searchUrl
:
http://11
6.63.179.212:7862
/platform/searchInfo
searchUrl
:
http://11
4.116.36.231:7863
/platform/searchInfo
deleteUrl
:
http://114.11
5.172.99:1001
3/platform/delete
deleteUrl
:
http://114.11
6.36.231:786
3/platform/delete
know
:
know
:
thirdpartyurl
:
thirdpartyurl
:
...
@@ -62,15 +62,13 @@ know:
...
@@ -62,15 +62,13 @@ know:
document
:
document
:
server
:
server
:
host
:
http://114.116.116.241:9088
host
:
http://114.116.36.231:9088
# host: http://192.168.1.71:9088
files
:
files
:
#
storage: /zzsn/nt/storage/know/
storage
:
/zzsn/nt/storage/know/
storage
:
D:/storage/know/
#
storage: D:/storage/know/
docservice
:
docservice
:
url
:
url
:
site
:
http://114.116.116.241:80/
site
:
http://114.116.36.231:80/
# site: http://192.168.1.216:80/
converter
:
ConvertService.ashx
converter
:
ConvertService.ashx
command
:
coauthoring/CommandService.ashx
command
:
coauthoring/CommandService.ashx
api
:
web-apps/apps/api/documents/api.js
api
:
web-apps/apps/api/documents/api.js
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论