Riku
2024-09-28 bda3bf8923acb5216f6f46b5d903cac24c842143
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
package cn.flightfeather.supervision.domain.ds1.repository
 
import cn.flightfeather.supervision.lightshare.vo.AreaVo
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 SubTaskRepTest {
 
    @Autowired
    lateinit var subTaskRep: SubTaskRep
 
    @Test
    fun findSummary() {
        val res = subTaskRep.findSummary(AreaVo().apply {
            provincecode = "31"
            provincename = "上海市"
            citycode = "3100"
            cityname = "上海市"
            districtcode = "310116"
            districtname = "金山区"
            starttime = LocalDateTime.of(2024, 7, 5, 0, 0, 0, 0)
            endtime = LocalDateTime.of(2024, 7, 6, 0, 0, 0, 0)
        })
        println(res)
    }
}