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
e25c7f00
Commit
e25c7f00
authored
Nov 18, 2024
by
张森
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
全景监视左下角消防巡查API修改
今日巡查点位合格占比 = 合格(HG) / 今日已巡查点(HG + BHG) 计算公式修改
parent
2ee8fac5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
PlanTaskServiceImpl.java
...mos/patrol/business/service/impl/PlanTaskServiceImpl.java
+2
-2
dbTemplate_plan_task.xml
...rol/src/main/resources/db/mapper/dbTemplate_plan_task.xml
+2
-2
No files found.
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 @
e25c7f00
...
...
@@ -2144,8 +2144,8 @@ public class PlanTaskServiceImpl implements IPlanTaskService {
}
// 今日漏查率 = 今日漏查点位(JRLCDW) / 今日应巡查点(JRYXCD)
resultMap
.
put
(
"JRLCL"
,
getPercent
(
resultMap
.
get
(
"JRLCDW"
).
floatValue
(),
resultMap
.
get
(
"JRYXCD"
).
floatValue
()));
// 今日巡查点位合格占比 = 合格(HG) / 今日应巡查点(JRYXCD)
resultMap
.
put
(
"JRHGZB"
,
getPercent
(
resultMap
.
get
(
"HG"
).
floatValue
(),
resultMap
.
get
(
"
JRYXCD
"
).
floatValue
()));
// 今日巡查点位合格占比 = 合格(HG) / 今日应巡查点(JRYXCD)
今日巡查点位合格占比 = 合格(HG) / 今日已巡查点(HG + BHG)
resultMap
.
put
(
"JRHGZB"
,
getPercent
(
resultMap
.
get
(
"HG"
).
floatValue
(),
resultMap
.
get
(
"
HG"
).
floatValue
()
+
resultMap
.
get
(
"BHG
"
).
floatValue
()));
return
resultMap
;
}
@Override
...
...
amos-boot-system-patrol/src/main/resources/db/mapper/dbTemplate_plan_task.xml
View file @
e25c7f00
...
...
@@ -1476,7 +1476,7 @@
UNION ALL
SELECT
IFNULL(SUM(point_num), 0
) AS value,
count( pptd.id
) AS value,
'合格' AS name,
'HG' AS code
FROM
...
...
@@ -1492,7 +1492,7 @@
UNION ALL
SELECT
IFNULL(SUM(point_num), 0
) AS value,
count( pptd.id
) AS value,
'不合格' AS name,
'BHG' AS code
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