双重预防项目-国泰新华二开定制版
heheng
6 days ago 7ee844962f050cfc548e5dd661a586a4993cbf89
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
36
37
38
39
40
41
import com.ruoyi.RuoYiApplication;
import com.ruoyi.project.tr.specialCheck.scheduleLogTask.DealDataTask;
import com.ruoyi.project.tr.specialCheck.scheduleLogTask.SpecialCheckTaskDownload;
import lombok.extern.slf4j.Slf4j;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.ActiveProfiles;
import org.springframework.test.context.junit4.SpringRunner;
 
import java.io.UnsupportedEncodingException;
 
@RunWith(SpringRunner.class)
@SpringBootTest(classes = RuoYiApplication.class)
@ActiveProfiles("dev")
@Slf4j
public class ReportTest {
    @Autowired
    SpecialCheckTaskDownload specialCheckTaskDownload;
 
    @Autowired
    private DealDataTask dealDataTask;
 
    //第一步每年拉取数据处理
    @Test
    public void testPush() throws UnsupportedEncodingException {
 
        specialCheckTaskDownload.execReportDateSchedule();
 
    }
 
    //第二部处理拉取数据
    @Test
    public void testPushV2() throws UnsupportedEncodingException {
 
        dealDataTask.dealData();
 
    }
 
}