feiyu02
2025-09-30 a3cc1d220f8a1de11874bebceba0130d32157ff1
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
42
43
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")
    }
}