feiyu02
2025-07-31 6688232eaa889eeb6c58d0d804b587699db55ec2
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
44
45
46
package cn.flightfeather.supervision.lightshare.web
 
import cn.flightfeather.supervision.common.utils.Constant
import cn.flightfeather.supervision.lightshare.service.DataProductService
import cn.flightfeather.supervision.model.dataproduct.DataProdOption
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.SpringRunner
import java.time.LocalDateTime
 
@RunWith(SpringRunner::class)
@ExtendWith(SpringExtension::class)
@SpringBootTest
class DataProductControllerTest {
 
    @Autowired
    lateinit var dataProductController: DataProductController
 
    @Autowired
    lateinit var dataProductService: DataProductService
 
    private val option = DataProdOption().apply {
        provinceCode = "31"
        cityCode = "3100"
        districtCode = "310106"
        townCode
        startTime = LocalDateTime.of(2025, 1, 1, 0, 0, 0)
        endTime = LocalDateTime.of(2025, 7, 31, 23, 59, 59)
        sceneId
        sceneTypeId = Constant.SceneType.TYPE1.value.toInt()
    }
 
    @Test
    fun problemChangeList() {
        val result = dataProductService.problemChangeList(option)
        println(result)
    }
 
    @Test
    fun problemRecurrence() {
    }
}