src/main/kotlin/cn/flightfeather/supervision/lightshare/web/InspectionController.kt
@@ -6,6 +6,7 @@
import cn.flightfeather.supervision.lightshare.service.InspectionService
import cn.flightfeather.supervision.lightshare.vo.AreaVo
import cn.flightfeather.supervision.lightshare.vo.BaseResponse
import cn.flightfeather.supervision.lightshare.vo.InspectionStatisticVo
import io.swagger.annotations.Api
import io.swagger.annotations.ApiOperation
import io.swagger.annotations.ApiParam
@@ -65,8 +66,8 @@
        @ApiParam("总任务id") @RequestParam(required = false) topTaskId: String?,
        @ApiParam("场景类型id") @RequestParam(required = false) sceneTypeId: String?,
        @ApiParam("区域条件") @RequestBody(required = false) areaVo: AreaVo?,
    ) = resPack {
        if (topTaskId != null && sceneTypeId != null) {
    ):List<InspectionStatisticVo> {
        return if (topTaskId != null && sceneTypeId != null) {
            inspectionService.getStatistic(topTaskId, sceneTypeId)
        } else if (areaVo != null) {
            inspectionService.getStatistic(areaVo)