Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-biz
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
项目统一框架
amos-boot-biz
Commits
8859119c
Commit
8859119c
authored
Aug 16, 2024
by
韩桐桐
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(统计):bug
parent
7d42463b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
8 deletions
+28
-8
YJDPStatisticsController.java
...le/statistcs/biz/controller/YJDPStatisticsController.java
+28
-8
No files found.
amos-boot-system-tzs/amos-boot-module-statistics/amos-boot-module-statistics-biz/src/main/java/com/yeejoin/amos/boot/module/statistcs/biz/controller/YJDPStatisticsController.java
View file @
8859119c
package
com
.
yeejoin
.
amos
.
boot
.
module
.
statistcs
.
biz
.
controller
;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSONArray
;
import
com.alibaba.fastjson.JSONObject
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.yeejoin.amos.boot.module.common.api.dto.DPFilterParamDto
;
...
...
@@ -175,23 +176,41 @@ public class YJDPStatisticsController {
@ApiOperation
(
value
=
"应急大屏使用-警情类型"
,
notes
=
"应急大屏使用-警情类型"
)
@PostMapping
(
"/alertOperations/dp"
)
public
ResponseModel
<
Object
>
alertOperations
()
{
return
ResponseHelper
.
buildResponse
(
statisticsService
.
alertOperations
());
JSONArray
objects
=
new
JSONArray
();
objects
.
add
(
statisticsService
.
alertOperations
());
return
ResponseHelper
.
buildResponse
(
objects
);
}
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@ApiOperation
(
value
=
"应急大屏使用-报警类型"
,
notes
=
"应急大屏使用-报警类型"
)
@PostMapping
(
"/alertTypeOperations/dp"
)
public
ResponseModel
<
Object
>
alertTypeOperations
()
{
HashMap
<
String
,
String
>
map
=
new
HashMap
<>();
map
.
put
(
AlertStageEnums
.
JQCB
.
getId
(),
AlertStageEnums
.
JQCB
.
getValue
());
map
.
put
(
AlertStageEnums
.
JQGB
.
getId
(),
AlertStageEnums
.
JQGB
.
getValue
());
return
ResponseHelper
.
buildResponse
(
map
);
JSONArray
res
=
new
JSONArray
();
JSONObject
jsonObject1
=
new
JSONObject
().
fluentPut
(
"label"
,
AlertStageEnums
.
JQCB
.
getValue
()).
fluentPut
(
"value"
,
AlertStageEnums
.
JQCB
.
getId
());
JSONObject
jsonObject2
=
new
JSONObject
().
fluentPut
(
"label"
,
AlertStageEnums
.
JQGB
.
getValue
()).
fluentPut
(
"value"
,
AlertStageEnums
.
JQGB
.
getId
());
res
.
add
(
jsonObject1
);
res
.
add
(
jsonObject2
);
return
ResponseHelper
.
buildResponse
(
res
);
}
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@ApiOperation
(
value
=
"应急大屏使用-报警类型"
,
notes
=
"应急大屏使用-报警类型"
)
@PostMapping
(
"/alertSourceOperations/dp"
)
public
ResponseModel
<
Object
>
alertSourceOperations
()
{
JSONArray
res
=
new
JSONArray
();
JSONObject
jsonObject1
=
new
JSONObject
().
fluentPut
(
"label"
,
AlertStageEnums
.
KRJY
.
getValue
()).
fluentPut
(
"value"
,
AlertStageEnums
.
KRJY
.
getId
());
JSONObject
jsonObject2
=
new
JSONObject
().
fluentPut
(
"label"
,
AlertStageEnums
.
GZWX
.
getValue
()).
fluentPut
(
"value"
,
AlertStageEnums
.
GZWX
.
getId
());
JSONObject
jsonObject3
=
new
JSONObject
().
fluentPut
(
"label"
,
AlertStageEnums
.
TSZX
.
getValue
()).
fluentPut
(
"value"
,
AlertStageEnums
.
TSZX
.
getId
());
res
.
add
(
jsonObject1
);
res
.
add
(
jsonObject2
);
res
.
add
(
jsonObject3
);
return
ResponseHelper
.
buildResponse
(
res
);
}
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@ApiOperation
(
value
=
"应急大屏使用-办理量 (近7天)-右上角更多-各地市业务办理情况-底部表格"
,
notes
=
"应急大屏使用-办理量 (近7天)-右上角更多-各地市业务办理情况-底部表格"
)
@PostMapping
(
"/alertRecordTable/dp"
)
public
ResponseModel
<
IPage
<
Map
<
String
,
Object
>>>
alertRecordTableForDP
(
DPFilterParamForDetailDto
recordFilterVo
)
{
public
ResponseModel
<
IPage
<
Map
<
String
,
Object
>>>
alertRecordTableForDP
(
@Validated
@RequestBody
DPFilterParamForDetailDto
recordFilterVo
)
{
return
statisticsService
.
alertRecordTableForDP
(
recordFilterVo
);
}
...
...
@@ -203,12 +222,13 @@ public class YJDPStatisticsController {
List
<
JSONObject
>
subList
=
Collections
.
singletonList
(
new
JSONObject
()
.
fluentPut
(
"value"
,
"use"
)
.
fluentPut
(
"title"
,
"使用单位"
));
JSONArray
res
=
new
JSONArray
();
JSONObject
jsonObject
=
new
JSONObject
()
.
fluentPut
(
"title"
,
"企业类型"
)
.
fluentPut
(
"value"
,
"all"
)
.
fluentPut
(
"children"
,
subList
);
re
turn
ResponseHelper
.
buildResponse
(
jsonObject
);
re
s
.
add
(
jsonObject
);
return
ResponseHelper
.
buildResponse
(
res
);
}
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment