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
ae4021e2
Commit
ae4021e2
authored
Jan 08, 2022
by
KeYong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
警情页面相关字段调整
parent
4904334b
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
21 additions
and
4 deletions
+21
-4
EquipmentAlarmBySystemIdOrSourceIdVO.java
...ommon/entity/vo/EquipmentAlarmBySystemIdOrSourceIdVO.java
+2
-0
FireFightingSystemController.java
.../equipmanage/controller/FireFightingSystemController.java
+1
-1
EquipmentSpecificAlarmMapper.xml
...rc/main/resources/mapper/EquipmentSpecificAlarmMapper.xml
+6
-0
FireFightingSystemMapper.xml
...ip/src/main/resources/mapper/FireFightingSystemMapper.xml
+12
-3
No files found.
amos-boot-module/amos-boot-module-api/amos-boot-module-equip-api/src/main/java/com/yeejoin/equipmanage/common/entity/vo/EquipmentAlarmBySystemIdOrSourceIdVO.java
View file @
ae4021e2
...
...
@@ -28,4 +28,6 @@ public class EquipmentAlarmBySystemIdOrSourceIdVO {
* 告警类型
*/
private
String
type
;
private
Integer
cleanStatus
;
}
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/controller/FireFightingSystemController.java
View file @
ae4021e2
...
...
@@ -483,7 +483,7 @@ public class FireFightingSystemController extends AbstractBaseController {
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@ApiOperation
(
value
=
"按照组态格式获取系统报警,或者建筑报警列表"
,
notes
=
"按照组态格式获取系统报警,或者建筑报警列表"
)
@GetMapping
(
value
=
"/getEquipmentAlarmBySystemIdOrSourceIdVO/{Systemtype}/{id}"
)
public
IPage
<
EquipmentAlarmBySystemIdOrSourceIdVO
>
getEquipmentAlarmBySystemIdOrSourceIdVO
(
int
pageSize
,
int
current
,
Integer
confirmType
,
String
createDate
,
String
type
,
@PathVariable
String
Systemtype
,
@PathVariable
Long
id
)
{
public
IPage
<
EquipmentAlarmBySystemIdOrSourceIdVO
>
getEquipmentAlarmBySystemIdOrSourceIdVO
(
Integer
pageSize
,
Integer
current
,
Integer
confirmType
,
String
createDate
,
String
type
,
@PathVariable
String
Systemtype
,
@PathVariable
Long
id
)
{
Page
<
EquipmentAlarmBySystemIdOrSourceIdVO
>
page
=
new
Page
();
page
.
setCurrent
(
current
);
page
.
setSize
(
pageSize
);
...
...
amos-boot-system-equip/src/main/resources/mapper/EquipmentSpecificAlarmMapper.xml
View file @
ae4021e2
...
...
@@ -361,6 +361,12 @@
<when
test=
"param.confirmType != null and param.confirmType != '' and param.confirmType == 0"
>
AND d.handleType IS NULL
</when>
<when
test=
"param.confirmType != null and param.confirmType != '' and param.confirmType == 2"
>
AND d.cleanStatus = '未消除'
</when>
<when
test=
"param.confirmType != null and param.confirmType != '' and param.confirmType == 3"
>
AND d.cleanStatus = '已消除'
</when>
</choose>
<if
test=
"param.beginDate!=null"
>
AND d.createDate
<![CDATA[>=]]>
#{param.beginDate}
</if>
<if
test=
"param.endDate!=null"
>
AND d.createDate
<![CDATA[<=]]>
#{param.endDate}
</if>
...
...
amos-boot-system-equip/src/main/resources/mapper/FireFightingSystemMapper.xml
View file @
ae4021e2
...
...
@@ -480,8 +480,10 @@
d.fireEquipmentName,
d.warehouseStructureName,
d.fireEquipmentSpecificIndexName,
d.createDate,d.confirmType,
d.type
d.createDate,
d.confirmType,
d.type,
d.cleanStatus
FROM
(
SELECT
...
...
@@ -492,7 +494,8 @@
wlesal.equipment_index_id AS fireEquipmentIndexId,
wlesal.equipment_specific_index_key AS fireEquipmentSpecificIndexKey,
wlesal.equipment_specific_index_name AS fireEquipmentSpecificIndexName,
if(wlesal.confirm_type IS NULL,0,1) AS confirmType,
if(wlesal.confirm_type IS NULL, 0, 1) AS confirmType,
if(wlesal.clean_time IS NULL, 0, 1) AS cleanStatus,
CASE
wlesal.equipment_specific_index_value
WHEN 'true' THEN
...
...
@@ -540,6 +543,12 @@
<if
test=
'confirmType != null and confirmType == 1'
>
and wlesal.confirm_type IS NOT NULL
</if>
<if
test=
'confirmType != null and confirmType == 2'
>
and wlesal.clean_time IS NULL
</if>
<if
test=
'confirmType != null and confirmType == 3'
>
and wlesal.clean_time IS NOT NULL
</if>
</where>
) d
<where>
...
...
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