提交 bb5333b1 authored 作者: xc's avatar xc

xc

上级 77446ec5
...@@ -7,6 +7,8 @@ import com.zjty.efs.bus.service.NoticeService; ...@@ -7,6 +7,8 @@ import com.zjty.efs.bus.service.NoticeService;
import com.zjty.efs.ftp.entity.DownLoadCount; import com.zjty.efs.ftp.entity.DownLoadCount;
import com.zjty.efs.ftp.entity.DownLoadRequest; import com.zjty.efs.ftp.entity.DownLoadRequest;
import com.zjty.efs.ftp.service.DownLoadService; import com.zjty.efs.ftp.service.DownLoadService;
import lombok.extern.log4j.Log4j;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled; import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component; import org.springframework.stereotype.Component;
...@@ -16,6 +18,7 @@ import java.util.Date; ...@@ -16,6 +18,7 @@ import java.util.Date;
import java.util.List; import java.util.List;
@Component @Component
@Slf4j
public class Job { public class Job {
@Autowired @Autowired
NoticeService noticeService; NoticeService noticeService;
...@@ -44,7 +47,7 @@ public class Job { ...@@ -44,7 +47,7 @@ public class Job {
if(days <= 1.001 && days > 0.998 && notice.getLabel() != 2){ if(days <= 1.001 && days > 0.998 && notice.getLabel() != 2){
updateAtt(notice, "1", 2); updateAtt(notice, "1", 2);
} }
log.info("定时任务:消息提醒");
} }
}catch (Exception e){ }catch (Exception e){
e.printStackTrace(); e.printStackTrace();
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论