Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
D
device-back
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
1
议题
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
Matrix
device-back
Commits
8db0b79f
提交
8db0b79f
authored
10月 26, 2020
作者:
邓砥奕
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[统计分析]添加了接口的描述
上级
ce313a71
显示空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
11 行增加
和
0 行删除
+11
-0
StatisticalController.java
...ykj/dev/statistical/controller/StatisticalController.java
+11
-0
没有找到文件。
dev-statistical/src/main/java/com/tykj/dev/statistical/controller/StatisticalController.java
浏览文件 @
8db0b79f
...
@@ -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
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论