czt
昨天 9f6dacf7b39e5aeba37d8faf575c9e56d8cbe51a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
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();
    }
 
}