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
46712f86
Commit
46712f86
authored
Sep 07, 2023
by
litengwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
省测卡片问题
parent
4c1725a3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
7 deletions
+7
-7
IFireResourceSupervisionServiceImpl.java
...age/service/impl/IFireResourceSupervisionServiceImpl.java
+3
-3
PlanTaskServiceImpl.java
...mos/patrol/business/service/impl/PlanTaskServiceImpl.java
+2
-2
FireFightingSystemMapper.xml
...ip/src/main/resources/mapper/FireFightingSystemMapper.xml
+2
-2
No files found.
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/service/impl/IFireResourceSupervisionServiceImpl.java
View file @
46712f86
...
...
@@ -52,9 +52,9 @@ public class IFireResourceSupervisionServiceImpl implements IFireResourceSupervi
private
FireResourceStatsDTO
buildFireResourceStatsDTO
(
Map
<
String
,
Object
>
resultMap
)
{
FireResourceStatsDTO
fireResourceStats
=
new
FireResourceStatsDTO
();
fireResourceStats
.
setTotalCounts
(
(
long
)
resultMap
.
get
(
"totalCount"
));
fireResourceStats
.
setYellowCounts
(
(
long
)
resultMap
.
get
(
"yellowCodeCount"
)
);
fireResourceStats
.
setRedCounts
(
(
long
)
resultMap
.
get
(
"redCodeCount"
));
fireResourceStats
.
setTotalCounts
(
Long
.
valueOf
(
resultMap
.
get
(
"totalCount"
).
toString
()
));
fireResourceStats
.
setYellowCounts
(
Long
.
valueOf
(
resultMap
.
get
(
"yellowCodeCount"
).
toString
())
);
fireResourceStats
.
setRedCounts
(
Long
.
valueOf
(
resultMap
.
get
(
"redCodeCount"
).
toString
()
));
long
expCount
=
fireResourceStats
.
getYellowCounts
()
+
fireResourceStats
.
getRedCounts
();
double
abnormalRatio
=
0
;
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-patrol-biz/src/main/java/com/yeejoin/amos/patrol/business/service/impl/PlanTaskServiceImpl.java
View file @
46712f86
...
...
@@ -2065,7 +2065,7 @@ public class PlanTaskServiceImpl implements IPlanTaskService {
for
(
Map
<
String
,
Object
>
map
:
statics
)
{
if
(
map
.
get
(
"code"
).
equals
(
"xfxchgzb"
))
{
map
.
put
(
"value"
,
String
.
valueOf
((
hgdw
/
xcdw
)
*
100
));
map
.
put
(
"value"
,
String
.
valueOf
((
((
double
)
hgdw
/
(
double
)
xcdw
))
*
100
));
}
}
}
...
...
@@ -2080,7 +2080,7 @@ public class PlanTaskServiceImpl implements IPlanTaskService {
for
(
Map
<
String
,
Object
>
map
:
statics
)
{
if
(
map
.
get
(
"code"
).
equals
(
"xfxclcl"
))
{
map
.
put
(
"value"
,
String
.
valueOf
((
lcdw
/
zxcdw
)*
100
)
);
map
.
put
(
"value"
,
String
.
valueOf
((
((
double
)
lcdw
/
(
double
)
zxcdw
)
)*
100
)
);
}
}
}
...
...
amos-boot-system-equip/src/main/resources/mapper/FireFightingSystemMapper.xml
View file @
46712f86
...
...
@@ -5967,8 +5967,8 @@
<select
id=
"selectCarStats"
resultType=
"java.util.Map"
>
SELECT
COUNT(*) AS totalCount,
SUM(CASE WHEN wc.status = 1 then 1 else 0 end ) AS yellowCodeCount,
SUM(CASE WHEN wc.status = 2 then 1 else 0 end ) AS redCodeCount
SUM(CASE WHEN wc.
equip_
status = 1 then 1 else 0 end ) AS yellowCodeCount,
SUM(CASE WHEN wc.
equip_
status = 2 then 1 else 0 end ) AS redCodeCount
FROM
wl_car wc
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