| | |
| | | import com.ruoyi.doublePrevention.scheduls.ExecCJReportDateSchedule; |
| | | 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.autoconfigure.SpringBootApplication; |
| | | 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 = SpringBootApplication.class) |
| | | //@ActiveProfiles("dev") |
| | | @SpringBootTest(classes = RuoYiApplication.class) |
| | | @ActiveProfiles("dev") |
| | | @Slf4j |
| | | public class ReportTest { |
| | | @Autowired |
| | | ExecCJReportDateSchedule execCJReportDateSchedule; |
| | | SpecialCheckTaskDownload specialCheckTaskDownload; |
| | | |
| | | @Autowired |
| | | private DealDataTask dealDataTask; |
| | | |
| | | //第一步每年拉取数据处理 |
| | | @Test |
| | | public void testPush() throws UnsupportedEncodingException { |
| | | execCJReportDateSchedule.execReportDateSchedule(); |
| | | |
| | | specialCheckTaskDownload.execReportDateSchedule(); |
| | | |
| | | } |
| | | |
| | | //第二部处理拉取数据 |
| | | @Test |
| | | public void testPushV2() throws UnsupportedEncodingException { |
| | | |
| | | dealDataTask.dealData(); |
| | | |
| | | } |
| | | |
| | | } |