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
b4f436ef
Commit
b4f436ef
authored
Aug 11, 2023
by
李秀明
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新SQL
parent
809f33b9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
FireFightingSystemMapper.xml
...ip/src/main/resources/mapper/FireFightingSystemMapper.xml
+2
-4
No files found.
amos-boot-system-equip/src/main/resources/mapper/FireFightingSystemMapper.xml
View file @
b4f436ef
...
...
@@ -5939,10 +5939,8 @@
<select
id=
"selectFireFightingSystemStats"
resultType=
"java.util.Map"
>
SELECT
COUNT(*) AS totalCount,
-- COUNT(CASE WHEN ffs.equip_status = '1' THEN 1 END) AS yellowCodeCount,
-- COUNT(CASE WHEN ffs.equip_status = '2' THEN 1 END) AS redCodeCount,
0 AS yellowCodeCount,
0 AS redCodeCount
COUNT(CASE WHEN ffs.system_status = '1' THEN 1 END) AS yellowCodeCount,
COUNT(CASE WHEN ffs.system_status = '2' THEN 1 END) AS redCodeCount
FROM f_fire_fighting_system ffs
WHERE ffs.biz_org_code LIKE CONCAT(#{bizOrgCode}, '%')
</select>
...
...
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