解决斜杆问题
This commit is contained in:
@@ -237,15 +237,15 @@ public class TmTelephoneCorpusServiceImpl extends ServiceImpl<TmTelephoneCorpusM
|
||||
try {
|
||||
if(null != execDifyFlow && execDifyFlow.get("status").equals("succeeded")){
|
||||
|
||||
String outputs = execDifyFlow.getString(outputsStr);
|
||||
|
||||
JSONObject text = execDifyFlow.getJSONObject(outputsStr);
|
||||
// 发送MQ
|
||||
if (BusinessTypeEnum.CORPUS_PORTRAIT_DCC.getCode().equals(businessType)){//DCC 客户画像
|
||||
log.info("send mq 电话语料场景,客户画像需求, {}",outputs);
|
||||
sendMq( CategoryEnum.PORTRAIT_ALLIN.getCode(), JSONObject.toJSONString(outputs));
|
||||
log.info("send mq 电话语料场景,客户画像需求, {}",text);
|
||||
sendMq( CategoryEnum.PORTRAIT_ALLIN.getCode(), text.toJSONString());
|
||||
|
||||
}else{ // dcc 总结
|
||||
log.info("send mq 电话语料场景,总结需求, {}",outputs);
|
||||
sendMq( CategoryEnum.PHONE_VOICE.getCode(), JSONObject.toJSONString(outputs));
|
||||
log.info("send mq 电话语料场景,总结需求, {}",text);
|
||||
sendMq( CategoryEnum.PHONE_VOICE.getCode(), text.toJSONString());
|
||||
}
|
||||
try {
|
||||
if(StringUtils.isNotEmpty(aiAnalysisRequestIdDB)){
|
||||
@@ -254,7 +254,7 @@ public class TmTelephoneCorpusServiceImpl extends ServiceImpl<TmTelephoneCorpusM
|
||||
aiAnalysisErrors.setAiAnalysisErrorHandlingStatus("1");
|
||||
aiAnalysisErrorsService.updateAiAnalysisErrors(aiAnalysisErrors);
|
||||
}
|
||||
aiAnalysisRequestLogsService.saveOrUpdateAiAnalysisRequestLogs(AiAnalysisRequestLogs.builder().aiAnalysisRequestId(execDifyFlow.getString(aiAnalysisRequestIdStr)).businessResponse(outputs).build());
|
||||
aiAnalysisRequestLogsService.saveOrUpdateAiAnalysisRequestLogs(AiAnalysisRequestLogs.builder().aiAnalysisRequestId(execDifyFlow.getString(aiAnalysisRequestIdStr)).businessResponse(text.toJSONString()).build());
|
||||
|
||||
} catch (Exception e) {
|
||||
log.info(" 电话语料处理保存报告异常processItem:{} ", e.getMessage());
|
||||
@@ -396,7 +396,7 @@ public class TmTelephoneCorpusServiceImpl extends ServiceImpl<TmTelephoneCorpusM
|
||||
|
||||
@Override
|
||||
public void sendMq(String tag, String message) {
|
||||
log.info("RocketMQ主题和标签: "+topic+":"+ tag);
|
||||
log.info("RocketMQ主题和标签: "+topic+":"+ tag + message);
|
||||
rocketMqTemplate.asyncSend(topic+":"+ tag, MessageBuilder.withPayload(message).build(),
|
||||
new SendCallback() {
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user