审核流程配置
This commit is contained in:
@@ -10,8 +10,8 @@ import org.springframework.stereotype.Component;
|
|||||||
|
|
||||||
@Slf4j
|
@Slf4j
|
||||||
@Component
|
@Component
|
||||||
@RocketMQMessageListener(consumerGroup = "${rocketmq.consumer..group}",
|
@RocketMQMessageListener(consumerGroup = "${rocketmq.consumer.claimVerification.group}",
|
||||||
topic = "${rocketmq.consumer.topic}",
|
topic = "${rocketmq.consumer.claimVerification.topic}",
|
||||||
enableMsgTrace = true)
|
enableMsgTrace = true)
|
||||||
public class ClaimVerificationConsumer implements RocketMQListener<MessageExt>{
|
public class ClaimVerificationConsumer implements RocketMQListener<MessageExt>{
|
||||||
|
|
||||||
|
|||||||
@@ -49,9 +49,6 @@ public class ClaimVerificationServiceImpl implements ClaimVerificationService {
|
|||||||
@Autowired
|
@Autowired
|
||||||
private DiFyService diFyService;
|
private DiFyService diFyService;
|
||||||
|
|
||||||
@Value("${dify.claimVerification.user}")
|
|
||||||
private String claimVerificationUser;
|
|
||||||
|
|
||||||
@Value("${dify.claimVerification.fileToken}")
|
@Value("${dify.claimVerification.fileToken}")
|
||||||
private String fileToken;
|
private String fileToken;
|
||||||
|
|
||||||
@@ -160,6 +157,7 @@ public class ClaimVerificationServiceImpl implements ClaimVerificationService {
|
|||||||
data.put("businessType", claimVerificationFileAnalysisDTO.getBusinessType());
|
data.put("businessType", claimVerificationFileAnalysisDTO.getBusinessType());
|
||||||
data.put("fileType", claimVerificationFileAnalysisDTO.getFileType());
|
data.put("fileType", claimVerificationFileAnalysisDTO.getFileType());
|
||||||
data.put("fileData",difyToAfter);
|
data.put("fileData",difyToAfter);
|
||||||
|
data.put("aiAnalysisRequestId",aiAnalysisRequestId);
|
||||||
//返回结果推送到Newbie的MQ
|
//返回结果推送到Newbie的MQ
|
||||||
rocketMQTemplate.syncSend(topic, data);
|
rocketMQTemplate.syncSend(topic, data);
|
||||||
log.info("索赔检核文件分析发送回调MQ完成: {}", data);
|
log.info("索赔检核文件分析发送回调MQ完成: {}", data);
|
||||||
@@ -206,9 +204,12 @@ public class ClaimVerificationServiceImpl implements ClaimVerificationService {
|
|||||||
data.put("newBieAfterSalesId", claimVerificationFileAnalysisDTO.getNewBieAfterSalesId());
|
data.put("newBieAfterSalesId", claimVerificationFileAnalysisDTO.getNewBieAfterSalesId());
|
||||||
data.put("businessType", claimVerificationFileAnalysisDTO.getBusinessType());
|
data.put("businessType", claimVerificationFileAnalysisDTO.getBusinessType());
|
||||||
data.put("warrantyAuditReport",audiResToAfter);
|
data.put("warrantyAuditReport",audiResToAfter);
|
||||||
|
data.put("aiAnalysisRequestId",aiAnalysisRequestId);
|
||||||
//返回结果推送到Newbie的MQ
|
//返回结果推送到Newbie的MQ
|
||||||
rocketMQTemplate.syncSend(topic, data);
|
rocketMQTemplate.syncSend(topic, data);
|
||||||
log.info("索赔检核审计报告发送回调MQ完成: {}", data);
|
log.info("索赔检核审计报告发送回调MQ完成: {}", data);
|
||||||
|
//异步更新请求日志表的difyResponse字段
|
||||||
|
syncUpdateDiFyResponse(diFyObject, aiAnalysisRequestId);
|
||||||
}
|
}
|
||||||
}else {
|
}else {
|
||||||
throw new RuntimeException("售后索赔检核业务类型错误");
|
throw new RuntimeException("售后索赔检核业务类型错误");
|
||||||
|
|||||||
Reference in New Issue
Block a user