首页 > 其他分享 >ReportQueryController

ReportQueryController

时间:2022-11-12 03:22:48浏览次数:36  
标签:iReportQuery RequestBody Result ReportQueryController import public condition

 1 package com.-.it.regioc.controller;
 2 
 3 import org.springframework.http.MediaType;
 4 import org.springframework.web.bind.annotation.PostMapping;
 5 import org.springframework.web.bind.annotation.RequestBody;
 6 import org.springframework.web.bind.annotation.RequestMapping;
 7 import org.springframework.web.bind.annotation.RestController;
 8 
 9 import javax.annotation.Resource;
10 import java.io.IOException;
11 import java.util.List;
12 
13 @RestController
14 @RequestMapping(path = "/report", produces = MediaType.APPLICATION_JSON_VALUE)
15 @JalorResource(code = "ReportQueryController", desc = "作战沙盘首页查询")
16 public class ReportQueryController {
17     @Resource
18     private IReportQuery iReportQuery;
19 
20     @PostMapping("/queryKpi")
21     // @JalorOperation(code = "queryKpi", desc = "queryKpi查询接口设计")
22     public Result<ResultCollection> queryKpi(@RequestBody Condition condition) throws ApplicationException {
23         ResultCollection collection = iReportQuery.queryKpi(condition);
24         return Result.success(collection);
25     }
26 
27     @PostMapping("/queryMap")
28     // @JalorOperation(code = "queryKpi", desc = "查询地图信息")
29     public Result<ResultCollection> queryMap(@RequestBody Condition condition) throws IOException {
30         ResultCollection collection = iReportQuery.queryMap(condition);
31         return Result.success(collection);
32     }
33 
34     @PostMapping("/queryProbe")
35     // @JalorOperation(code = "queryProbe", desc = "queryProbe查询接口设计")
36     public Result<ResultCollection> queryProbe(@RequestBody Condition condition) {
37         ResultCollection resultCollection = iReportQuery.queryProbe(condition);
38         return Result.success(resultCollection);
39     }
40 
41     @PostMapping("/updatePerformanceDeploy")
42     // @JalorOperation(code = "queryProbe", desc = "支持关键绩效指标卡片手工可编排逻辑处理中台接口设计")
43     public ResultVO updatePerformanceDeploy(@RequestBody List<KpiDeploy> kpiDeploys) throws ApplicationException {
44         iReportQuery.updatePerformanceDeploy(kpiDeploys);
45         return ResultVO.successful();
46     }
47 
48     @PostMapping("/updateStateDeploy")
49     // @JalorOperation(code = "queryProbe", desc = "探针用户级偏好配置中台接口设计")
50     public ResultVO updateStateDeploy(@RequestBody List<StateDeploy> stateDeploys) throws ApplicationException {
51         iReportQuery.updateStateDeploy(stateDeploys);
52         return ResultVO.successful();
53     }
54 
55     @PostMapping("/queryRelatedKpi")
56     public ResultVO<PreferKpiInfo> queryRelatedKpi(@RequestBody Condition condition) throws ApplicationException {
57         return ResultVO.successful().data(iReportQuery.queryRelatedKpi(condition));
58     }
59 
60     @PostMapping("/queryRelatedProbe")
61     public Result<PreferProbeInfo> queryRelatedProbe(@RequestBody Condition condition) throws ApplicationException {
62         return Result.success(iReportQuery.queryRelatedProbe(condition));
63     }
64 
65 }

 

标签:iReportQuery,RequestBody,Result,ReportQueryController,import,public,condition
From: https://www.cnblogs.com/mingruifeng/p/16882610.html

相关文章