| | |
| | | import cn.flightfeather.supervision.lightshare.service.DataProdMiddleService |
| | | import cn.flightfeather.supervision.lightshare.vo.dataprod.QueryOpt |
| | | import io.swagger.annotations.Api |
| | | import io.swagger.annotations.ApiOperation |
| | | import io.swagger.annotations.ApiParam |
| | | import org.springframework.web.bind.annotation.PostMapping |
| | | import org.springframework.web.bind.annotation.RequestBody |
| | | import org.springframework.web.bind.annotation.RequestMapping |
| | |
| | | * @date 2025/9/15 |
| | | * @author feiyu02 |
| | | */ |
| | | @Api(tags = ["DataProdMiddleController"], description = "中间数据产品相关API接口") |
| | | @Api(tags = ["中间数据产品相关API接口"], description = "中间数据产品相关API接口") |
| | | @RestController |
| | | @RequestMapping("/dataProd/middle") |
| | | class DataProdMiddleController(private val dataProdMiddleService: DataProdMiddleService) { |
| | |
| | | /** |
| | | * 巡查完成情况汇总 |
| | | */ |
| | | @ApiOperation(value = "巡查完成情况汇总") |
| | | @PostMapping("/inspection/summary/get") |
| | | fun getInspectionSummary(@RequestBody queryOpt: QueryOpt) = |
| | | resPack { dataProdMiddleService.getInspectionSummary(queryOpt) } |
| | | fun getInspectionSummary(@ApiParam("查询条件") @RequestBody queryOpt: QueryOpt) = |
| | | dataProdMiddleService.getInspectionSummary(queryOpt) |
| | | |
| | | /** |
| | | * 问题分类汇总 |
| | | */ |
| | | @ApiOperation(value = "问题分类汇总") |
| | | @PostMapping("/problemType/summary/get") |
| | | fun getProblemTypeSummary(@RequestBody queryOpt: QueryOpt) = |
| | | resPack { dataProdMiddleService.getProblemTypeSummary(queryOpt) } |
| | | fun getProblemTypeSummary(@ApiParam("查询条件") @RequestBody queryOpt: QueryOpt) = |
| | | dataProdMiddleService.getProblemTypeSummary(queryOpt) |
| | | |
| | | /** |
| | | * 分区域单场景问题数量 |
| | | */ |
| | | @ApiOperation(value = "分区域单场景问题数量") |
| | | @PostMapping("/problemCount/area/get") |
| | | fun getProblemCountByArea(@RequestBody queryOpt: QueryOpt) = |
| | | resPack { dataProdMiddleService.getProblemCountByArea(queryOpt) } |
| | | fun getProblemCountByArea(@ApiParam("查询条件") @RequestBody queryOpt: QueryOpt) = |
| | | dataProdMiddleService.getProblemCountByArea(queryOpt) |
| | | |
| | | /** |
| | | * 典型问题场景清单 |
| | | */ |
| | | @ApiOperation(value = "典型问题场景清单") |
| | | @PostMapping("/problemCount/typical/get") |
| | | fun getTypicalProblems(@ApiParam("查询条件") @RequestBody queryOpt: QueryOpt) = |
| | | dataProdMiddleService.getTypicalProblems(queryOpt) |
| | | |
| | | /** |
| | | * 分区域规范性情况 |
| | | */ |
| | | @ApiOperation(value = "分区域规范性情况") |
| | | @PostMapping("/evaluation/area/get") |
| | | fun getEvaluationByArea(@RequestBody queryOpt: QueryOpt) = |
| | | resPack { dataProdMiddleService.getEvaluationByArea(queryOpt) } |
| | | fun getEvaluationByArea(@ApiParam("查询条件") @RequestBody queryOpt: QueryOpt) = |
| | | dataProdMiddleService.getEvaluationByArea(queryOpt) |
| | | } |