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