This commit is contained in:
zren25
2025-03-26 19:50:39 +08:00
parent b40b763c15
commit 5e06114292

View File

@@ -55,9 +55,9 @@ public class QiWeiCorpusJob {
return ResultMsg.ok();
}
@XxlJob("DccCorpusFailRetry")
@XxlJob("dccCorpusFailRetry")
@PostMapping("dccCorpusFailRetry")
public ResultMsg DccCorpusFailRetry(@RequestBody String paramJson) {
public ResultMsg dccCorpusFailRetry(@RequestBody String paramJson) {
try {
// 获取任务参数
String param = XxlJobHelper.getJobParam();
@@ -67,9 +67,7 @@ public class QiWeiCorpusJob {
// 执行业务逻辑
XxlJobHelper.log("任务参数: {}", 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("processMessageByTask 定时任务补偿处理消息异常",e.getMessage());
throw new RuntimeException(e);