提交 8db0b79f authored 作者: 邓砥奕's avatar 邓砥奕

[统计分析]添加了接口的描述

上级 ce313a71
...@@ -18,6 +18,8 @@ import com.tykj.dev.device.user.subject.entity.Units; ...@@ -18,6 +18,8 @@ import com.tykj.dev.device.user.subject.entity.Units;
import com.tykj.dev.statistical.service.StatisticalService; import com.tykj.dev.statistical.service.StatisticalService;
import com.tykj.dev.statistical.vo.*; import com.tykj.dev.statistical.vo.*;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.RequestEntity; import org.springframework.http.RequestEntity;
import org.springframework.http.ResponseEntity; import org.springframework.http.ResponseEntity;
...@@ -44,6 +46,7 @@ public class StatisticalController { ...@@ -44,6 +46,7 @@ public class StatisticalController {
* 查询各市的装备数量 * 查询各市的装备数量
* @return 各市装备对象集合 * @return 各市装备对象集合
*/ */
@ApiOperation(value = "查询各市的装备数量")
@GetMapping("/devNum") @GetMapping("/devNum")
public ResponseEntity selectDevNum(){ public ResponseEntity selectDevNum(){
return ResponseEntity.ok(statisticalService.getDeviceNum()); return ResponseEntity.ok(statisticalService.getDeviceNum());
...@@ -53,6 +56,7 @@ public class StatisticalController { ...@@ -53,6 +56,7 @@ public class StatisticalController {
* 查询全省或各市装备生命状态数量 * 查询全省或各市装备生命状态数量
* @return 全省或各市装备生命状态对象集合 * @return 全省或各市装备生命状态对象集合
*/ */
@ApiOperation(value = "查询全省或各市装备生命状态数量(type:1全省,2全市)")
@GetMapping("/StateofLife/{type}") @GetMapping("/StateofLife/{type}")
public ResponseEntity selectStateofLife(@PathVariable Integer type){ public ResponseEntity selectStateofLife(@PathVariable Integer type){
return ResponseEntity.ok(statisticalService.getLifeStatus(type)); return ResponseEntity.ok(statisticalService.getLifeStatus(type));
...@@ -62,6 +66,7 @@ public class StatisticalController { ...@@ -62,6 +66,7 @@ public class StatisticalController {
* 查询当前季度各市自查情况 * 查询当前季度各市自查情况
* @return 各市自查状态对象集合 * @return 各市自查状态对象集合
*/ */
@ApiOperation(value = "查询当前季度各市自查情况")
@GetMapping("/selfInspection") @GetMapping("/selfInspection")
public ResponseEntity selectSelfInspection(){ public ResponseEntity selectSelfInspection(){
return ResponseEntity.ok(statisticalService.getSelfCheck()); return ResponseEntity.ok(statisticalService.getSelfCheck());
...@@ -71,6 +76,7 @@ public class StatisticalController { ...@@ -71,6 +76,7 @@ public class StatisticalController {
* 查询年度各季度各市自查情况 * 查询年度各季度各市自查情况
* @return 各市自查状态对象集合 * @return 各市自查状态对象集合
*/ */
@ApiOperation(value = "查询年度各季度各市自查情况")
@GetMapping("/selfInspection/year") @GetMapping("/selfInspection/year")
public ResponseEntity selectYearSelfInspection(){ public ResponseEntity selectYearSelfInspection(){
return ResponseEntity.ok(statisticalService.getYearSelfCheck()); return ResponseEntity.ok(statisticalService.getYearSelfCheck());
...@@ -80,6 +86,7 @@ public class StatisticalController { ...@@ -80,6 +86,7 @@ public class StatisticalController {
* 查询各市核查情况数量 * 查询各市核查情况数量
* @return 各市核查状态对象集合 * @return 各市核查状态对象集合
*/ */
@ApiOperation(value = "查询各市核查情况数量")
@GetMapping("/confirmInspection/{type}") @GetMapping("/confirmInspection/{type}")
public ResponseEntity selectVerification(@PathVariable Integer type){ public ResponseEntity selectVerification(@PathVariable Integer type){
List<Verification> nums=new ArrayList<>(); List<Verification> nums=new ArrayList<>();
...@@ -90,6 +97,7 @@ public class StatisticalController { ...@@ -90,6 +97,7 @@ public class StatisticalController {
* 查询专管员概述 * 查询专管员概述
* @return 各市装备生命状态对象集合 * @return 各市装备生命状态对象集合
*/ */
@ApiOperation(value = "查询专管员概述")
@GetMapping("/generalSituation") @GetMapping("/generalSituation")
public ResponseEntity selectGeneralSituation(){ public ResponseEntity selectGeneralSituation(){
...@@ -100,6 +108,7 @@ public class StatisticalController { ...@@ -100,6 +108,7 @@ public class StatisticalController {
* 查询告警情况 * 查询告警情况
* @return 全省告警统计对象集合 * @return 全省告警统计对象集合
*/ */
@ApiOperation(value = "查询告警情况")
@GetMapping("/alarmSituation") @GetMapping("/alarmSituation")
public ResponseEntity selectAlarmSituation(){ public ResponseEntity selectAlarmSituation(){
return ResponseEntity.ok(statisticalService.getRfidWarning()); return ResponseEntity.ok(statisticalService.getRfidWarning());
...@@ -109,6 +118,7 @@ public class StatisticalController { ...@@ -109,6 +118,7 @@ public class StatisticalController {
* 查询各市告警情况 * 查询各市告警情况
* @return 各市告警情况对象集合 * @return 各市告警情况对象集合
*/ */
@ApiOperation(value = "查询各市告警情况")
@GetMapping("/alarmSituation/detail") @GetMapping("/alarmSituation/detail")
public ResponseEntity selectAlarmSituationDetail(){ public ResponseEntity selectAlarmSituationDetail(){
List<AlarmSituation> alarmSituations = new ArrayList<>(); List<AlarmSituation> alarmSituations = new ArrayList<>();
...@@ -119,6 +129,7 @@ public class StatisticalController { ...@@ -119,6 +129,7 @@ public class StatisticalController {
* 查询业务情况 * 查询业务情况
* @return 各市装备生命状态对象集合 * @return 各市装备生命状态对象集合
*/ */
@ApiOperation(value = "查询业务情况")
@GetMapping("/businessSituation/{type}") @GetMapping("/businessSituation/{type}")
public ResponseEntity selectBusinessSituation(@PathVariable Integer type) throws ParseException { public ResponseEntity selectBusinessSituation(@PathVariable Integer type) throws ParseException {
return ResponseEntity.ok(statisticalService.getBusinessNum(type)); return ResponseEntity.ok(statisticalService.getBusinessNum(type));
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论