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
2b20f468
Commit
2b20f468
authored
Jul 03, 2025
by
alex yao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 门户页对话保存
parent
c12e553e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
0 deletions
+19
-0
PortalServiceImpl.java
...a/cn/com/poc/portal/aggregate/impl/PortalServiceImpl.java
+19
-0
No files found.
src/main/java/cn/com/poc/portal/aggregate/impl/PortalServiceImpl.java
View file @
2b20f468
...
@@ -91,8 +91,27 @@ public class PortalServiceImpl implements PortalService {
...
@@ -91,8 +91,27 @@ public class PortalServiceImpl implements PortalService {
@Resource
@Resource
private
BizAgentApplicationPluginService
bizAgentApplicationPluginService
;
private
BizAgentApplicationPluginService
bizAgentApplicationPluginService
;
@Resource
private
BizAiDialoguesService
bizAiDialoguesService
;
@Override
@Override
public
void
call
(
PortalDialoguesCallEntity
callEntity
,
Long
userId
)
throws
Exception
{
public
void
call
(
PortalDialoguesCallEntity
callEntity
,
Long
userId
)
throws
Exception
{
BizAiDialoguesEntity
bizAiDialoguesEntity
=
new
BizAiDialoguesEntity
();
bizAiDialoguesEntity
.
setDialoguesType
(
callEntity
.
getDialoguesId
());
bizAiDialoguesEntity
.
setMemberId
(
userId
);
bizAiDialoguesEntity
.
setIsDeleted
(
CommonConstant
.
IsDeleted
.
N
);
List
<
BizAiDialoguesEntity
>
bizAiDialoguesEntities
=
bizAiDialoguesService
.
findByExample
(
bizAiDialoguesEntity
,
null
);
if
(
CollectionUtils
.
isNotEmpty
(
bizAiDialoguesEntities
))
{
throw
new
BusinessException
(
"当前对话不存在"
);
}
BizAiDialoguesEntity
aiDialoguesEntity
=
bizAiDialoguesEntities
.
get
(
0
);
if
(
StringUtils
.
isBlank
(
aiDialoguesEntity
.
getTitle
()))
{
aiDialoguesEntity
.
setTitle
(
callEntity
.
getInput
());
bizAiDialoguesService
.
update
(
aiDialoguesEntity
);
}
//记录提问时间
//记录提问时间
long
inputTimestamp
=
System
.
currentTimeMillis
();
long
inputTimestamp
=
System
.
currentTimeMillis
();
SSEUtil
sseUtil
=
new
SSEUtil
();
SSEUtil
sseUtil
=
new
SSEUtil
();
...
...
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