diff --git a/hzims-service/hzims-scheduled/src/main/java/com/hnac/hzims/scheduled/scheduled/BasicScheduledTask.java b/hzims-service/hzims-scheduled/src/main/java/com/hnac/hzims/scheduled/scheduled/BasicScheduledTask.java index 843c270..8af696a 100644 --- a/hzims-service/hzims-scheduled/src/main/java/com/hnac/hzims/scheduled/scheduled/BasicScheduledTask.java +++ b/hzims-service/hzims-scheduled/src/main/java/com/hnac/hzims/scheduled/scheduled/BasicScheduledTask.java @@ -15,6 +15,7 @@ import com.hnac.hzims.scheduled.service.basic.IImsCertificatetNoticeService; import com.hnac.hzims.scheduled.service.basic.IImsCertificatetService; import com.hnac.hzims.scheduled.service.basic.IImsPresonManagementService; import com.xxl.job.core.biz.model.ReturnT; +import com.xxl.job.core.handler.annotation.XxlJob; import lombok.extern.slf4j.Slf4j; import org.apache.commons.lang.StringUtils; import org.junit.jupiter.api.Test; @@ -35,6 +36,8 @@ import java.text.SimpleDateFormat; import java.util.*; import java.util.stream.Collectors; +import static com.hnac.hzims.operational.main.constant.MainConstants.CERTIFICATET_DEAD_LINE_NOTICE; + /** * 排班到期定时任务通知 @@ -63,12 +66,12 @@ public class BasicScheduledTask { /** * realId刷新 */ -// @XxlJob(CERTIFICATET_DEAD_LINE_NOTICE) - @Scheduled(cron = "0/40 * * * * ? ") -// public ReturnT certificatetDeadLineNotice(String param) throws ParseException { - public ReturnT certificatetDeadLineNotice() throws ParseException { + @XxlJob(CERTIFICATET_DEAD_LINE_NOTICE) +// @Scheduled(cron = "0/40 * * * * ? ") + public ReturnT certificatetDeadLineNotice(String param) throws ParseException { +// public ReturnT certificatetDeadLineNotice() throws ParseException { +// String param=""; Date endTime = new Date(); - String param=""; if (StringUtils.isNotBlank(param)) { endTime = new SimpleDateFormat("yyyy-MM-dd").parse(param); }