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