解决sonar问题
This commit is contained in:
@@ -105,9 +105,9 @@ public class QiWeiCorpusJob {
|
||||
// 执行业务逻辑
|
||||
XxlJobHelper.log("dccCorpusFailRetry任务参数: {}", param);
|
||||
List<AicorpusTelephoneDTO> corpusDtoList = tmTelephoneCorpusMapper.queryTelephoneCorpusBySourceIds( Arrays.asList(param.split(",")));
|
||||
corpusDtoList.stream().forEach(item-> {
|
||||
corpusPortraitService.portraitDcc(item);
|
||||
});
|
||||
corpusDtoList.stream().forEach(item->
|
||||
corpusPortraitService.portraitDcc(item)
|
||||
);
|
||||
} catch (Exception e) {
|
||||
log.error(PROCESS_MESSAGE_TASK_ERROR,e.getMessage());
|
||||
throw new JobTaskException(PROCESS_MESSAGE_TASK_ERROR, e);
|
||||
|
||||
@@ -208,12 +208,12 @@ public class TmNameplateCorpusServiceImpl extends ServiceImpl<TmNameplateCorpusM
|
||||
|
||||
|
||||
|
||||
|
||||
String outputsFinal="outputs";
|
||||
@Override
|
||||
public void sendNameplateLto(JSONObject execDifyFlow,String aiAnalysisRequestId, TmNameplateCorpus tmNameplateCorpus,String businessType) {
|
||||
log.info("铭牌sendNameplateLto getCustomerFlowId:{}", tmNameplateCorpus.getCustomerFlowId());
|
||||
if (null != execDifyFlow && execDifyFlow.get("status").equals("succeeded")) {
|
||||
String text = execDifyFlow.getString("outputs");
|
||||
String text = execDifyFlow.getString(outputsFinal);
|
||||
// 发送MQ
|
||||
log.info("铭牌send mq 业务类型是:{}, Json 是:{}", businessType, text);
|
||||
if (BusinessTypeEnum.CORPUS_PORTRAIT_NAMEPLATE.getCode().equals(businessType)) {// 客户画像
|
||||
@@ -241,7 +241,7 @@ public class TmNameplateCorpusServiceImpl extends ServiceImpl<TmNameplateCorpusM
|
||||
String difyResponse = analysisResp.getString("difyResponse");
|
||||
String customerFlowId = analysisResp.getString("customerFlowId");
|
||||
|
||||
String text = analysisResp.getString("outputs");
|
||||
String text = analysisResp.getString(outputsFinal);
|
||||
JSONObject outputs = JSONObject.parseObject(text);
|
||||
String businessId = outputs.getString("businessId");
|
||||
String businessType = outputs.getString("businessType");
|
||||
@@ -269,7 +269,7 @@ public class TmNameplateCorpusServiceImpl extends ServiceImpl<TmNameplateCorpusM
|
||||
aiAnalysisRequestLogs.setDifyResponse(difyResponse);
|
||||
|
||||
JSONObject difyJson = JSONObject.parseObject(difyResponse);
|
||||
aiAnalysisRequestLogs.setBusinessResponse(difyJson.getString("outputs"));
|
||||
aiAnalysisRequestLogs.setBusinessResponse(difyJson.getString(outputsFinal));
|
||||
aiAnalysisRequestLogs.setAiAnalysisRequestType(businessType);
|
||||
aiAnalysisRequestLogsService.saveOrUpdateAiAnalysisRequestLogs(aiAnalysisRequestLogs);
|
||||
log.info("333333333333");
|
||||
|
||||
Reference in New Issue
Block a user