特邀发言官补偿任务

This commit is contained in:
lxu75
2025-06-17 16:19:01 +08:00
parent a50ca609de
commit 78946e0156

View File

@@ -0,0 +1,33 @@
package com.volvo.ai.analytic.center.job;
import com.volvo.ai.analytic.center.service.SpokesManService;
import com.volvo.common.core.util.ResultMsg;
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;
@Slf4j
@Component
public class InvitedSpeakerJob {
@Autowired
private SpokesManService spokesmanService;
/**
* 邀约消息推送
*/
@XxlJob("invitedSpeakerJobTask")
public ResultMsg invitedSpeakerJobTask() {
try {
log.info("invitedSpeakerJobTask 开始执行特邀发言官定时任务补偿处理消息");
spokesmanService.communityMessageByTask();
} catch (Exception e) {
log.error("invitedSpeakerJobTask 定时任务补偿处理消息异常",e.getMessage());
throw new RuntimeException(e);
}
return ResultMsg.ok();
}
}