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
3b42e7bd
Commit
3b42e7bd
authored
Oct 29, 2021
by
李腾威
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
app 告警统计跳转数据接口
parent
bf87e185
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
65 additions
and
0 deletions
+65
-0
FireAndDutyAndIOTDto.java
...in/amos/boot/module/jcs/api/dto/FireAndDutyAndIOTDto.java
+32
-0
AlertCalledController.java
...boot/module/jcs/biz/controller/AlertCalledController.java
+33
-0
No files found.
amos-boot-module/amos-boot-module-api/amos-boot-module-jcs-api/src/main/java/com/yeejoin/amos/boot/module/jcs/api/dto/FireAndDutyAndIOTDto.java
0 → 100644
View file @
3b42e7bd
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jcs
.
api
.
dto
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
/**
* @author litw
* @date 2021-10-29.
*/
@Data
public
class
FireAndDutyAndIOTDto
{
/**
* 未处置的消防报警
* */
@ApiModelProperty
(
value
=
"未处置的消防报警"
)
Integer
fireNum
;
/**
* 未处置的故障告警
* */
@ApiModelProperty
(
value
=
"未处置的故障告警"
)
Integer
faultAlarmNum
;
/**
* 未处置的物联报警数量
* */
@ApiModelProperty
(
value
=
"未处置的物联报警数量"
)
Integer
iotNum
;
}
amos-boot-module/amos-boot-module-biz/amos-boot-module-jcs-biz/src/main/java/com/yeejoin/amos/boot/module/jcs/biz/controller/AlertCalledController.java
View file @
3b42e7bd
...
...
@@ -18,6 +18,7 @@ import com.yeejoin.amos.boot.module.jcs.api.dto.AlarmGiveStatisticsDto;
import
com.yeejoin.amos.boot.module.jcs.api.dto.AlertCalledObjsDto
;
import
com.yeejoin.amos.boot.module.jcs.api.dto.ESAlertCalledDto
;
import
com.yeejoin.amos.boot.module.jcs.api.dto.ESAlertCalledRequestDto
;
import
com.yeejoin.amos.boot.module.jcs.api.dto.FireAndDutyAndIOTDto
;
import
com.yeejoin.amos.boot.module.jcs.api.entity.AlertCalled
;
import
com.yeejoin.amos.boot.module.jcs.api.entity.AlertFormValue
;
import
com.yeejoin.amos.boot.module.jcs.api.enums.AlertStatusEnum
;
...
...
@@ -469,6 +470,38 @@ public class AlertCalledController extends BaseController {
}
/**
* 消防报警,在岗检测,物联告警
*
* @param
* @return
*/
@TycloudOperation
(
needAuth
=
false
,
ApiLevel
=
UserType
.
AGENCY
)
@RequestMapping
(
value
=
"/getFireAndDutyAndIOT"
,
method
=
RequestMethod
.
GET
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"消防报警,在岗检测,物联告警"
,
notes
=
"消防报警,在岗检测,物联告警"
)
public
ResponseModel
<
FireAndDutyAndIOTDto
>
getFireAndDutyAndIOT
()
{
FireAndDutyAndIOTDto
dto
=
new
FireAndDutyAndIOTDto
();
ResponseModel
<
Map
<
String
,
Object
>>
fireAlarm
=
equipFeignClient
.
getFireAlarm
();
Map
<
String
,
Object
>
map
=
fireAlarm
.
getResult
();
int
fireAlarmNum
=
!
ValidationUtil
.
isEmpty
(
map
.
get
(
"FireAlarmNum"
))
?
Integer
.
valueOf
(
map
.
get
(
"FireAlarmNum"
).
toString
())
:
0
;
ResponseModel
<
Map
<
String
,
Object
>>
faultAlarm
=
equipFeignClient
.
getFaultAlarm
();
map
=
faultAlarm
.
getResult
();
int
faultAlarmNum
=
!
ValidationUtil
.
isEmpty
(
map
.
get
(
"FaultAlarmNum"
))
?
Integer
.
valueOf
(
map
.
get
(
"FaultAlarmNum"
).
toString
())
:
0
;
ResponseModel
<
Map
<
String
,
Object
>>
monitorEvent
=
equipFeignClient
.
getMonitorEvent
();
map
=
monitorEvent
.
getResult
();
int
monitorEventNum
=
!
ValidationUtil
.
isEmpty
(
map
.
get
(
"monitorEventNum"
))
?
Integer
.
valueOf
(
map
.
get
(
"monitorEventNum"
).
toString
())
:
0
;
dto
.
setFireNum
(
fireAlarmNum
);
dto
.
setFaultAlarmNum
(
faultAlarmNum
);
dto
.
setIotNum
(
monitorEventNum
);
return
ResponseHelper
.
buildResponse
(
dto
);
}
/**
* 获取坐席情况
*/
@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