解决sonar问题
This commit is contained in:
@@ -82,9 +82,9 @@ public class QiWeiCorpusJob {
|
||||
// 执行业务逻辑
|
||||
XxlJobHelper.log("dccCorpusFailRetry任务参数: {}", param);
|
||||
List<AicorpusTelephoneDTO> corpusDtoList = tmTelephoneCorpusMapper.queryTelephoneCorpusBySourceIds( Arrays.asList(param.split(",")));
|
||||
corpusDtoList.stream().forEach(item-> {
|
||||
tmTelephoneCorpusService.runTelephoneCorpusDify(item);
|
||||
});
|
||||
corpusDtoList.stream().forEach(item->
|
||||
tmTelephoneCorpusService.runTelephoneCorpusDify(item)
|
||||
);
|
||||
} catch (Exception e) {
|
||||
log.error(PROCESS_MESSAGE_TASK_ERROR,e.getMessage());
|
||||
throw new JobTaskException(PROCESS_MESSAGE_TASK_ERROR, e);
|
||||
|
||||
@@ -209,6 +209,7 @@ public class TmNameplateCorpusServiceImpl extends ServiceImpl<TmNameplateCorpusM
|
||||
|
||||
|
||||
String outputsFinal="outputs";
|
||||
String aiAnalysisRequestIdFinal = "aiAnalysisRequestId";
|
||||
@Override
|
||||
public void sendNameplateLto(JSONObject execDifyFlow,String aiAnalysisRequestId, TmNameplateCorpus tmNameplateCorpus,String businessType) {
|
||||
log.info("铭牌sendNameplateLto getCustomerFlowId:{}", tmNameplateCorpus.getCustomerFlowId());
|
||||
@@ -237,7 +238,7 @@ public class TmNameplateCorpusServiceImpl extends ServiceImpl<TmNameplateCorpusM
|
||||
if(StringUtils.isNotEmpty(message)){
|
||||
log.info("updateNameplate 回调 message: {}", message);
|
||||
JSONObject analysisResp = JSONObject.parseObject(message);
|
||||
String aiAnalysisRequestId = analysisResp.getString("aiAnalysisRequestId");
|
||||
String aiAnalysisRequestId = analysisResp.getString(aiAnalysisRequestIdFinal);
|
||||
String difyResponse = analysisResp.getString("difyResponse");
|
||||
String customerFlowId = analysisResp.getString("customerFlowId");
|
||||
|
||||
@@ -247,10 +248,10 @@ public class TmNameplateCorpusServiceImpl extends ServiceImpl<TmNameplateCorpusM
|
||||
String businessType = outputs.getString("businessType");
|
||||
|
||||
if (aiAnalysisRequestId==null){
|
||||
aiAnalysisRequestId = outputs.getString("aiAnalysisRequestId");
|
||||
aiAnalysisRequestId = outputs.getString(aiAnalysisRequestIdFinal);
|
||||
}
|
||||
|
||||
log.info("aiAnalysisRequestId is : ",analysisResp.getString("aiAnalysisRequestId"));
|
||||
log.info("aiAnalysisRequestId is : ",analysisResp.getString(aiAnalysisRequestIdFinal));
|
||||
log.info("businessType is : ", businessType);
|
||||
|
||||
if (aiAnalysisRequestId.indexOf(BusinessTypeEnum.CORPUS_PORTRAIT_NAMEPLATE.getCode())>=0){
|
||||
|
||||
Reference in New Issue
Block a user