Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
P
poc-api
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
poc
poc-api
Commits
b9343878
Commit
b9343878
authored
Jun 20, 2025
by
alex yao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:修复长文档接口异常
parent
94f4a2e9
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
LongTextDialoguesServiceImpl.java
...document/aggregate/impl/LongTextDialoguesServiceImpl.java
+4
-4
PortalServiceImpl.java
...a/cn/com/poc/portal/aggregate/impl/PortalServiceImpl.java
+1
-1
No files found.
src/main/java/cn/com/poc/long_document/aggregate/impl/LongTextDialoguesServiceImpl.java
View file @
b9343878
...
...
@@ -111,7 +111,7 @@ public class LongTextDialoguesServiceImpl implements LongTextDialoguesService {
//更新标题
if
(
StringUtils
.
isBlank
(
aiDialoguesEntity
.
getTitle
()))
{
// 标题
aiDialoguesEntity
.
setTitle
(
input
.
substring
(
0
,
Math
.
min
(
input
.
length
(),
150
)));
aiDialoguesEntity
=
bizAiDialoguesService
.
sav
e
(
aiDialoguesEntity
);
aiDialoguesEntity
=
bizAiDialoguesService
.
updat
e
(
aiDialoguesEntity
);
}
BizAgentApplicationDialoguesRecordEntity
dialoguesRecordEntity
=
new
BizAgentApplicationDialoguesRecordEntity
();
dialoguesRecordEntity
.
setDialogsId
(
dialoguesId
);
...
...
@@ -128,7 +128,7 @@ public class LongTextDialoguesServiceImpl implements LongTextDialoguesService {
}
// 文件是否变更
boolean
isFileUrlChanged
=
(
StringUtils
.
isNotBlank
(
fileUrl
)
&&
!
aiDialoguesEntity
.
getFileUrl
().
equals
(
fileUrl
))
boolean
isFileUrlChanged
=
(
StringUtils
.
isNotBlank
(
fileUrl
)
&&
!
fileUrl
.
equals
(
aiDialoguesEntity
.
getFileUrl
()
))
||
isInit
;
if
(
StringUtils
.
isBlank
(
fileUrl
))
{
...
...
@@ -139,7 +139,7 @@ public class LongTextDialoguesServiceImpl implements LongTextDialoguesService {
if
(
isFileUrlChanged
)
{
if
(!
isInit
&&
StringUtils
.
isNotBlank
(
fileUrl
))
{
aiDialoguesEntity
.
setFileUrl
(
fileUrl
);
bizAiDialoguesService
.
sav
e
(
aiDialoguesEntity
);
bizAiDialoguesService
.
updat
e
(
aiDialoguesEntity
);
}
}
...
...
@@ -193,7 +193,7 @@ public class LongTextDialoguesServiceImpl implements LongTextDialoguesService {
assistantRecord
.
setTimestamp
(
System
.
currentTimeMillis
());
bizAgentApplicationDialoguesRecordService
.
save
(
inputRecord
);
bizAgentApplicationDialoguesRecordService
.
save
(
inpu
tRecord
);
bizAgentApplicationDialoguesRecordService
.
save
(
assistan
tRecord
);
}
@Override
...
...
src/main/java/cn/com/poc/portal/aggregate/impl/PortalServiceImpl.java
View file @
b9343878
...
...
@@ -98,7 +98,7 @@ public class PortalServiceImpl implements PortalService {
if
(
StringUtils
.
isBlank
(
bizAiDialoguesEntities
.
get
(
0
).
getTitle
()))
{
BizAiDialoguesEntity
portalDialoguesEntity
=
bizAiDialoguesEntities
.
get
(
0
);
portalDialoguesEntity
.
setTitle
(
callEntity
.
getInput
());
bizAiDialoguesService
.
sav
e
(
portalDialoguesEntity
);
bizAiDialoguesService
.
updat
e
(
portalDialoguesEntity
);
}
// 获取对话配置
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment