sonar
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user