From 29383149f7040d89ae00ad48dc48bbcf46587946 Mon Sep 17 00:00:00 2001 From: feiyu02 <risaku@163.com> Date: 星期一, 01 九月 2025 17:32:53 +0800 Subject: [PATCH] 2025.9.1 1. 新增走航任务统计功能(待完成) --- src/main/kotlin/com/flightfeather/uav/domain/repository/SceneInfoRep.kt | 9 +++++++++ 1 files changed, 9 insertions(+), 0 deletions(-) diff --git a/src/main/kotlin/com/flightfeather/uav/domain/repository/SceneInfoRep.kt b/src/main/kotlin/com/flightfeather/uav/domain/repository/SceneInfoRep.kt index e38cd28..e0e9729 100644 --- a/src/main/kotlin/com/flightfeather/uav/domain/repository/SceneInfoRep.kt +++ b/src/main/kotlin/com/flightfeather/uav/domain/repository/SceneInfoRep.kt @@ -41,4 +41,13 @@ .andLessThanOrEqualTo("latitude", range[3]) }) } + + fun findBySceneTypes(sceneTypes: List<Int>): List<SceneInfo?> { + if (sceneTypes.isEmpty()){ + return emptyList() + } + return sceneInfoMapper.selectByExample(Example(SceneInfo::class.java).apply { + createCriteria().andIn("typeId", sceneTypes) + }) + } } \ No newline at end of file -- Gitblit v1.9.3