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
1c58721b
Commit
1c58721b
authored
Nov 16, 2022
by
高建强
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
item:直流中心-消防系统运行状态总览修改
parent
00a3888e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
FireFightingSystemDto.java
...yeejoin/equipmanage/common/dto/FireFightingSystemDto.java
+1
-1
EquipmentSpecificMapper.xml
...uip/src/main/resources/mapper/EquipmentSpecificMapper.xml
+2
-2
No files found.
amos-boot-module/amos-boot-module-api/amos-boot-module-equip-api/src/main/java/com/yeejoin/equipmanage/common/dto/FireFightingSystemDto.java
View file @
1c58721b
...
@@ -10,6 +10,6 @@ public class FireFightingSystemDto {
...
@@ -10,6 +10,6 @@ public class FireFightingSystemDto {
private
String
name
;
private
String
name
;
private
Integer
equipTotal
=
0
;
private
Integer
equipTotal
=
0
;
private
Integer
alarmEquipTotal
=
0
;
private
Integer
alarmEquipTotal
=
0
;
private
String
status
;
private
Integer
status
=
0
;
private
String
image
;
private
String
image
;
}
}
amos-boot-system-equip/src/main/resources/mapper/EquipmentSpecificMapper.xml
View file @
1c58721b
...
@@ -2000,10 +2000,10 @@
...
@@ -2000,10 +2000,10 @@
IFNULL(s.alarmEquipTotal, 0) AS alarmEquipTotal,
IFNULL(s.alarmEquipTotal, 0) AS alarmEquipTotal,
<choose>
<choose>
<when
test=
"date != null"
>
<when
test=
"date != null"
>
IF
NULL(s.total, IF(s.total > 0,1,0)
) AS `status`
IF
(s.total > 0,1,0
) AS `status`
</when>
</when>
<otherwise>
<otherwise>
IF
NULL(s.alarmEquipTotal, IF(s.alarmEquipTotal > 0,1,0)
) AS `status`
IF
(s.alarmEquipTotal > 0,1,0
) AS `status`
</otherwise>
</otherwise>
</choose>
</choose>
FROM
FROM
...
...
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