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
1
Merge Requests
1
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
ea571e20
Commit
ea571e20
authored
Oct 23, 2025
by
R10
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
保险推荐提交
parent
b3469c6b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
3 deletions
+16
-3
AiDialoguesServiceImpl.java
...c/ai_dialogues/aggregate/impl/AiDialoguesServiceImpl.java
+9
-3
AiDialoguesTypeEnum.java
...cn/com/poc/ai_dialogues/constant/AiDialoguesTypeEnum.java
+7
-0
No files found.
src/main/java/cn/com/poc/ai_dialogues/aggregate/impl/AiDialoguesServiceImpl.java
View file @
ea571e20
...
...
@@ -105,8 +105,13 @@ public class AiDialoguesServiceImpl implements AiDialoguesService {
@Override
public
String
create
(
AiDialoguesTypeEnum
type
,
String
fileUrl
,
Long
userId
)
throws
Exception
{
if
(
type
.
getType
().
equals
(
AiDialoguesTypeEnum
.
CAR_INSURANCE
.
getType
()))
{
String
appid
=
fmxParamConfigService
.
getParam
(
"car_insurance_appid"
);
Map
<
AiDialoguesTypeEnum
,
String
>
appbuilderMap
=
new
HashMap
();
appbuilderMap
.
put
(
AiDialoguesTypeEnum
.
CAR_INSURANCE
,
"car_insurance_appid"
);
appbuilderMap
.
put
(
AiDialoguesTypeEnum
.
CAR_RECOMMEND
,
"car_recommend_appid"
);
if
(
appbuilderMap
.
containsKey
(
type
))
{
String
appid
=
fmxParamConfigService
.
getParam
(
appbuilderMap
.
get
(
type
));
String
relationId
=
appBuilderService
.
conversation
(
appid
);
if
(
StringUtils
.
isBlank
(
relationId
))
{
throw
new
BusinessException
(
"创建对话失败"
);
...
...
@@ -128,6 +133,7 @@ public class AiDialoguesServiceImpl implements AiDialoguesService {
return
bizAiDialoguesService
.
create
(
type
.
getType
(),
fileUrl
,
userId
);
}
@Override
public
AiDialoguesRecordDto
dialoguesDetail
(
String
dialoguesId
,
Long
userId
)
throws
Exception
{
logger
.
info
(
"get ai dialogues detail dialoguesId:{}, userId:{}"
,
dialoguesId
,
userId
);
...
...
@@ -344,7 +350,7 @@ public class AiDialoguesServiceImpl implements AiDialoguesService {
long
inputTimeStamp
=
System
.
currentTimeMillis
();
try
{
if
(
dialoguesType
.
equals
(
AiDialoguesTypeEnum
.
CAR_INSURANCE
.
getType
()))
{
//AppBuilder
if
(
dialoguesType
.
equals
(
AiDialoguesTypeEnum
.
CAR_INSURANCE
.
getType
())
||
dialoguesType
.
equals
(
AiDialoguesTypeEnum
.
CAR_RECOMMEND
.
getType
())
)
{
//AppBuilder
BizAiDialogues3rdRelationEntity
bizAiDialogues3rdRelationEntity
=
new
BizAiDialogues3rdRelationEntity
();
bizAiDialogues3rdRelationEntity
.
setDialoguesId
(
dialoguesId
);
bizAiDialogues3rdRelationEntity
.
setPlatform
(
DialoguesPlatformEnum
.
AppBuilder
.
getPlatform
());
...
...
src/main/java/cn/com/poc/ai_dialogues/constant/AiDialoguesTypeEnum.java
View file @
ea571e20
package
cn
.
com
.
poc
.
ai_dialogues
.
constant
;
import
java.util.ArrayList
;
import
java.util.List
;
/**
* @author alex.yao
* @date 2025/6/19
...
...
@@ -32,6 +35,9 @@ public enum AiDialoguesTypeEnum {
CAR_INSURANCE
(
"car_insurance"
,
"车辆保险"
),
CAR_RECOMMEND
(
"car_recommend"
,
"车辆推荐"
),
;
private
final
String
type
;
...
...
@@ -60,4 +66,5 @@ public enum AiDialoguesTypeEnum {
}
return
null
;
}
}
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