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