feiyu02
2025-07-29 2e024c986c14943a41f7bfe913cfef0cede64198
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
package com.flightfeather.uav.common.net
 
import com.flightfeather.uav.domain.entity.Mission
import org.junit.Assert.*
import org.junit.Test
import java.time.LocalDateTime
import java.time.ZoneId
import java.util.*
 
class ShenXinServiceTest {
 
    @Test
    fun fetchData() {
        val mission = Mission().apply {
            missionCode = "SHJA-20240813"
            deviceType = "0a"
            deviceCode = "TX105"
            startTime = Date.from(LocalDateTime.of(2024, 8, 13, 11, 30, 0, 0).atZone(ZoneId.systemDefault())
                .toInstant())
            endTime = Date.from(LocalDateTime.of(2024, 8, 13, 17, 0, 0, 0).atZone(ZoneId.systemDefault()).toInstant())
            districtName = "静安区"
        }
        val date = LocalDateTime.of(2024, 8, 13, 15, 43, 0, 0)
        val res = ShenXinService.fetchData(mission, date)
        println(res)
    }
}