package cn.iocoder.yudao.module.server.job;

import cn.iocoder.yudao.framework.quartz.core.handler.JobHandler;
import cn.iocoder.yudao.framework.tenant.core.aop.TenantIgnore;
import cn.iocoder.yudao.module.server.service.policycommunications.PolicyCommunicationsServiceImpl;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

// PolicyCommunicationsTask.java
@Component
@Slf4j
public class PolicyCommunicationsJob  implements JobHandler {
    
    @Resource
    private PolicyCommunicationsServiceImpl policyCommunicationsService;

    @TenantIgnore
    public String execute(String param) throws Exception {
        policyCommunicationsService.sendDeadlineReminders();
        return "插入短信通知";
    }
}