企微语料查询调整

This commit is contained in:
zren25
2025-03-24 16:21:35 +08:00
parent 2b16c69f8a
commit c1e44856e9
2 changed files with 11 additions and 10 deletions

View File

@@ -2,17 +2,15 @@ package com.volvo.ai.analytic.center.job;
import com.volvo.ai.analytic.center.service.TmOdsVdqwMessagearchivingService;
import com.volvo.common.core.util.ResultMsg;
import com.xxl.job.core.context.XxlJobHelper;
import com.xxl.job.core.handler.annotation.XxlJob;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;
@Slf4j
@Component
@RestController
public class QiWeiCorpusJob {
@Autowired
@@ -22,11 +20,14 @@ public class QiWeiCorpusJob {
* 企微语料处理
*/
@XxlJob("QiWeiCorpusTask")
@PostMapping("qiWeiCorpusTask")
public ResultMsg qiWeiCorpusTask(String paramJson) {
try {
log.info("qiWeiCorpusTask 企微语料查询处理:{}",paramJson);
tmOdsVdqwMessagearchivingService.runQiWeiCorpusDify(paramJson);
// 获取任务参数
String param = XxlJobHelper.getJobParam();
// 执行业务逻辑
XxlJobHelper.log("任务参数: {}", param);
log.info("qiWeiCorpusTask 企微语料查询处理:{}",param);
tmOdsVdqwMessagearchivingService.runQiWeiCorpusDify(param);
} catch (Exception e) {
log.error("processMessageByTask 定时任务补偿处理消息异常",e.getMessage());
throw new RuntimeException(e);