package cn.flightfeather.supervision.business.crosstimechange
|
|
import cn.flightfeather.supervision.common.utils.Constant
|
import cn.flightfeather.supervision.lightshare.vo.AreaVo
|
import org.junit.Test
|
import org.junit.jupiter.api.Assertions.*
|
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.SpringRunner
|
import java.time.LocalDateTime
|
|
@RunWith(SpringRunner::class)
|
@ExtendWith(SpringExtension::class)
|
@SpringBootTest
|
class CrossTimeChangeManagerTest {
|
|
@Autowired
|
lateinit var crossTimeChangeManager: CrossTimeChangeManager
|
|
@Test
|
fun execute() {
|
// crossTimeChangeManager.execute(AreaVo().apply {
|
// provincecode = "31"
|
// citycode = "3100"
|
// districtcode = "310104"
|
// starttime = LocalDateTime.of(2024, 3, 1, 0, 0, 0, 0)
|
// endtime = LocalDateTime.of(2024, 6, 30, 23, 59, 59, 999)
|
// scensetypeid = Constant.SceneType.TYPE5.value
|
// }, "徐汇餐饮历史问题可整改统计-3至6月.xlsx")
|
|
crossTimeChangeManager.execute(AreaVo().apply {
|
provincecode = "31"
|
citycode = "3100"
|
districtcode = "310104"
|
starttime = LocalDateTime.of(2024, 7, 1, 0, 0, 0, 0)
|
endtime = LocalDateTime.of(2024, 10, 31, 23, 59, 59, 999)
|
scensetypeid = Constant.SceneType.TYPE5.value
|
}, "徐汇餐饮历史问题可整改统计-7至10月.xlsx")
|
}
|
}
|