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