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
c47d43d2
Commit
c47d43d2
authored
Sep 13, 2023
by
xixinzhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改bug
parent
9cd7e2d6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
FireFightingSystemMapper.xml
...ip/src/main/resources/mapper/FireFightingSystemMapper.xml
+2
-2
No files found.
amos-boot-system-equip/src/main/resources/mapper/FireFightingSystemMapper.xml
View file @
c47d43d2
...
@@ -5971,8 +5971,8 @@
...
@@ -5971,8 +5971,8 @@
<select
id=
"selectCarStats"
resultType=
"java.util.Map"
>
<select
id=
"selectCarStats"
resultType=
"java.util.Map"
>
SELECT
SELECT
COUNT(*) AS totalCount,
COUNT(*) AS totalCount,
SUM(CASE WHEN wc.equip_status = 1 then 1 else 0 end
) AS yellowCodeCount,
IFNULL(SUM(CASE WHEN wc.equip_status = 1 then 1 else 0 end ), 0
) AS yellowCodeCount,
SUM(CASE WHEN wc.equip_status = 2 then 1 else 0 end
) AS redCodeCount
IFNULL(SUM(CASE WHEN wc.equip_status = 2 then 1 else 0 end ), 0
) AS redCodeCount
FROM
FROM
wl_car wc
wl_car wc
LEFT JOIN wl_equipment wle ON wle.id = wc.equipment_id
LEFT JOIN wl_equipment wle ON wle.id = wc.equipment_id
...
...
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