feiyu02
2025-09-30 a3cc1d220f8a1de11874bebceba0130d32157ff1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
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) }
}