| | |
| | | import cn.flightfeather.supervision.lightshare.service.SearchService |
| | | import cn.flightfeather.supervision.lightshare.vo.ExcelConfigVo |
| | | import org.junit.Test |
| | | import org.junit.jupiter.api.extension.ExtendWith |
| | | |
| | | import org.junit.runner.RunWith |
| | | import org.springframework.beans.factory.annotation.Autowired |
| | | import org.springframework.boot.test.context.SpringBootTest |
| | | import org.springframework.test.context.junit.jupiter.SpringExtension |
| | | import org.springframework.test.context.junit4.SpringJUnit4ClassRunner |
| | | import org.springframework.test.context.junit4.SpringRunner |
| | | import java.time.LocalDateTime |
| | | import java.time.ZoneId |
| | | import java.util.* |
| | | |
| | | @RunWith(SpringJUnit4ClassRunner::class) |
| | | @SpringBootTest(classes = [SupervisionApplication::class]) |
| | | @RunWith(SpringRunner::class) |
| | | @ExtendWith(SpringExtension::class) |
| | | @SpringBootTest |
| | | class SearchServiceImplTest { |
| | | |
| | | @Autowired |
| | |
| | | val localTimeE = LocalDateTime.of(2021, 3, 31, 23, 59, 59) |
| | | val sD = Date.from(localTimeS.atZone(ZoneId.systemDefault()).toInstant()) |
| | | val eD = Date.from(localTimeE.atZone(ZoneId.systemDefault()).toInstant()) |
| | | |
| | | val mode = 10 |
| | | //金山2022年6月 |
| | | searchService.writeToFile(ExcelConfigVo( |
| | | "EPnTo3hoOWZXAU33", |
| | | sD, eD, "31", "3100", "310104", null, 5, null, null, null |
| | | )) |
| | | "8QN1VzftuhBJmrF8", |
| | | districtCode = "310106", |
| | | // townCode = "310116113", |
| | | sceneType = 1), mode) |
| | | //金山2021年3月 |
| | | // searchService.writeToFile(ExcelConfigVo("o7jdSzr79fe0NH3I", districtCode = "310116", sceneType = 1)) |
| | | } |
| | | } |