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
33bc90d0
Commit
33bc90d0
authored
Sep 07, 2023
by
litengwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
省测卡片问题
parent
22f17c7e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
32 additions
and
6 deletions
+32
-6
PlanTaskServiceImpl.java
...mos/patrol/business/service/impl/PlanTaskServiceImpl.java
+17
-4
FireFightingSystemMapper.xml
...ip/src/main/resources/mapper/FireFightingSystemMapper.xml
+2
-2
dbTemplate_plan_task.xml
...rol/src/main/resources/db/mapper/dbTemplate_plan_task.xml
+13
-0
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 @
33bc90d0
...
...
@@ -2038,6 +2038,7 @@ public class PlanTaskServiceImpl implements IPlanTaskService {
int
xcdw
=
0
;
int
hgdw
=
0
;
int
lcdw
=
0
;
int
zxcdw
=
0
;
for
(
Map
<
String
,
Object
>
map
:
statics
)
{
if
(
map
.
get
(
"code"
).
equals
(
"xfxcjrljxcdw"
))
{
...
...
@@ -2049,6 +2050,9 @@ public class PlanTaskServiceImpl implements IPlanTaskService {
if
(
map
.
get
(
"code"
).
equals
(
"xfxcjrlcdw"
))
{
lcdw
=
Integer
.
parseInt
(
map
.
get
(
"value"
).
toString
());
}
if
(
map
.
get
(
"code"
).
equals
(
"xfxcjrzxcdw"
))
{
zxcdw
=
Integer
.
parseInt
(
map
.
get
(
"value"
).
toString
());
}
}
if
(
xcdw
==
0
)
{
for
(
Map
<
String
,
Object
>
map
:
statics
...
...
@@ -2056,9 +2060,6 @@ public class PlanTaskServiceImpl implements IPlanTaskService {
if
(
map
.
get
(
"code"
).
equals
(
"xfxchgzb"
))
{
map
.
put
(
"value"
,
"0"
);
}
if
(
map
.
get
(
"code"
).
equals
(
"xfxclcl"
))
{
map
.
put
(
"value"
,
"0"
);
}
}
}
else
{
for
(
Map
<
String
,
Object
>
map
:
statics
...
...
@@ -2066,8 +2067,20 @@ public class PlanTaskServiceImpl implements IPlanTaskService {
if
(
map
.
get
(
"code"
).
equals
(
"xfxchgzb"
))
{
map
.
put
(
"value"
,
String
.
valueOf
((
hgdw
/
xcdw
)*
100
));
}
}
}
if
(
zxcdw
==
0
)
{
for
(
Map
<
String
,
Object
>
map
:
statics
)
{
if
(
map
.
get
(
"code"
).
equals
(
"xfxclcl"
))
{
map
.
put
(
"value"
,
"0"
);
}
}
}
else
{
for
(
Map
<
String
,
Object
>
map
:
statics
)
{
if
(
map
.
get
(
"code"
).
equals
(
"xfxclcl"
))
{
map
.
put
(
"value"
,
String
.
valueOf
((
lcdw
/
xcdw
)*
100
)
);
map
.
put
(
"value"
,
String
.
valueOf
((
lcdw
/
z
xcdw
)*
100
)
);
}
}
}
...
...
amos-boot-system-equip/src/main/resources/mapper/FireFightingSystemMapper.xml
View file @
33bc90d0
...
...
@@ -5967,8 +5967,8 @@
<select
id=
"selectCarStats"
resultType=
"java.util.Map"
>
SELECT
COUNT(*) AS totalCount,
0
AS yellowCodeCount,
0
AS redCodeCount
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
FROM
wl_car wc
LEFT JOIN wl_equipment wle ON wle.id = wc.equipment_id
...
...
amos-boot-system-patrol/src/main/resources/db/mapper/dbTemplate_plan_task.xml
View file @
33bc90d0
...
...
@@ -1359,6 +1359,19 @@
<select
id=
"getStatics"
resultType=
"java.util.Map"
>
SELECT
'0' AS `key`,
ifnull( sum( `p_plan_task`.`point_num` ), 0 ) AS `value`,
'' AS unit,
'今日总巡查点位' AS `name`,
'xfxcjrzxcdw' AS code
FROM
`p_plan_task`
WHERE
DATE_FORMAT( check_date, '%Y-%m-%d' ) = CURRENT_DATE ()
<if
test=
"bizOrgCode != null and bizOrgCode != ''"
>
AND org_code LIKE CONCAT(#{bizOrgCode}, '%')
</if>
SELECT
'1' AS `key`,
ifnull( sum( `p_plan_task`.`finish_num` ), 0 ) AS `value`,
'' AS unit,
...
...
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