加日志,发送mq之前
This commit is contained in:
@@ -32,8 +32,8 @@ import java.util.concurrent.Executors;
|
||||
|
||||
|
||||
/**
|
||||
* @description 铭牌语料表-同步表
|
||||
* @author rz
|
||||
* @description 铭牌语料表-同步表
|
||||
* @date 2025-03-04
|
||||
*/
|
||||
@RefreshScope
|
||||
@@ -68,6 +68,7 @@ public class TmNameplateCorpusServiceImpl extends ServiceImpl<TmNameplateCorpusM
|
||||
|
||||
@Autowired
|
||||
private DataMaskingRuleService dataMaskingRuleService;
|
||||
|
||||
@Override
|
||||
public void runNameplateCorpusDifyRetry(String paramJson) {
|
||||
long startTime = System.currentTimeMillis();
|
||||
@@ -207,13 +208,16 @@ public class TmNameplateCorpusServiceImpl extends ServiceImpl<TmNameplateCorpusM
|
||||
}
|
||||
|
||||
|
||||
|
||||
String outputsFinal = "outputs";
|
||||
String aiAnalysisRequestIdFinal = "aiAnalysisRequestId";
|
||||
|
||||
@Override
|
||||
public void sendNameplateLto(JSONObject execDifyFlow, String aiAnalysisRequestId, TmNameplateCorpus tmNameplateCorpus, String businessType) {
|
||||
|
||||
try {
|
||||
log.info("铭牌sendNameplateLto getCustomerFlowId:{}", tmNameplateCorpus.getCustomerFlowId());
|
||||
log.info("铭牌sendNameplateLto text contnt :{}", execDifyFlow.toString());
|
||||
log.info("铭牌sendNameplateLto text contnt :{}", execDifyFlow);
|
||||
log.info("铭牌sendNameplateLto toJSONString :{}", execDifyFlow.toJSONString());
|
||||
|
||||
if (null != execDifyFlow && execDifyFlow.get("status").equals("succeeded")) {
|
||||
String text = execDifyFlow.getString(outputsFinal);
|
||||
@@ -225,15 +229,14 @@ public class TmNameplateCorpusServiceImpl extends ServiceImpl<TmNameplateCorpusM
|
||||
tmTelephoneCorpusService.sendMq(CategoryEnum.NAMEPLATE_VOICE.getCode(), text);
|
||||
}
|
||||
|
||||
|
||||
try {
|
||||
ttNameplateRecordMapper.insert(TtNameplateRecord.builder().nameplateCorpusId(tmNameplateCorpus.getId()).customerFlowId(tmNameplateCorpus.getCustomerFlowId()).build());
|
||||
aiAnalysisRequestLogsService.saveOrUpdateAiAnalysisRequestLogs(AiAnalysisRequestLogs.builder().aiAnalysisRequestId(aiAnalysisRequestId).businessResponse(text).build());
|
||||
|
||||
}
|
||||
} catch (Exception e) {
|
||||
log.info(" 铭牌语料处理保存报告异常processItem:{} ", e);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public ResultMsg<Object> updateNameplate(String message) {
|
||||
@@ -299,6 +302,7 @@ public class TmNameplateCorpusServiceImpl extends ServiceImpl<TmNameplateCorpusM
|
||||
|
||||
return ResultMsg.failed();
|
||||
}
|
||||
|
||||
@Override
|
||||
public ResultMsg<Object> mockInsert(String data) {
|
||||
if (StringUtils.isNotEmpty(data)) {
|
||||
@@ -314,6 +318,7 @@ public class TmNameplateCorpusServiceImpl extends ServiceImpl<TmNameplateCorpusM
|
||||
}
|
||||
return ResultMsg.failed();
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<TmNameplateCorpus> queryTelephoneCorpusByCustomerFlowId(List<String> customerFlowIds) {
|
||||
return tmNameplateCorpusMapper.queryTmNameplateCorpusByCustomerFlowIds(customerFlowIds);
|
||||
|
||||
Reference in New Issue
Block a user