| | |
| | | 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 |
| | |
| | | @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) |