修改日志
This commit is contained in:
@@ -125,6 +125,7 @@ public class CorpusPortraitServiceImpl implements CorpusPortraitService {
|
||||
JSONObject text = execDifyFlow.getJSONObject("outputs");
|
||||
|
||||
huaWeiService.sendEvent(setCloudEvents(aiAnalysisRequestId, text.toJSONString(), "DCC"), ltoChannelId);
|
||||
aiAnalysisRequestLogsService.saveAiAnalysisRequestLogs(AiAnalysisRequestLogs.builder().aiAnalysisRequestId(execDifyFlow.getString("aiAnalysisRequestId")).businessResponse(text.toJSONString()).build());
|
||||
}
|
||||
|
||||
try {
|
||||
@@ -134,10 +135,8 @@ public class CorpusPortraitServiceImpl implements CorpusPortraitService {
|
||||
aiAnalysisErrors.setAiAnalysisErrorHandlingStatus("1");
|
||||
aiAnalysisErrorsService.updateAiAnalysisErrors(aiAnalysisErrors);
|
||||
}
|
||||
aiAnalysisRequestLogsService.saveAiAnalysisRequestLogs(AiAnalysisRequestLogs.builder().aiAnalysisRequestId(execDifyFlow.getString("aiAnalysisRequestId")).businessResponse("").build());
|
||||
|
||||
} catch (Exception e) {
|
||||
log.info(" 电话语料处理保存报告异常processItem:{} ", e);
|
||||
log.info(" 画像电话语料处理保存报告异常processItem:{} ", e);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -161,6 +160,7 @@ public class CorpusPortraitServiceImpl implements CorpusPortraitService {
|
||||
log.info("画像-企微语料内容:FromUserId:{}, AcceptUserId:{}", item.getFromUserId(), item.getAcceptUserId());
|
||||
// 1,vdqw_workuserinfo 这个表对应是 B端认证中心userId
|
||||
// 2,vdqw_externalcontact 这个表对应是 企微客户unionId
|
||||
try {
|
||||
TmOdsVdqwExternalcontact tmOdsVdqwExternalcontact = tmOdsVdqwMessagearchivingService.getUnionId(Arrays.asList(item.getFromUserId(), item.getAcceptUserId()));
|
||||
TmOdsVdqwWorkuserinfo tmOdsVdqwWorkuserinfo = tmOdsVdqwMessagearchivingService.getUserId(Arrays.asList(item.getFromUserId(), item.getAcceptUserId()));
|
||||
if (null == tmOdsVdqwExternalcontact || null == tmOdsVdqwWorkuserinfo) {
|
||||
@@ -226,13 +226,12 @@ public class CorpusPortraitServiceImpl implements CorpusPortraitService {
|
||||
JSONObject text = execDifyFlow.getJSONObject("outputs");
|
||||
|
||||
huaWeiService.sendEvent(setCloudEvents(aiAnalysisRequestId, text.toJSONString(),"QIWEI"),ltoChannelId);
|
||||
aiAnalysisRequestLogsService.saveAiAnalysisRequestLogs(AiAnalysisRequestLogs.builder().aiAnalysisRequestId(execDifyFlow.getString("aiAnalysisRequestId")).businessResponse(text.toJSONString()).build());
|
||||
}
|
||||
|
||||
try {
|
||||
aiAnalysisRequestLogsService.saveAiAnalysisRequestLogs(AiAnalysisRequestLogs.builder().aiAnalysisRequestId(execDifyFlow.getString("aiAnalysisRequestId")).businessResponse("").build());
|
||||
} catch (Exception e) {
|
||||
log.info(" 企业语料处理保存报告异常processItem:{} ", e);
|
||||
}
|
||||
} catch (Exception e) {
|
||||
log.info(" 画像企业语料处理保存报告异常:{} ", e);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -275,6 +274,12 @@ public class CorpusPortraitServiceImpl implements CorpusPortraitService {
|
||||
JSONObject text = execDifyFlow.getJSONObject("outputs");
|
||||
|
||||
huaWeiService.sendEvent(setCloudEvents(aiAnalysisRequestId, text.toJSONString(),"NAMEPLATE"),ltoChannelId);
|
||||
|
||||
try {
|
||||
aiAnalysisRequestLogsService.saveAiAnalysisRequestLogs(AiAnalysisRequestLogs.builder().aiAnalysisRequestId(execDifyFlow.getString("aiAnalysisRequestId")).businessResponse(text.toJSONString()).build());
|
||||
} catch (Exception e) {
|
||||
log.info(" 画像铭牌保存报告异常processItem:{} ", e);
|
||||
}
|
||||
}
|
||||
} catch (Exception e) {
|
||||
log.error("nameplate processItem error {}", e.getMessage());
|
||||
|
||||
Reference in New Issue
Block a user