定位画像截取类型
This commit is contained in:
@@ -84,7 +84,6 @@ public class QiWeiCorpusJob {
|
|||||||
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-> {
|
||||||
tmTelephoneCorpusService.runTelephoneCorpusDify(item);
|
tmTelephoneCorpusService.runTelephoneCorpusDify(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());
|
||||||
|
|||||||
@@ -240,12 +240,22 @@ public class TmNameplateCorpusServiceImpl extends ServiceImpl<TmNameplateCorpusM
|
|||||||
String aiAnalysisRequestId = analysisResp.getString("aiAnalysisRequestId");
|
String aiAnalysisRequestId = analysisResp.getString("aiAnalysisRequestId");
|
||||||
String difyResponse = analysisResp.getString("difyResponse");
|
String difyResponse = analysisResp.getString("difyResponse");
|
||||||
String customerFlowId = analysisResp.getString("customerFlowId");
|
String customerFlowId = analysisResp.getString("customerFlowId");
|
||||||
String businessType = analysisResp.getString("businessType");
|
|
||||||
|
String text = analysisResp.getString("outputs");
|
||||||
|
JSONObject outputs = JSONObject.parseObject(text);
|
||||||
|
String businessId = outputs.getString("businessId");
|
||||||
|
String businessType = outputs.getString("businessType");
|
||||||
|
|
||||||
|
if (aiAnalysisRequestId==null){
|
||||||
|
aiAnalysisRequestId = outputs.getString("aiAnalysisRequestId");
|
||||||
|
}
|
||||||
|
|
||||||
log.info("aiAnalysisRequestId is : ",analysisResp.getString("aiAnalysisRequestId"));
|
log.info("aiAnalysisRequestId is : ",analysisResp.getString("aiAnalysisRequestId"));
|
||||||
log.info("businessType is : ", businessType);
|
log.info("businessType is : ", businessType);
|
||||||
|
|
||||||
if (aiAnalysisRequestId.indexOf(BusinessTypeEnum.CORPUS_PORTRAIT_NAMEPLATE.getCode())>=0){
|
if (aiAnalysisRequestId.indexOf(BusinessTypeEnum.CORPUS_PORTRAIT_NAMEPLATE.getCode())>=0){
|
||||||
businessType=BusinessTypeEnum.CORPUS_PORTRAIT_NAMEPLATE.getCode();
|
businessType=BusinessTypeEnum.CORPUS_PORTRAIT_NAMEPLATE.getCode();
|
||||||
|
customerFlowId = businessId;
|
||||||
log.info("客户画像场景 businessType is : ", businessType);
|
log.info("客户画像场景 businessType is : ", businessType);
|
||||||
}else {
|
}else {
|
||||||
businessType = BusinessTypeEnum.SMART_ASSISTANT_NAMEPLATE.getCode();
|
businessType = BusinessTypeEnum.SMART_ASSISTANT_NAMEPLATE.getCode();
|
||||||
|
|||||||
Reference in New Issue
Block a user