Commit 50d342a2 by 潘诗林

fix:获取语音转文本时为空校验,添加异常获取

1 parent 0073f885
...@@ -409,6 +409,9 @@ public class ConversationDateService { ...@@ -409,6 +409,9 @@ public class ConversationDateService {
public String getBadgeText(Integer recordId){ public String getBadgeText(Integer recordId){
ConversationBatch conversationBatch = conversationBatchMapper.selectByRecordId(recordId); ConversationBatch conversationBatch = conversationBatchMapper.selectByRecordId(recordId);
if(Objects.isNull(conversationBatch)){
return null;
}
//获取文件内容 //获取文件内容
List<ConversationDetail> conversationDetails = inspectionConversationDetailExtService.listByBatchId(Arrays.asList( List<ConversationDetail> conversationDetails = inspectionConversationDetailExtService.listByBatchId(Arrays.asList(
conversationBatch.getId())); conversationBatch.getId()));
......
...@@ -166,6 +166,7 @@ public class PreLearnBigModelService { ...@@ -166,6 +166,7 @@ public class PreLearnBigModelService {
// 2d. 为每个订单生成剧本 // 2d. 为每个订单生成剧本
int caseIndex = 1; int caseIndex = 1;
for (OrderCustomerDTO orderCustomer : orderCustomers) { for (OrderCustomerDTO orderCustomer : orderCustomers) {
try{
if (caseIndex >= 50) { if (caseIndex >= 50) {
break; break;
} }
...@@ -197,7 +198,7 @@ public class PreLearnBigModelService { ...@@ -197,7 +198,7 @@ public class PreLearnBigModelService {
.activityProductId(activityProductId) .activityProductId(activityProductId)
.caseIndex(caseIndex) .caseIndex(caseIndex)
.modelTaskId(modelTaskId) .modelTaskId(modelTaskId)
.aiStatus("GENERATING") .aiStatus(AiStatusEnum.GENERATING.getValue())
.createdBy("system") .createdBy("system")
.createdDate(new Date()) .createdDate(new Date())
.carModel(badgeRecordings.getCarModel()) .carModel(badgeRecordings.getCarModel())
...@@ -206,6 +207,12 @@ public class PreLearnBigModelService { ...@@ -206,6 +207,12 @@ public class PreLearnBigModelService {
preLearnProductScriptMapper.insert(script); preLearnProductScriptMapper.insert(script);
caseIndex++; caseIndex++;
}catch (Exception e){
log.error("生成案例异常,e",e);
log.error("生成案例失败: activityId={}, activityProductId={}, 提交数量={}",
activityId, activityProductId, caseIndex);
}
} }
log.info("活动商品剧本提交完成: activityId={}, activityProductId={}, 提交数量={}", log.info("活动商品剧本提交完成: activityId={}, activityProductId={}, 提交数量={}",
activityId, activityProductId, caseIndex); activityId, activityProductId, caseIndex);
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!