package com.fzzy.api.timer;
|
|
import com.fzzy.otherview.whhpjl.pr.WhjlShareApi2013PR2;
|
import lombok.extern.slf4j.Slf4j;
|
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.scheduling.annotation.Scheduled;
|
import org.springframework.stereotype.Component;
|
|
/**
|
* @Description 武汉军粮省平台
|
* @Author CZT
|
* @Date 2024/6/28 16:38
|
*/
|
@Slf4j
|
@Component(ApiWhjlScheduled.BEAN_ID)
|
public class ApiWhjlScheduled {
|
public static final String BEAN_ID = "api.apiWhjlScheduled";
|
|
@Autowired
|
private WhjlShareApi2013PR2 whjlShareApi2013PR2;
|
/**
|
* 每天晚上11点定时统计数据相符性
|
*/
|
@Scheduled(cron = "0 0 23 * * ? ")
|
public void scheduled() {
|
|
log.info("------->>>>>>>>>>武汉黄陂军粮,系统定时统计共享接口省质检报告");
|
|
//获取共享数据
|
whjlShareApi2013PR2.pullData(null);
|
//同步至库区数据库
|
whjlShareApi2013PR2.sysDataToDept();
|
}
|
|
}
|