增加语料内容为空的判断
This commit is contained in:
@@ -137,7 +137,7 @@ public class CorpusFailJob {
|
||||
aiAnalysisErrors.setAiAnalysisErrorHandlingStatus("1");
|
||||
updateAiAnalysisErrors(aiAnalysisErrors, oldAiAnalysisRequestLogs.getAiAnalysisRequestId());
|
||||
|
||||
}
|
||||
}
|
||||
} else {
|
||||
List<AicorpusTelephoneDTO> dccDtoList = tmTelephoneCorpusMapper.queryTelephoneCorpusBySourceIds( Arrays.asList(corpusReportDTO.getRecordId()));
|
||||
if(CollectionUtils.isNotEmpty(dccDtoList)){
|
||||
|
||||
@@ -113,6 +113,10 @@ public class TmTelephoneCorpusServiceImpl extends ServiceImpl<TmTelephoneCorpusM
|
||||
log.info("电话语料时长小于10秒,不进行dify处理");
|
||||
return;
|
||||
}
|
||||
if (segments == null || segments.isEmpty()) {
|
||||
log.info("电话语料内容segments为空,不进行dify处理");
|
||||
return;
|
||||
}
|
||||
// 遍历 segments
|
||||
StringBuffer chatList = new StringBuffer();
|
||||
segments.stream()
|
||||
|
||||
Reference in New Issue
Block a user