Commit 38104878 authored by alex yao's avatar alex yao

feat: 优化database数据表查询

parent 49941275
package cn.com.poc.thirdparty.service.impl; package cn.com.poc.thirdparty.service.impl;
import cn.com.poc.common.utils.StringUtils;
import cn.com.poc.thirdparty.resource.demand.ai.aggregate.AIDialogueService; import cn.com.poc.thirdparty.resource.demand.ai.aggregate.AIDialogueService;
import cn.com.poc.thirdparty.resource.demand.ai.entity.dbchain.DBChainResponse; import cn.com.poc.thirdparty.resource.demand.ai.entity.dbchain.DBChainResponse;
import cn.com.poc.thirdparty.resource.demand.ai.entity.dbchain.DBChainResult; import cn.com.poc.thirdparty.resource.demand.ai.entity.dbchain.DBChainResult;
...@@ -30,6 +31,10 @@ public class ChainServiceImpl implements ChainService { ...@@ -30,6 +31,10 @@ public class ChainServiceImpl implements ChainService {
logger.error("dbChain result error : {} , response:{}", dbChainResult, response); logger.error("dbChain result error : {} , response:{}", dbChainResult, response);
return null; return null;
} }
if (StringUtils.isBlank(dbChainResult.getSqlResult())) {
logger.warn("dbChain result sqlResult is blank : {} , response:{}", dbChainResult, response);
return null;
}
return dbChainResult; return dbChainResult;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment