Riku
2025-06-02 e731486b50c4ea6e2d28f302df449b4bd0b2be57
src/test/kotlin/com/flightfeather/uav/biz/dataprocess/RoadSegmentTest.kt
@@ -1,6 +1,7 @@
package com.flightfeather.uav.biz.dataprocess
import com.flightfeather.uav.common.exception.BizException
import com.flightfeather.uav.domain.entity.Mission
import com.flightfeather.uav.domain.repository.MissionRep
import org.junit.Test
@@ -22,7 +23,17 @@
    @Test
    fun handle() {
        val mission = missionRep.findOne("SH-CN-20240514") ?: throw BizException("任务不存在")
        val mission = missionRep.findOne("SH-CN-20240830(jingan)") ?: throw BizException("任务不存在")
        roadSegment.handle(mission)
//        val missionList = missionRep.findList(Mission().apply {
//            districtName = "长宁区"
//        })
//        missionList.forEach {
//            it?.let {
//                if (it.missionCode != "SH-CN-20240514") {
//                    roadSegment.handle(it)
//                }
//            }
//        }
    }
}