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
64582e53
Commit
64582e53
authored
Aug 21, 2025
by
alex yao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix[智能问数]: 修复[数据库查询异常]断连问题
parent
cf7758b9
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
149 additions
and
141 deletions
+149
-141
AiBiServiceImpl.java
...java/cn/com/poc/ai_bi/aggregate/impl/AiBiServiceImpl.java
+136
-133
ChainServiceImpl.java
.../cn/com/poc/thirdparty/service/impl/ChainServiceImpl.java
+13
-8
No files found.
src/main/java/cn/com/poc/ai_bi/aggregate/impl/AiBiServiceImpl.java
View file @
64582e53
This diff is collapsed.
Click to expand it.
src/main/java/cn/com/poc/thirdparty/service/impl/ChainServiceImpl.java
View file @
64582e53
...
@@ -33,16 +33,21 @@ public class ChainServiceImpl implements ChainService {
...
@@ -33,16 +33,21 @@ public class ChainServiceImpl implements ChainService {
@Override
@Override
public
DBChainResult
dbChain
(
DBChainResponse
response
)
{
public
DBChainResult
dbChain
(
DBChainResponse
response
)
{
logger
.
info
(
"dbChain response : {}"
,
response
);
logger
.
info
(
"dbChain response : {}"
,
response
);
DBChainResult
dbChainResult
=
aiDialogueService
.
dbChain
(
response
);
try
{
if
(
dbChainResult
==
null
||
dbChainResult
.
getStatus
().
equals
(
"error"
))
{
DBChainResult
dbChainResult
=
aiDialogueService
.
dbChain
(
response
);
logger
.
error
(
"dbChain result error : {} , response:{}"
,
dbChainResult
,
response
);
if
(
dbChainResult
==
null
||
dbChainResult
.
getStatus
().
equals
(
"error"
))
{
logger
.
error
(
"dbChain result error : {} , response:{}"
,
dbChainResult
,
response
);
return
null
;
}
if
(
StringUtils
.
isBlank
(
dbChainResult
.
getSqlResult
()))
{
logger
.
warn
(
"dbChain result sqlResult is blank : {} , response:{}"
,
dbChainResult
,
response
);
return
null
;
}
return
dbChainResult
;
}
catch
(
Exception
e
)
{
logger
.
error
(
"调用数据库失败:{}"
,
e
.
getMessage
());
return
null
;
return
null
;
}
}
if
(
StringUtils
.
isBlank
(
dbChainResult
.
getSqlResult
()))
{
logger
.
warn
(
"dbChain result sqlResult is blank : {} , response:{}"
,
dbChainResult
,
response
);
return
null
;
}
return
dbChainResult
;
}
}
@Override
@Override
...
...
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