feiyu02
2025-10-30 9cb8d7e0f4ffca386b14a15f8a0aca4d1db23252
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
package cn.flightfeather.supervision.lightshare.web
 
import cn.flightfeather.supervision.lightshare.service.DataProdSingleSceneService
import cn.flightfeather.supervision.lightshare.vo.dataprod.QueryOptSingle
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
import org.springframework.web.bind.annotation.RestController
 
/**
 * 单场景纵向数据统计产品控制器
 * @date 2025/10/30
 * @author feiyu02
 */
@Api(tags = ["单场景纵向数据统计产品相关API接口"], description = "单场景纵向数据统计产品相关API接口")
@RestController
@RequestMapping("/dataProd/singleScene")
class DataProdSingleSceneController(private val dataProdSingleSceneService: DataProdSingleSceneService) {
 
    @ApiOperation(value = "整改情况")
    @PostMapping("/changeInfo/get")
    fun getChangeInfo(@ApiParam("查询条件") @RequestBody queryOpt: QueryOptSingle) =
        dataProdSingleSceneService.getChangeInfo(queryOpt)
 
    @ApiOperation(value = "批量查询整改情况")
    @PostMapping("/changeInfo/get/list")
    fun getChangeInfoList(@ApiParam("查询条件") @RequestBody queryOpts: List<QueryOptSingle>) =
        dataProdSingleSceneService.getChangeInfoList(queryOpts)
 
    @ApiOperation(value = "问题重复情况")
    @PostMapping("/problemRecurrence/get")
    fun getProblemRecurrence(@ApiParam("查询条件") @RequestBody queryOpt: QueryOptSingle) =
        dataProdSingleSceneService.getProblemRecurrence(queryOpt)
}