3 changed files with 108 additions and 0 deletions
@ -0,0 +1,30 @@ |
|||||
|
package com.zdxt.enforcementcode.quartz.job; |
||||
|
|
||||
|
import com.zdxt.enforcementcode.service.IEfcodeCpNoticeService; |
||||
|
import lombok.RequiredArgsConstructor; |
||||
|
import lombok.extern.slf4j.Slf4j; |
||||
|
import org.springframework.stereotype.Component; |
||||
|
|
||||
|
/** |
||||
|
* 预告到期短信预警 - 定时任务 |
||||
|
* <p>扫描已发布且执法日期为明天的预告,向企业联系人发送到期预警短信, |
||||
|
* 提醒企业提前做好迎检准备。</p> |
||||
|
* |
||||
|
* @author zrb |
||||
|
*/ |
||||
|
@Slf4j |
||||
|
@Component |
||||
|
@RequiredArgsConstructor |
||||
|
public class CpNoticeExpiryReminderJob { |
||||
|
|
||||
|
private final IEfcodeCpNoticeService cpNoticeService; |
||||
|
|
||||
|
/** |
||||
|
* 任务执行入口(public,供 JobInvokeUtil 通过反射调用) |
||||
|
*/ |
||||
|
public void execute() { |
||||
|
log.info("[CpNoticeExpiryReminderJob] 定时任务触发:即将到期的预告发送短信预警"); |
||||
|
int count = cpNoticeService.notifyExpiryReminder(); |
||||
|
log.info("[CpNoticeExpiryReminderJob] 执行完成:共发送{}条预告的预警短信", count); |
||||
|
} |
||||
|
} |
||||
Loading…
Reference in new issue